@nxgt/material 3.101.0 → 3.104.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 +82 -0
- package/README.md +37 -5
- package/dist/{alert-dialog-DYzxchiS.js → alert-dialog-CK_47jfm.js} +1 -1
- package/dist/{async-slice-drJyPvuM.js → async-slice-1ZNMiwyJ.js} +1 -1
- package/dist/{bubble-input-CQwVSoU3.js → bubble-input-BxI1WmNs.js} +17 -5
- package/dist/{button-GeIsUekU.js → button-YfEMZbRO.js} +2 -2
- package/dist/{calculator-BS4PAm6l.js → calculator-BmYZId4c.js} +261 -460
- package/dist/calculator-field.js +7 -7
- package/dist/{calculator-segment-CEdwE24M.js → calculator-segment-DJ08DJ-n.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +819 -764
- package/dist/{chip-BdEtFQ85.js → chip-DPj6e-3v.js} +2 -2
- package/dist/{code-editor-BByXZOGy.js → code-editor-CZg3nLZO.js} +178 -177
- package/dist/code-editor.js +5 -5
- package/dist/{code-language-items-CSZX5zxD.js → code-language-items-Nq1iOGId.js} +14 -5
- package/dist/components/ui/actions/action-card/action-card-tile.css +47 -0
- package/dist/components/ui/display/chip/chip-soft.css +27 -2
- package/dist/components/ui/display/code/code-moonlight.css +10 -10
- package/dist/components/ui/primitives/collapsible/collapsible.css +9 -0
- package/dist/{components-DQ4MljCr.js → components-B2wrH_W0.js} +19302 -18583
- package/dist/components.js +38 -37
- package/dist/{conversion-variant-DTQqAyDt.js → conversion-variant-C-LPx5ek.js} +5 -5
- package/dist/{currency-field-Dnju7ss2.js → currency-field-DnsRIA80.js} +24 -23
- package/dist/{dialog-5_2__tu8.js → dialog-BKBsDGFc.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-FdGC5kIP.js → dropdown-menu-QMDbRidH.js} +1 -1
- package/dist/editor.js +9 -9
- package/dist/{empty-state-BoepPG5v.js → empty-state-BLIJ6znY.js} +1 -1
- package/dist/{field-blur-DkiZOVNV.js → field-blur-DMJwPLsg.js} +9 -9
- package/dist/field-blur-context-3rKussBQ.js +29 -0
- package/dist/{financial-variant-BhqJp5C-.js → financial-variant-Ws0Jp01H.js} +5 -5
- package/dist/{hooks-DjcbJZiO.js → hooks-C3vkQmzh.js} +106 -61
- package/dist/hooks.js +3 -3
- package/dist/{hover-card-CmHJeBeY.js → hover-card-Df649U6I.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-LGUPQh_c.js → icon-badge-Cma1qOOJ.js} +1 -1
- package/dist/{icon-button-BSVpO1jP.js → icon-button-CpKxV264.js} +1 -1
- package/dist/key-layout-D2goCDkD.js +31 -0
- package/dist/keypad.js +551 -0
- package/dist/label-DR-zZyGQ.js +47 -0
- package/dist/lib/components/ui/actions/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/product-tile/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/product-tile/product-tile-link.d.ts +16 -0
- package/dist/lib/components/ui/actions/product-tile/product-tile.d.ts +41 -0
- package/dist/lib/components/ui/collections/data-table/data-table-density.d.ts +1 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-scroll-region.d.ts +4 -1
- package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-list-bar.d.ts +6 -3
- package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-in-row.d.ts +2 -1
- package/dist/lib/components/ui/collections/data-table/types.d.ts +11 -8
- package/dist/lib/components/ui/collections/data-table/virtual-option.d.ts +9 -3
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +2 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-passed-through.d.ts +1 -0
- package/dist/lib/components/ui/collections/server-table/types.d.ts +1 -1
- package/dist/lib/components/ui/display/chip/chip.variants.d.ts +5 -4
- package/dist/lib/components/ui/display/code/code-block-parts.d.ts +1 -1
- package/dist/lib/components/ui/display/code/code-block.d.ts +4 -1
- package/dist/lib/components/ui/display/code/languages.d.ts +2 -0
- package/dist/lib/components/ui/display/code/moonlight-tokens.d.ts +10 -10
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-props.d.ts +73 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog-rules.d.ts +12 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-dialog.d.ts +5 -61
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-footer.d.ts +12 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/confirm-phrase.d.ts +26 -0
- package/dist/lib/components/ui/feedback/confirm-dialog/use-confirm-action.d.ts +1 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/index.d.ts +1 -0
- package/dist/lib/components/ui/fields/quantity-field/types.d.ts +1 -1
- package/dist/lib/components/ui/fields/quantity-stepper/index.d.ts +2 -0
- package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper-model.d.ts +9 -0
- package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper-value.d.ts +15 -0
- package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper.d.ts +9 -0
- package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper.types.d.ts +35 -0
- package/dist/lib/components/ui/fields/quantity-stepper/use-quantity-stepper.d.ts +28 -0
- package/dist/lib/components/ui/layout/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/pane-layout/pane-layout.d.ts +8 -3
- package/dist/lib/components/ui/layout/pane-layout/partials/pane-layout-classes.d.ts +2 -2
- package/dist/lib/components/ui/layout/pane-layout/partials/pane-layout-context.d.ts +9 -0
- package/dist/lib/components/ui/layout/pane-layout/partials/use-pane-layout-state.d.ts +7 -2
- package/dist/lib/components/ui/layout/panel-card/index.d.ts +1 -0
- package/dist/lib/components/ui/layout/panel-card/panel-card.d.ts +23 -0
- package/dist/lib/components/ui/primitives/collapsible/collapsible.d.ts +9 -1
- package/dist/lib/components/ui/primitives/tabs/partials/tabs-list.d.ts +6 -1
- package/dist/lib/components/ui/primitives/tabs/tabs-classes.d.ts +1 -0
- package/dist/lib/components/ui/selection/chip-group-field/chip-group-field.d.ts +8 -0
- package/dist/lib/components/ui/selection/chip-group-field/chip-group-field.types.d.ts +6 -0
- package/dist/lib/components/ui/selection/chip-group-field/partials/chip-group-reasons.d.ts +10 -0
- package/dist/lib/components/ui/selection/chip-group-field/partials/use-chip-rail.d.ts +12 -0
- package/dist/lib/components/ui/selection/choice-group/choice-group-root.d.ts +5 -2
- package/dist/lib/components/ui/selection/index.d.ts +1 -0
- package/dist/lib/components/ui/selection/status-menu/index.d.ts +3 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-confirm.d.ts +12 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-icon.d.ts +6 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-items.d.ts +18 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-menu-list.d.ts +14 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-sheet-row.d.ts +11 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-sheet.d.ts +21 -0
- package/dist/lib/components/ui/selection/status-menu/partials/status-trigger.d.ts +18 -0
- package/dist/lib/components/ui/selection/status-menu/status-menu-data.d.ts +12 -0
- package/dist/lib/components/ui/selection/status-menu/status-menu-form-field.d.ts +20 -0
- package/dist/lib/components/ui/selection/status-menu/status-menu.d.ts +13 -0
- package/dist/lib/components/ui/selection/status-menu/types.d.ts +76 -0
- package/dist/lib/components/ui/selection/status-menu/use-status-change.d.ts +18 -0
- package/dist/lib/components/ui/selection/status-menu/use-status-menu.d.ts +30 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-keypad.d.ts +1 -5
- package/dist/lib/components/ui/widgets/calculator/variants/key-layout.d.ts +3 -49
- package/dist/lib/components/ui/widgets/keypad/cash-model.d.ts +16 -0
- package/dist/lib/components/ui/widgets/keypad/index.d.ts +5 -0
- package/dist/lib/components/ui/widgets/keypad/key-layout.d.ts +56 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-binding.d.ts +32 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-cash.d.ts +28 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-display.d.ts +11 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-entry.d.ts +39 -0
- package/dist/lib/components/ui/widgets/keypad/keypad-grid.d.ts +27 -0
- package/dist/lib/components/ui/widgets/{calculator/partials/calculator-key.d.ts → keypad/keypad-key.d.ts} +6 -3
- package/dist/lib/components/ui/widgets/keypad/keypad-layout.d.ts +19 -0
- package/dist/lib/components/ui/widgets/{calculator/partials → keypad}/keypad-navigation.d.ts +1 -1
- package/dist/lib/components/ui/widgets/keypad/keypad.d.ts +9 -0
- package/dist/lib/components/ui/widgets/keypad/keypad.types.d.ts +91 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-cash.d.ts +14 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-keyboard.d.ts +7 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-number.d.ts +10 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-quantity.d.ts +16 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad-value.d.ts +17 -0
- package/dist/lib/components/ui/widgets/keypad/use-keypad.d.ts +23 -0
- package/dist/lib/components/ui/widgets/native-charts/core/label-placement.d.ts +25 -0
- package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +3 -2
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/use-barcode-scanner.d.ts +39 -0
- package/dist/lib/i18n/resources/en/en.d.ts +28 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +30 -2
- package/dist/lib/i18n/resources/fr/fr.d.ts +28 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +30 -2
- package/dist/lib/i18n/resources/resources.d.ts +56 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/keypad/index.d.ts +20 -0
- package/dist/lib/print/output/csv.d.ts +37 -0
- package/dist/lib/print/output/index.d.ts +1 -0
- package/dist/lib.js +1 -1
- package/dist/main.js +54 -53
- package/dist/map.js +9 -9
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-DGlU_xii.js → percent-field-sAq7BaxN.js} +15 -14
- package/dist/{picker-surface-CGhqNR8a.js → picker-surface--6E-nvpU.js} +4 -4
- package/dist/{popover-ZxL7ktKk.js → popover-bEB8I_-w.js} +1 -1
- package/dist/{pos-types-BQ0QpYMp.js → pos-types-Cpdc4E33.js} +1 -1
- package/dist/{pos-variant-CKy8h_5i.js → pos-variant-ClMGu59I.js} +25 -25
- package/dist/print.js +146 -127
- package/dist/{programmer-variant-CbHstE28.js → programmer-variant-ChzgyA7x.js} +30 -30
- package/dist/{public-D-tdOz4b.js → public-BY8N5NDT.js} +9 -9
- package/dist/{rich-code-block-CTPj1LuD.js → rich-code-block-D2GiWuqD.js} +18 -18
- package/dist/{scientific-variant-B8U9h3II.js → scientific-variant-31_93gcZ.js} +8 -8
- package/dist/{sortable-provider-CSoWE7Ce.js → sortable-provider-DGiVn72t.js} +2 -2
- package/dist/{spinner-ffuwBXHl.js → spinner-CEVomQ5K.js} +1 -1
- package/dist/standard-layout-DTr9yy8Z.js +48 -0
- package/dist/{tabs-JgRq6ZJx.js → tabs-B8MXBbPW.js} +14 -14
- package/dist/{text-field-DURkIP-v.js → text-field-DN88qD0Q.js} +16 -15
- package/dist/theme-picker.js +13 -13
- package/dist/{theme-toggle-n_Zg7JAA.js → theme-toggle-C7pnu1Xh.js} +1 -1
- package/dist/{toolbar-items-IANZdcw4.js → toolbar-items-BDfoh8QB.js} +4 -4
- package/dist/{translate-material-CMHUH5Ha.js → translate-material-s_lxIV43.js} +1 -1
- package/dist/{translator-9zA-Um3W.js → translator-Cgql9srO.js} +56 -4
- package/dist/use-calculator-keyboard-DysnFK8m.js +222 -0
- package/dist/{use-chat-composer-BoIN7RCA.js → use-chat-composer-xCcp9fVc.js} +2250 -2195
- package/dist/{use-heading-spy-Ciw9GBHL.js → use-heading-spy-FIZlf9qj.js} +235 -154
- package/dist/{use-material-translation-CLNaMhUf.js → use-material-translation-xNzbSVgS.js} +1 -1
- package/dist/{use-return-focus-DWhbTGVe.js → use-return-focus-CW9KkDkp.js} +1 -1
- package/docs/README.md +2 -1
- package/docs/components/README.md +2 -0
- package/docs/components/buttons-and-actions.md +81 -2
- package/docs/components/data-display.md +6 -3
- package/docs/components/data-table-filter-and-lists.md +19 -6
- package/docs/components/feedback-and-status.md +20 -0
- package/docs/components/form-fields.md +60 -7
- package/docs/components/navigation-and-layout.md +48 -2
- package/docs/components/primitives.md +44 -2
- package/docs/components/rich-widgets.md +28 -0
- package/docs/components/selection-and-choice.md +176 -1
- package/docs/guides/calculator.md +1 -1
- package/docs/guides/cards-and-tiles.md +31 -24
- package/docs/guides/csp.md +4 -3
- package/docs/guides/data-grid.md +5 -4
- package/docs/guides/field-look-refined.md +2 -2
- package/docs/guides/forms.md +1 -0
- package/docs/guides/helpers.md +49 -0
- package/docs/guides/keypad.md +233 -0
- package/docs/guides/printing.md +51 -1
- package/docs/previews/buttons-actions-producttile.webp +0 -0
- package/docs/previews/data-display-codeblock.webp +0 -0
- package/docs/previews/data-display-codegroup.webp +0 -0
- package/docs/previews/data-display-jsonviewer.webp +0 -0
- package/docs/previews/form-fields-quantitystepper.webp +0 -0
- package/docs/previews/navigation-layout-panelcard.webp +0 -0
- package/docs/previews/rich-widgets-keypad.webp +0 -0
- package/docs/previews/selection-choice-statusmenu.webp +0 -0
- package/docs/roadmap.md +21 -0
- package/docs/troubleshooting.md +68 -4
- package/lib/components/ui/actions/action-card/action-card-tile.css +47 -0
- package/lib/components/ui/display/chip/chip-soft.css +27 -2
- package/lib/components/ui/display/code/code-moonlight.css +10 -10
- package/lib/components/ui/primitives/collapsible/collapsible.css +9 -0
- package/lib/components/ui/widgets/calculator/calculator-keys.css +3 -0
- package/lib/components/ui/widgets/calculator/calculator.css +118 -0
- package/package.json +7 -2
- package/dist/field-blur-context-BLGgf_3z.js +0 -73
- package/dist/key-layout-cR79xfGE.js +0 -38
- package/dist/standard-layout-BuSRr3TY.js +0 -40
|
@@ -95,3 +95,121 @@
|
|
|
95
95
|
animation: none;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
/* Keypad (`@nxgt/material/keypad`): the same keys and bands as the Calculator,
|
|
100
|
+
* on its own root. There is no keypad stylesheet; `.nxgt-calc` gives the root
|
|
101
|
+
* the container the bands read. A keypad is a column, never wider than a
|
|
102
|
+
* phone's keypad, and `large` is a till's. */
|
|
103
|
+
.nxgt-keypad {
|
|
104
|
+
max-width: 24rem;
|
|
105
|
+
}
|
|
106
|
+
.nxgt-keypad-body {
|
|
107
|
+
padding-block-start: 0;
|
|
108
|
+
}
|
|
109
|
+
.nxgt-keypad[data-size="large"] .nxgt-calc-body {
|
|
110
|
+
--calc-key: 4.5rem;
|
|
111
|
+
--calc-gap: 0.625rem;
|
|
112
|
+
}
|
|
113
|
+
.nxgt-keypad-display {
|
|
114
|
+
display: block;
|
|
115
|
+
min-width: 0;
|
|
116
|
+
padding: 1rem 1.25rem;
|
|
117
|
+
border-radius: var(--calc-radius);
|
|
118
|
+
font-size: var(--calc-result);
|
|
119
|
+
font-weight: 500;
|
|
120
|
+
line-height: 1.1;
|
|
121
|
+
letter-spacing: -0.02em;
|
|
122
|
+
font-variant-numeric: tabular-nums;
|
|
123
|
+
text-align: right;
|
|
124
|
+
direction: ltr;
|
|
125
|
+
overflow-wrap: anywhere;
|
|
126
|
+
}
|
|
127
|
+
.nxgt-keypad-display[data-kind="error"] {
|
|
128
|
+
color: var(--destructive);
|
|
129
|
+
}
|
|
130
|
+
.nxgt-keypad[data-disabled] .nxgt-calc-key {
|
|
131
|
+
opacity: 0.5;
|
|
132
|
+
cursor: not-allowed;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Keypad, cash variant: the total and change above the keys, the bill
|
|
136
|
+
* shortcuts under them. */
|
|
137
|
+
.nxgt-keypad-cash {
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
gap: 0.5rem;
|
|
141
|
+
margin: 0;
|
|
142
|
+
font-variant-numeric: tabular-nums;
|
|
143
|
+
}
|
|
144
|
+
.nxgt-keypad-cash > div {
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: baseline;
|
|
147
|
+
justify-content: space-between;
|
|
148
|
+
gap: 0.5rem;
|
|
149
|
+
padding-inline: 1.25rem;
|
|
150
|
+
}
|
|
151
|
+
.nxgt-keypad-cash dt {
|
|
152
|
+
color: var(--muted-foreground);
|
|
153
|
+
}
|
|
154
|
+
.nxgt-keypad-cash dd {
|
|
155
|
+
margin: 0;
|
|
156
|
+
font-size: 1.25rem;
|
|
157
|
+
font-weight: 600;
|
|
158
|
+
}
|
|
159
|
+
/* The settlement row is the figure the cashier acts on: success while there
|
|
160
|
+
* is change to give back, warning while an amount is still due. The figure
|
|
161
|
+
* takes the tone's AA text colour on its own tinted band. */
|
|
162
|
+
.nxgt-keypad-cash [data-status] {
|
|
163
|
+
align-items: baseline;
|
|
164
|
+
padding-block: 0.375rem;
|
|
165
|
+
border-radius: 1rem;
|
|
166
|
+
}
|
|
167
|
+
.nxgt-keypad-cash [data-status] dd {
|
|
168
|
+
font-size: 1.625rem;
|
|
169
|
+
font-weight: 700;
|
|
170
|
+
}
|
|
171
|
+
.nxgt-keypad-cash [data-status="paid"] {
|
|
172
|
+
background: color-mix(in oklab, var(--success) 20%, var(--background));
|
|
173
|
+
}
|
|
174
|
+
.nxgt-keypad-cash [data-status="paid"] dt,
|
|
175
|
+
.nxgt-keypad-cash [data-status="paid"] dd {
|
|
176
|
+
color: var(--success-text);
|
|
177
|
+
}
|
|
178
|
+
.nxgt-keypad-cash [data-status="short"] {
|
|
179
|
+
background: color-mix(in oklab, var(--warning) 22%, var(--background));
|
|
180
|
+
}
|
|
181
|
+
.nxgt-keypad-cash [data-status="short"] dt,
|
|
182
|
+
.nxgt-keypad-cash [data-status="short"] dd {
|
|
183
|
+
color: var(--warning-text);
|
|
184
|
+
}
|
|
185
|
+
.nxgt-keypad-shortcuts {
|
|
186
|
+
display: grid;
|
|
187
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
188
|
+
gap: var(--calc-gap);
|
|
189
|
+
}
|
|
190
|
+
.nxgt-keypad-shortcuts button {
|
|
191
|
+
min-width: 0;
|
|
192
|
+
padding-inline: 0.875rem;
|
|
193
|
+
white-space: nowrap;
|
|
194
|
+
min-height: max(calc(var(--calc-key) * 0.8), 2.75rem);
|
|
195
|
+
border: 0;
|
|
196
|
+
border-radius: 9999px;
|
|
197
|
+
background: color-mix(
|
|
198
|
+
in oklab,
|
|
199
|
+
var(--primary) 16%,
|
|
200
|
+
color-mix(in oklab, var(--foreground) 3%, var(--background))
|
|
201
|
+
);
|
|
202
|
+
color: var(--foreground);
|
|
203
|
+
font: inherit;
|
|
204
|
+
font-weight: 500;
|
|
205
|
+
font-variant-numeric: tabular-nums;
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
touch-action: manipulation;
|
|
208
|
+
}
|
|
209
|
+
.nxgt-keypad-shortcuts button:last-child:nth-child(odd) {
|
|
210
|
+
grid-column: 1 / -1;
|
|
211
|
+
}
|
|
212
|
+
.nxgt-keypad-shortcuts button:focus-visible {
|
|
213
|
+
outline: 2px solid var(--ring);
|
|
214
|
+
outline-offset: 2px;
|
|
215
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/material",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.104.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "stevegires@gmail.com"
|
|
@@ -85,6 +85,11 @@
|
|
|
85
85
|
"types": "./dist/lib/calculator/index.d.ts",
|
|
86
86
|
"require": "./dist/calculator.js"
|
|
87
87
|
},
|
|
88
|
+
"./keypad": {
|
|
89
|
+
"import": "./dist/keypad.js",
|
|
90
|
+
"types": "./dist/lib/keypad/index.d.ts",
|
|
91
|
+
"require": "./dist/keypad.js"
|
|
92
|
+
},
|
|
88
93
|
"./calculator-field": {
|
|
89
94
|
"import": "./dist/calculator-field.js",
|
|
90
95
|
"types": "./dist/lib/calculator-field/index.d.ts",
|
|
@@ -390,7 +395,7 @@
|
|
|
390
395
|
"docs:previews": "rm -rf node_modules/.cache/nxgt-preview-free/missing && NXGT_PREVIEW_FREE=1 vitest run --project previews && bun .storybook/preview-free-report.ts"
|
|
391
396
|
},
|
|
392
397
|
"dependencies": {
|
|
393
|
-
"@nxgt/material-core": "^0.
|
|
398
|
+
"@nxgt/material-core": "^0.58.0",
|
|
394
399
|
"@base-ui/react": "^1.6.0",
|
|
395
400
|
"@dnd-kit/core": "^6.3.1",
|
|
396
401
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { i as t } from "./dist-DWZXlCZR.js";
|
|
3
|
-
import { t as n } from "./typography-CYEquVeb.js";
|
|
4
|
-
import * as r from "react";
|
|
5
|
-
import { createContext as i, use as a, useMemo as o } from "react";
|
|
6
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
-
//#region ../../node_modules/@radix-ui/react-label/dist/index.mjs
|
|
8
|
-
var l = Object.defineProperty, u = /* @__PURE__ */ r.forwardRef(/* @__PURE__ */ ((e, t) => l(e, "name", {
|
|
9
|
-
value: t,
|
|
10
|
-
configurable: !0
|
|
11
|
-
}))(function(e, n) {
|
|
12
|
-
return /* @__PURE__ */ s(t.label, {
|
|
13
|
-
...e,
|
|
14
|
-
ref: n,
|
|
15
|
-
onMouseDown: (t) => {
|
|
16
|
-
t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}, "Label"));
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region lib/components/ui/primitives/helper-text/helper-text.tsx
|
|
22
|
-
function d({ error: t, className: r, ...i }) {
|
|
23
|
-
return /* @__PURE__ */ s(n, {
|
|
24
|
-
"data-slot": "helper-text",
|
|
25
|
-
variant: "caption",
|
|
26
|
-
className: e("flex ps-0.5 truncate text-wrap", { "text-error-text": t }, r),
|
|
27
|
-
...i
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region lib/components/ui/primitives/label/label.tsx
|
|
32
|
-
function f() {
|
|
33
|
-
return /* @__PURE__ */ s("svg", {
|
|
34
|
-
"data-slot": "label-required-mark",
|
|
35
|
-
"aria-hidden": "true",
|
|
36
|
-
focusable: "false",
|
|
37
|
-
viewBox: "0 0 10 10",
|
|
38
|
-
fill: "none",
|
|
39
|
-
stroke: "currentColor",
|
|
40
|
-
strokeWidth: "1.75",
|
|
41
|
-
strokeLinecap: "round",
|
|
42
|
-
children: /* @__PURE__ */ s("path", { d: "M5 1v8M1.5 3l7 4M8.5 3l-7 4" })
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function p({ className: t, withAsterisk: n, ...r }) {
|
|
46
|
-
return /* @__PURE__ */ s(u, {
|
|
47
|
-
"data-slot": "label",
|
|
48
|
-
className: e("flex items-center ps-0.5 gap-2 text-sm leading-5 -my-[3px] empty:my-0 font-semibold select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", t),
|
|
49
|
-
...r,
|
|
50
|
-
children: n ? /* @__PURE__ */ c("span", {
|
|
51
|
-
"data-slot": "label-text",
|
|
52
|
-
"data-required": "",
|
|
53
|
-
className: "inline-flex",
|
|
54
|
-
children: [r.children, /* @__PURE__ */ s(f, {})]
|
|
55
|
-
}) : r.children
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
//#endregion
|
|
59
|
-
//#region lib/components/ui/forms/field-blur-context.ts
|
|
60
|
-
var m = i(null);
|
|
61
|
-
function h(e, t) {
|
|
62
|
-
return o(() => e ? t ? (n) => {
|
|
63
|
-
let r = e(n), i = typeof t == "function" ? t(n) : void 0;
|
|
64
|
-
return typeof t != "function" && (t.current = n), () => {
|
|
65
|
-
r?.(), typeof i == "function" ? i() : typeof t == "function" ? t(null) : t.current = null;
|
|
66
|
-
};
|
|
67
|
-
} : e : t, [e, t]);
|
|
68
|
-
}
|
|
69
|
-
function g(e) {
|
|
70
|
-
return h(a(m), e);
|
|
71
|
-
}
|
|
72
|
-
//#endregion
|
|
73
|
-
export { d as a, p as i, g as n, h as r, m as t };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
//#region lib/components/ui/widgets/calculator/variants/key-layout.ts
|
|
2
|
-
var e = (e, t) => ({
|
|
3
|
-
key: `material.calculator.keys.${e}`,
|
|
4
|
-
fallback: t
|
|
5
|
-
}), t = (t, n, r, i, a, o, s) => ({
|
|
6
|
-
id: t,
|
|
7
|
-
key: n,
|
|
8
|
-
glyph: r,
|
|
9
|
-
role: i,
|
|
10
|
-
name: e(a, o),
|
|
11
|
-
span: s
|
|
12
|
-
}), n = [
|
|
13
|
-
"zero",
|
|
14
|
-
"one",
|
|
15
|
-
"two",
|
|
16
|
-
"three",
|
|
17
|
-
"four",
|
|
18
|
-
"five",
|
|
19
|
-
"six",
|
|
20
|
-
"seven",
|
|
21
|
-
"eight",
|
|
22
|
-
"nine"
|
|
23
|
-
], r = (e, r) => t(`d${e}`, String(e), String(e), "digit", n[e] ?? "zero", String(e), r), i = [
|
|
24
|
-
t("open", "(", "(", "bracket", "open-paren", "Open parenthesis", 2),
|
|
25
|
-
t("close", ")", ")", "bracket", "close-paren", "Close parenthesis", 2),
|
|
26
|
-
t("mc", "mc", "MC", "memory", "memory-clear", "Memory clear", 2),
|
|
27
|
-
t("mr", "mr", "MR", "memory", "memory-recall", "Memory recall", 2),
|
|
28
|
-
t("m+", "m+", "M+", "memory", "memory-add", "Add to memory", 2),
|
|
29
|
-
t("m-", "m-", "M−", "memory", "memory-subtract", "Subtract from memory", 2)
|
|
30
|
-
], a = (e) => e.map((e) => ({
|
|
31
|
-
...e,
|
|
32
|
-
span: (e.span ?? 1) * 3
|
|
33
|
-
})), o = (e, t) => t && e.alt ? {
|
|
34
|
-
...e,
|
|
35
|
-
...e.alt
|
|
36
|
-
} : e, s = (e) => e.sequence ?? [e.key];
|
|
37
|
-
//#endregion
|
|
38
|
-
export { s as a, t as i, r as n, e as o, o as r, a as s, i as t };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { i as e, n as t, s as n, t as r } from "./key-layout-cR79xfGE.js";
|
|
2
|
-
//#region lib/components/ui/widgets/calculator/variants/standard/standard-layout.ts
|
|
3
|
-
var i = {
|
|
4
|
-
columns: 12,
|
|
5
|
-
rows: [
|
|
6
|
-
r,
|
|
7
|
-
n([
|
|
8
|
-
e("clear", "C", "C", "utility", "clear", "Clear all"),
|
|
9
|
-
e("sign", "±", "±", "utility", "sign", "Change sign"),
|
|
10
|
-
e("percent", "%", "%", "utility", "percent", "Percent"),
|
|
11
|
-
e("divide", "/", "÷", "operator", "divide", "Divided by")
|
|
12
|
-
]),
|
|
13
|
-
n([
|
|
14
|
-
t(7),
|
|
15
|
-
t(8),
|
|
16
|
-
t(9),
|
|
17
|
-
e("multiply", "*", "×", "operator", "multiply", "Times")
|
|
18
|
-
]),
|
|
19
|
-
n([
|
|
20
|
-
t(4),
|
|
21
|
-
t(5),
|
|
22
|
-
t(6),
|
|
23
|
-
e("subtract", "-", "−", "operator", "subtract", "Minus")
|
|
24
|
-
]),
|
|
25
|
-
n([
|
|
26
|
-
t(1),
|
|
27
|
-
t(2),
|
|
28
|
-
t(3),
|
|
29
|
-
e("add", "+", "+", "operator", "add", "Plus")
|
|
30
|
-
]),
|
|
31
|
-
n([
|
|
32
|
-
t(0),
|
|
33
|
-
e("decimal", ".", ".", "digit", "decimal", "Decimal separator"),
|
|
34
|
-
e("backspace", "backspace", "⌫", "utility", "backspace", "Delete last character"),
|
|
35
|
-
e("equals", "=", "=", "equals", "equals", "Equals")
|
|
36
|
-
])
|
|
37
|
-
]
|
|
38
|
-
};
|
|
39
|
-
//#endregion
|
|
40
|
-
export { i as t };
|