@misael703/ui 1.35.0 → 1.36.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/dist/{chunk-QAGQ6OH4.mjs → chunk-3AW3TK6D.mjs} +4 -4
- package/dist/{chunk-QAGQ6OH4.mjs.map → chunk-3AW3TK6D.mjs.map} +1 -1
- package/dist/{chunk-BJBNDA2B.mjs → chunk-3JYYZOEJ.mjs} +4 -4
- package/dist/{chunk-BJBNDA2B.mjs.map → chunk-3JYYZOEJ.mjs.map} +1 -1
- package/dist/{chunk-LGLG5UZP.js → chunk-3PAZJYH6.js} +6 -6
- package/dist/{chunk-LGLG5UZP.js.map → chunk-3PAZJYH6.js.map} +1 -1
- package/dist/{chunk-TCL7LRRU.js → chunk-565UJQ2M.js} +9 -9
- package/dist/{chunk-TCL7LRRU.js.map → chunk-565UJQ2M.js.map} +1 -1
- package/dist/{chunk-YNH3ILYV.mjs → chunk-56AR3HZK.mjs} +5 -5
- package/dist/{chunk-YNH3ILYV.mjs.map → chunk-56AR3HZK.mjs.map} +1 -1
- package/dist/{chunk-J2LKDSLW.mjs → chunk-5THFLAUQ.mjs} +4 -4
- package/dist/{chunk-J2LKDSLW.mjs.map → chunk-5THFLAUQ.mjs.map} +1 -1
- package/dist/{chunk-P4I7G5PW.mjs → chunk-5X6SKHZW.mjs} +3 -3
- package/dist/{chunk-P4I7G5PW.mjs.map → chunk-5X6SKHZW.mjs.map} +1 -1
- package/dist/{chunk-NBSJ6AJP.mjs → chunk-63LUAWJS.mjs} +3 -3
- package/dist/{chunk-NBSJ6AJP.mjs.map → chunk-63LUAWJS.mjs.map} +1 -1
- package/dist/chunk-6CREI5BC.js +52 -0
- package/dist/chunk-6CREI5BC.js.map +1 -0
- package/dist/{chunk-4XHKOZJD.js → chunk-74XHJITO.js} +10 -10
- package/dist/{chunk-4XHKOZJD.js.map → chunk-74XHJITO.js.map} +1 -1
- package/dist/{chunk-MWYYFA5X.js → chunk-A423552C.js} +7 -7
- package/dist/{chunk-MWYYFA5X.js.map → chunk-A423552C.js.map} +1 -1
- package/dist/{chunk-AYMLKLRZ.js → chunk-AJJBJQAH.js} +7 -7
- package/dist/{chunk-AYMLKLRZ.js.map → chunk-AJJBJQAH.js.map} +1 -1
- package/dist/{chunk-TVIU7DLZ.js → chunk-C7UG47HQ.js} +5 -5
- package/dist/{chunk-TVIU7DLZ.js.map → chunk-C7UG47HQ.js.map} +1 -1
- package/dist/{chunk-77M3OY2L.mjs → chunk-CJ6K6NYB.mjs} +3 -3
- package/dist/{chunk-77M3OY2L.mjs.map → chunk-CJ6K6NYB.mjs.map} +1 -1
- package/dist/{chunk-GWYH2U2H.mjs → chunk-CNQ7HZQT.mjs} +4 -4
- package/dist/{chunk-GWYH2U2H.mjs.map → chunk-CNQ7HZQT.mjs.map} +1 -1
- package/dist/{chunk-I7D47VEK.js → chunk-DPMY5RV6.js} +8 -8
- package/dist/{chunk-I7D47VEK.js.map → chunk-DPMY5RV6.js.map} +1 -1
- package/dist/{chunk-DCDFM4CI.mjs → chunk-DQO3VZ2X.mjs} +4 -4
- package/dist/{chunk-DCDFM4CI.mjs.map → chunk-DQO3VZ2X.mjs.map} +1 -1
- package/dist/{chunk-FB6JXUP3.js → chunk-DZC4SOLV.js} +6 -6
- package/dist/{chunk-FB6JXUP3.js.map → chunk-DZC4SOLV.js.map} +1 -1
- package/dist/{chunk-7BOA6V72.js → chunk-F3PTSBHH.js} +5 -5
- package/dist/{chunk-7BOA6V72.js.map → chunk-F3PTSBHH.js.map} +1 -1
- package/dist/{chunk-W7MQSEUR.mjs → chunk-FD3Y5IP7.mjs} +5 -5
- package/dist/{chunk-W7MQSEUR.mjs.map → chunk-FD3Y5IP7.mjs.map} +1 -1
- package/dist/chunk-FL7VCVYU.js +91 -0
- package/dist/chunk-FL7VCVYU.js.map +1 -0
- package/dist/{chunk-CVU54JYN.mjs → chunk-FZQDUHPA.mjs} +4 -4
- package/dist/{chunk-CVU54JYN.mjs.map → chunk-FZQDUHPA.mjs.map} +1 -1
- package/dist/{chunk-BERDZAO5.mjs → chunk-HWOG3TZD.mjs} +3 -3
- package/dist/{chunk-BERDZAO5.mjs.map → chunk-HWOG3TZD.mjs.map} +1 -1
- package/dist/{chunk-ME57NREH.js → chunk-JJ54RD36.js} +13 -13
- package/dist/{chunk-ME57NREH.js.map → chunk-JJ54RD36.js.map} +1 -1
- package/dist/{chunk-QSLBGCB5.js → chunk-KWXF6OQW.js} +8 -8
- package/dist/{chunk-QSLBGCB5.js.map → chunk-KWXF6OQW.js.map} +1 -1
- package/dist/{chunk-RSY4ONVR.mjs → chunk-LAMT2PHX.mjs} +3 -3
- package/dist/{chunk-RSY4ONVR.mjs.map → chunk-LAMT2PHX.mjs.map} +1 -1
- package/dist/{chunk-TMDAR6XW.js → chunk-LCT5H6XH.js} +4 -4
- package/dist/{chunk-TMDAR6XW.js.map → chunk-LCT5H6XH.js.map} +1 -1
- package/dist/{chunk-MMHTQ6T7.mjs → chunk-OWIPC5NO.mjs} +2 -2
- package/dist/chunk-OWIPC5NO.mjs.map +1 -0
- package/dist/{chunk-FPUSNOVX.js → chunk-P6ZVZXTC.js} +4 -4
- package/dist/{chunk-FPUSNOVX.js.map → chunk-P6ZVZXTC.js.map} +1 -1
- package/dist/{chunk-D42GKEUX.js → chunk-PFPD2HFZ.js} +6 -6
- package/dist/{chunk-D42GKEUX.js.map → chunk-PFPD2HFZ.js.map} +1 -1
- package/dist/{chunk-KCJCIUOK.mjs → chunk-S5OEOR57.mjs} +4 -4
- package/dist/{chunk-KCJCIUOK.mjs.map → chunk-S5OEOR57.mjs.map} +1 -1
- package/dist/{chunk-QCBC4ME5.mjs → chunk-SXAGF7EG.mjs} +12 -2
- package/dist/chunk-SXAGF7EG.mjs.map +1 -0
- package/dist/{chunk-YHWZITIY.mjs → chunk-T42OS6SD.mjs} +4 -4
- package/dist/{chunk-YHWZITIY.mjs.map → chunk-T42OS6SD.mjs.map} +1 -1
- package/dist/{chunk-2XG3JEEO.js → chunk-TBB4SXUU.js} +8 -8
- package/dist/{chunk-2XG3JEEO.js.map → chunk-TBB4SXUU.js.map} +1 -1
- package/dist/chunk-TR5ZSPVZ.mjs +29 -0
- package/dist/chunk-TR5ZSPVZ.mjs.map +1 -0
- package/dist/{chunk-HB5VGI2W.js → chunk-UBSBSZPB.js} +12 -2
- package/dist/chunk-UBSBSZPB.js.map +1 -0
- package/dist/{chunk-MH6AK52N.js → chunk-VBB2XHBB.js} +6 -6
- package/dist/{chunk-MH6AK52N.js.map → chunk-VBB2XHBB.js.map} +1 -1
- package/dist/{chunk-5RA2CERT.mjs → chunk-VOSVV3LL.mjs} +3 -3
- package/dist/{chunk-5RA2CERT.mjs.map → chunk-VOSVV3LL.mjs.map} +1 -1
- package/dist/{chunk-VJLOL7FR.js → chunk-W725MLGN.js} +2 -2
- package/dist/chunk-W725MLGN.js.map +1 -0
- package/dist/{chunk-542LEDCL.js → chunk-WPCQJ7XW.js} +8 -8
- package/dist/{chunk-542LEDCL.js.map → chunk-WPCQJ7XW.js.map} +1 -1
- package/dist/chunk-XAGXAVWN.mjs +86 -0
- package/dist/chunk-XAGXAVWN.mjs.map +1 -0
- package/dist/{chunk-RJ7SXFVU.mjs → chunk-ZYVQJSGO.mjs} +4 -4
- package/dist/{chunk-RJ7SXFVU.mjs.map → chunk-ZYVQJSGO.mjs.map} +1 -1
- package/dist/components/AdvancedPickers.js +7 -7
- package/dist/components/AdvancedPickers.mjs +3 -3
- package/dist/components/AppShell.js +4 -4
- package/dist/components/AppShell.mjs +2 -2
- package/dist/components/Comments.js +6 -6
- package/dist/components/Comments.mjs +3 -3
- package/dist/components/Commerce.js +15 -15
- package/dist/components/Commerce.mjs +4 -4
- package/dist/components/DataTable.js +10 -10
- package/dist/components/DataTable.mjs +4 -4
- package/dist/components/Display.js +13 -13
- package/dist/components/Display.mjs +2 -2
- package/dist/components/Display3.js +8 -8
- package/dist/components/Display3.mjs +2 -2
- package/dist/components/Editing.js +8 -8
- package/dist/components/Editing.mjs +3 -3
- package/dist/components/Filters.js +9 -9
- package/dist/components/Filters.mjs +3 -3
- package/dist/components/Gallery.js +5 -5
- package/dist/components/Gallery.mjs +3 -3
- package/dist/components/Inputs.js +7 -7
- package/dist/components/Inputs.mjs +3 -3
- package/dist/components/InputsExtra.js +12 -12
- package/dist/components/InputsExtra.mjs +3 -3
- package/dist/components/Notifications.js +4 -4
- package/dist/components/Notifications.mjs +3 -3
- package/dist/components/Overlay.js +4 -4
- package/dist/components/Overlay.mjs +2 -2
- package/dist/components/Permissions.js +4 -4
- package/dist/components/Permissions.mjs +3 -3
- package/dist/components/Pickers.js +7 -7
- package/dist/components/Pickers.mjs +2 -2
- package/dist/components/TimeAgo.d.mts +35 -0
- package/dist/components/TimeAgo.d.ts +35 -0
- package/dist/components/TimeAgo.js +26 -0
- package/dist/components/TimeAgo.js.map +1 -0
- package/dist/components/TimeAgo.mjs +13 -0
- package/dist/components/TimeAgo.mjs.map +1 -0
- package/dist/components/Toast.js +4 -4
- package/dist/components/Toast.mjs +2 -2
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +143 -117
- package/dist/index.mjs +23 -21
- package/dist/locale/index.d.mts +3 -158
- package/dist/locale/index.d.ts +3 -158
- package/dist/locale/index.js +6 -6
- package/dist/locale/index.mjs +2 -2
- package/dist/messages-yjqs6yPe.d.mts +176 -0
- package/dist/messages-yjqs6yPe.d.ts +176 -0
- package/dist/utils/smartTime.d.mts +30 -0
- package/dist/utils/smartTime.d.ts +30 -0
- package/dist/utils/smartTime.js +26 -0
- package/dist/utils/smartTime.js.map +1 -0
- package/dist/utils/smartTime.mjs +5 -0
- package/dist/utils/smartTime.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-HB5VGI2W.js.map +0 -1
- package/dist/chunk-MMHTQ6T7.mjs.map +0 -1
- package/dist/chunk-QCBC4ME5.mjs.map +0 -1
- package/dist/chunk-VJLOL7FR.js.map +0 -1
package/dist/locale/index.d.mts
CHANGED
|
@@ -1,163 +1,8 @@
|
|
|
1
|
+
import { U as UiKitMessages } from '../messages-yjqs6yPe.mjs';
|
|
2
|
+
export { f as format } from '../messages-yjqs6yPe.mjs';
|
|
1
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
/**
|
|
5
|
-
* Flat dictionary of UI strings used by the kit. Keys are dot-separated
|
|
6
|
-
* namespaces (component or area). Values may include `{var}` placeholders
|
|
7
|
-
* that get substituted via `format()`.
|
|
8
|
-
*/
|
|
9
|
-
interface UiKitMessages {
|
|
10
|
-
'common.close': string;
|
|
11
|
-
'common.cancel': string;
|
|
12
|
-
'common.confirm': string;
|
|
13
|
-
'common.apply': string;
|
|
14
|
-
'common.clear': string;
|
|
15
|
-
'common.edit': string;
|
|
16
|
-
'common.empty': string;
|
|
17
|
-
'common.loading': string;
|
|
18
|
-
'common.search': string;
|
|
19
|
-
'common.noResults': string;
|
|
20
|
-
'modal.close': string;
|
|
21
|
-
'drawer.close': string;
|
|
22
|
-
'toast.close': string;
|
|
23
|
-
'table.empty': string;
|
|
24
|
-
'table.selectAll': string;
|
|
25
|
-
/** Template: "Seleccionar {label}" */
|
|
26
|
-
'table.selectRow': string;
|
|
27
|
-
/** Template: "Ver {label}" — accessible name of an interactive row. */
|
|
28
|
-
'table.rowAction': string;
|
|
29
|
-
'appshell.mainNav': string;
|
|
30
|
-
'appshell.breadcrumb': string;
|
|
31
|
-
/** Accessible name for the kit's built-in menu toggle (opt-in via `showMenuToggle`). */
|
|
32
|
-
'appshell.toggleMenu': string;
|
|
33
|
-
'notifications.button': string;
|
|
34
|
-
/** Template: " ({n} sin leer)" */
|
|
35
|
-
'notifications.unreadSuffix': string;
|
|
36
|
-
'notifications.empty': string;
|
|
37
|
-
'notifications.panel': string;
|
|
38
|
-
'notifications.title': string;
|
|
39
|
-
'notifications.markAllRead': string;
|
|
40
|
-
'notifications.clear': string;
|
|
41
|
-
'filters.panel': string;
|
|
42
|
-
'filters.clear': string;
|
|
43
|
-
'filters.bulkActions': string;
|
|
44
|
-
'filters.deselectAll': string;
|
|
45
|
-
'filters.sortBy': string;
|
|
46
|
-
/** Template: "{n} seleccionado" (used when n === 1) */
|
|
47
|
-
'filters.selectedOne': string;
|
|
48
|
-
/** Template: "{n} seleccionados" (used when n !== 1) */
|
|
49
|
-
'filters.selectedMany': string;
|
|
50
|
-
'transfer.available': string;
|
|
51
|
-
'transfer.assigned': string;
|
|
52
|
-
'transfer.assignSelected': string;
|
|
53
|
-
'transfer.removeSelected': string;
|
|
54
|
-
'transfer.empty': string;
|
|
55
|
-
'descList.edit': string;
|
|
56
|
-
'diff.label': string;
|
|
57
|
-
'diff.field': string;
|
|
58
|
-
'diff.before': string;
|
|
59
|
-
'diff.after': string;
|
|
60
|
-
'permissions.markAll': string;
|
|
61
|
-
'permissions.unmarkAll': string;
|
|
62
|
-
'permissions.action': string;
|
|
63
|
-
/** Template: "{action} para {role}" */
|
|
64
|
-
'permissions.cellLabel': string;
|
|
65
|
-
'comments.placeholder': string;
|
|
66
|
-
'comments.send': string;
|
|
67
|
-
'comments.internalTag': string;
|
|
68
|
-
'comments.internalOnly': string;
|
|
69
|
-
'attachments.empty': string;
|
|
70
|
-
/** Template: "Eliminar {name}" */
|
|
71
|
-
'attachments.remove': string;
|
|
72
|
-
/** Template: "Descargar {name}" */
|
|
73
|
-
'attachments.download': string;
|
|
74
|
-
'gallery.thumbnails': string;
|
|
75
|
-
'gallery.viewer': string;
|
|
76
|
-
'gallery.prev': string;
|
|
77
|
-
'gallery.next': string;
|
|
78
|
-
'gallery.close': string;
|
|
79
|
-
/** Template: "Imagen {n}" */
|
|
80
|
-
'gallery.imageNumber': string;
|
|
81
|
-
'alert.close': string;
|
|
82
|
-
'spinner.loading': string;
|
|
83
|
-
'chip.remove': string;
|
|
84
|
-
'calendar.prevMonth': string;
|
|
85
|
-
'calendar.nextMonth': string;
|
|
86
|
-
'calendar.expand': string;
|
|
87
|
-
'calendar.collapse': string;
|
|
88
|
-
/** Mon, Tue, Wed, Thu, Fri, Sat, Sun (in array order, kit assumes Mon-first) */
|
|
89
|
-
'calendar.weekdays': readonly [string, string, string, string, string, string, string];
|
|
90
|
-
'calendar.months': readonly [
|
|
91
|
-
string,
|
|
92
|
-
string,
|
|
93
|
-
string,
|
|
94
|
-
string,
|
|
95
|
-
string,
|
|
96
|
-
string,
|
|
97
|
-
string,
|
|
98
|
-
string,
|
|
99
|
-
string,
|
|
100
|
-
string,
|
|
101
|
-
string,
|
|
102
|
-
string
|
|
103
|
-
];
|
|
104
|
-
'picker.openCalendar': string;
|
|
105
|
-
'picker.clearSelection': string;
|
|
106
|
-
'picker.selectRange': string;
|
|
107
|
-
'picker.searchCommands': string;
|
|
108
|
-
'picker.commandPalette': string;
|
|
109
|
-
'picker.prevYear': string;
|
|
110
|
-
'picker.nextYear': string;
|
|
111
|
-
'picker.prevDecade': string;
|
|
112
|
-
'picker.nextDecade': string;
|
|
113
|
-
'picker.selectYear': string;
|
|
114
|
-
'picker.selectMonth': string;
|
|
115
|
-
/**
|
|
116
|
-
* Single-letter weekday initials used by compact calendar grids (DatePicker,
|
|
117
|
-
* DateRangePicker). Mon-first to match the kit's calendars.
|
|
118
|
-
*/
|
|
119
|
-
'picker.weekdaysShort': readonly [string, string, string, string, string, string, string];
|
|
120
|
-
/** Template: "Quitar {label}" */
|
|
121
|
-
'combobox.remove': string;
|
|
122
|
-
'fileUpload.title': string;
|
|
123
|
-
'pagination.label': string;
|
|
124
|
-
'pagination.prev': string;
|
|
125
|
-
'pagination.next': string;
|
|
126
|
-
/** Template: "{from}–{to} de {total}" */
|
|
127
|
-
'pagination.range': string;
|
|
128
|
-
'pagination.rowsPerPage': string;
|
|
129
|
-
'numberInput.decrement': string;
|
|
130
|
-
'numberInput.increment': string;
|
|
131
|
-
'commerce.quantity': string;
|
|
132
|
-
'commerce.decreaseQty': string;
|
|
133
|
-
'commerce.increaseQty': string;
|
|
134
|
-
'commerce.removeFromCart': string;
|
|
135
|
-
/** Template: "Quitar {name}" */
|
|
136
|
-
'commerce.removeItem': string;
|
|
137
|
-
'commerce.addFavorite': string;
|
|
138
|
-
'commerce.removeFavorite': string;
|
|
139
|
-
'commerce.applyCoupon': string;
|
|
140
|
-
'commerce.cartTitle': string;
|
|
141
|
-
'commerce.cartEmpty': string;
|
|
142
|
-
'commerce.subtotal': string;
|
|
143
|
-
'commerce.checkout': string;
|
|
144
|
-
'commerce.promoPlaceholder': string;
|
|
145
|
-
'commerce.promoInvalid': string;
|
|
146
|
-
'commerce.shippingAchieved': string;
|
|
147
|
-
/** Template before {amount} placeholder: "Te falta " (suffix " para envío gratis"). Split into two so consumers can swap word order. */
|
|
148
|
-
'commerce.shippingPrefix': string;
|
|
149
|
-
'commerce.shippingSuffix': string;
|
|
150
|
-
/** Template: "Quitar {tag}" */
|
|
151
|
-
'tagsInput.remove': string;
|
|
152
|
-
'tagsInput.placeholder': string;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Replace `{var}` placeholders in a template string with values from `vars`.
|
|
156
|
-
* Missing vars are left as-is, so a typo surfaces during dev instead of being
|
|
157
|
-
* silently dropped.
|
|
158
|
-
*/
|
|
159
|
-
declare function format(template: string, vars: Record<string, string | number>): string;
|
|
160
|
-
|
|
161
6
|
declare const esMessages: UiKitMessages;
|
|
162
7
|
|
|
163
8
|
interface LocaleProviderProps {
|
|
@@ -176,4 +21,4 @@ declare function LocaleProvider({ messages, children }: LocaleProviderProps): re
|
|
|
176
21
|
*/
|
|
177
22
|
declare function useLocale(): UiKitMessages;
|
|
178
23
|
|
|
179
|
-
export { LocaleProvider, type LocaleProviderProps,
|
|
24
|
+
export { LocaleProvider, type LocaleProviderProps, UiKitMessages, esMessages, useLocale };
|
package/dist/locale/index.d.ts
CHANGED
|
@@ -1,163 +1,8 @@
|
|
|
1
|
+
import { U as UiKitMessages } from '../messages-yjqs6yPe.js';
|
|
2
|
+
export { f as format } from '../messages-yjqs6yPe.js';
|
|
1
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
/**
|
|
5
|
-
* Flat dictionary of UI strings used by the kit. Keys are dot-separated
|
|
6
|
-
* namespaces (component or area). Values may include `{var}` placeholders
|
|
7
|
-
* that get substituted via `format()`.
|
|
8
|
-
*/
|
|
9
|
-
interface UiKitMessages {
|
|
10
|
-
'common.close': string;
|
|
11
|
-
'common.cancel': string;
|
|
12
|
-
'common.confirm': string;
|
|
13
|
-
'common.apply': string;
|
|
14
|
-
'common.clear': string;
|
|
15
|
-
'common.edit': string;
|
|
16
|
-
'common.empty': string;
|
|
17
|
-
'common.loading': string;
|
|
18
|
-
'common.search': string;
|
|
19
|
-
'common.noResults': string;
|
|
20
|
-
'modal.close': string;
|
|
21
|
-
'drawer.close': string;
|
|
22
|
-
'toast.close': string;
|
|
23
|
-
'table.empty': string;
|
|
24
|
-
'table.selectAll': string;
|
|
25
|
-
/** Template: "Seleccionar {label}" */
|
|
26
|
-
'table.selectRow': string;
|
|
27
|
-
/** Template: "Ver {label}" — accessible name of an interactive row. */
|
|
28
|
-
'table.rowAction': string;
|
|
29
|
-
'appshell.mainNav': string;
|
|
30
|
-
'appshell.breadcrumb': string;
|
|
31
|
-
/** Accessible name for the kit's built-in menu toggle (opt-in via `showMenuToggle`). */
|
|
32
|
-
'appshell.toggleMenu': string;
|
|
33
|
-
'notifications.button': string;
|
|
34
|
-
/** Template: " ({n} sin leer)" */
|
|
35
|
-
'notifications.unreadSuffix': string;
|
|
36
|
-
'notifications.empty': string;
|
|
37
|
-
'notifications.panel': string;
|
|
38
|
-
'notifications.title': string;
|
|
39
|
-
'notifications.markAllRead': string;
|
|
40
|
-
'notifications.clear': string;
|
|
41
|
-
'filters.panel': string;
|
|
42
|
-
'filters.clear': string;
|
|
43
|
-
'filters.bulkActions': string;
|
|
44
|
-
'filters.deselectAll': string;
|
|
45
|
-
'filters.sortBy': string;
|
|
46
|
-
/** Template: "{n} seleccionado" (used when n === 1) */
|
|
47
|
-
'filters.selectedOne': string;
|
|
48
|
-
/** Template: "{n} seleccionados" (used when n !== 1) */
|
|
49
|
-
'filters.selectedMany': string;
|
|
50
|
-
'transfer.available': string;
|
|
51
|
-
'transfer.assigned': string;
|
|
52
|
-
'transfer.assignSelected': string;
|
|
53
|
-
'transfer.removeSelected': string;
|
|
54
|
-
'transfer.empty': string;
|
|
55
|
-
'descList.edit': string;
|
|
56
|
-
'diff.label': string;
|
|
57
|
-
'diff.field': string;
|
|
58
|
-
'diff.before': string;
|
|
59
|
-
'diff.after': string;
|
|
60
|
-
'permissions.markAll': string;
|
|
61
|
-
'permissions.unmarkAll': string;
|
|
62
|
-
'permissions.action': string;
|
|
63
|
-
/** Template: "{action} para {role}" */
|
|
64
|
-
'permissions.cellLabel': string;
|
|
65
|
-
'comments.placeholder': string;
|
|
66
|
-
'comments.send': string;
|
|
67
|
-
'comments.internalTag': string;
|
|
68
|
-
'comments.internalOnly': string;
|
|
69
|
-
'attachments.empty': string;
|
|
70
|
-
/** Template: "Eliminar {name}" */
|
|
71
|
-
'attachments.remove': string;
|
|
72
|
-
/** Template: "Descargar {name}" */
|
|
73
|
-
'attachments.download': string;
|
|
74
|
-
'gallery.thumbnails': string;
|
|
75
|
-
'gallery.viewer': string;
|
|
76
|
-
'gallery.prev': string;
|
|
77
|
-
'gallery.next': string;
|
|
78
|
-
'gallery.close': string;
|
|
79
|
-
/** Template: "Imagen {n}" */
|
|
80
|
-
'gallery.imageNumber': string;
|
|
81
|
-
'alert.close': string;
|
|
82
|
-
'spinner.loading': string;
|
|
83
|
-
'chip.remove': string;
|
|
84
|
-
'calendar.prevMonth': string;
|
|
85
|
-
'calendar.nextMonth': string;
|
|
86
|
-
'calendar.expand': string;
|
|
87
|
-
'calendar.collapse': string;
|
|
88
|
-
/** Mon, Tue, Wed, Thu, Fri, Sat, Sun (in array order, kit assumes Mon-first) */
|
|
89
|
-
'calendar.weekdays': readonly [string, string, string, string, string, string, string];
|
|
90
|
-
'calendar.months': readonly [
|
|
91
|
-
string,
|
|
92
|
-
string,
|
|
93
|
-
string,
|
|
94
|
-
string,
|
|
95
|
-
string,
|
|
96
|
-
string,
|
|
97
|
-
string,
|
|
98
|
-
string,
|
|
99
|
-
string,
|
|
100
|
-
string,
|
|
101
|
-
string,
|
|
102
|
-
string
|
|
103
|
-
];
|
|
104
|
-
'picker.openCalendar': string;
|
|
105
|
-
'picker.clearSelection': string;
|
|
106
|
-
'picker.selectRange': string;
|
|
107
|
-
'picker.searchCommands': string;
|
|
108
|
-
'picker.commandPalette': string;
|
|
109
|
-
'picker.prevYear': string;
|
|
110
|
-
'picker.nextYear': string;
|
|
111
|
-
'picker.prevDecade': string;
|
|
112
|
-
'picker.nextDecade': string;
|
|
113
|
-
'picker.selectYear': string;
|
|
114
|
-
'picker.selectMonth': string;
|
|
115
|
-
/**
|
|
116
|
-
* Single-letter weekday initials used by compact calendar grids (DatePicker,
|
|
117
|
-
* DateRangePicker). Mon-first to match the kit's calendars.
|
|
118
|
-
*/
|
|
119
|
-
'picker.weekdaysShort': readonly [string, string, string, string, string, string, string];
|
|
120
|
-
/** Template: "Quitar {label}" */
|
|
121
|
-
'combobox.remove': string;
|
|
122
|
-
'fileUpload.title': string;
|
|
123
|
-
'pagination.label': string;
|
|
124
|
-
'pagination.prev': string;
|
|
125
|
-
'pagination.next': string;
|
|
126
|
-
/** Template: "{from}–{to} de {total}" */
|
|
127
|
-
'pagination.range': string;
|
|
128
|
-
'pagination.rowsPerPage': string;
|
|
129
|
-
'numberInput.decrement': string;
|
|
130
|
-
'numberInput.increment': string;
|
|
131
|
-
'commerce.quantity': string;
|
|
132
|
-
'commerce.decreaseQty': string;
|
|
133
|
-
'commerce.increaseQty': string;
|
|
134
|
-
'commerce.removeFromCart': string;
|
|
135
|
-
/** Template: "Quitar {name}" */
|
|
136
|
-
'commerce.removeItem': string;
|
|
137
|
-
'commerce.addFavorite': string;
|
|
138
|
-
'commerce.removeFavorite': string;
|
|
139
|
-
'commerce.applyCoupon': string;
|
|
140
|
-
'commerce.cartTitle': string;
|
|
141
|
-
'commerce.cartEmpty': string;
|
|
142
|
-
'commerce.subtotal': string;
|
|
143
|
-
'commerce.checkout': string;
|
|
144
|
-
'commerce.promoPlaceholder': string;
|
|
145
|
-
'commerce.promoInvalid': string;
|
|
146
|
-
'commerce.shippingAchieved': string;
|
|
147
|
-
/** Template before {amount} placeholder: "Te falta " (suffix " para envío gratis"). Split into two so consumers can swap word order. */
|
|
148
|
-
'commerce.shippingPrefix': string;
|
|
149
|
-
'commerce.shippingSuffix': string;
|
|
150
|
-
/** Template: "Quitar {tag}" */
|
|
151
|
-
'tagsInput.remove': string;
|
|
152
|
-
'tagsInput.placeholder': string;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Replace `{var}` placeholders in a template string with values from `vars`.
|
|
156
|
-
* Missing vars are left as-is, so a typo surfaces during dev instead of being
|
|
157
|
-
* silently dropped.
|
|
158
|
-
*/
|
|
159
|
-
declare function format(template: string, vars: Record<string, string | number>): string;
|
|
160
|
-
|
|
161
6
|
declare const esMessages: UiKitMessages;
|
|
162
7
|
|
|
163
8
|
interface LocaleProviderProps {
|
|
@@ -176,4 +21,4 @@ declare function LocaleProvider({ messages, children }: LocaleProviderProps): re
|
|
|
176
21
|
*/
|
|
177
22
|
declare function useLocale(): UiKitMessages;
|
|
178
23
|
|
|
179
|
-
export { LocaleProvider, type LocaleProviderProps,
|
|
24
|
+
export { LocaleProvider, type LocaleProviderProps, UiKitMessages, esMessages, useLocale };
|
package/dist/locale/index.js
CHANGED
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
require('../chunk-4REALDR3.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkW725MLGN_js = require('../chunk-W725MLGN.js');
|
|
6
|
+
var chunkUBSBSZPB_js = require('../chunk-UBSBSZPB.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "format", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkW725MLGN_js.format; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "LocaleProvider", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkUBSBSZPB_js.LocaleProvider; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "esMessages", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkUBSBSZPB_js.esMessages; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "useLocale", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkUBSBSZPB_js.useLocale; }
|
|
25
25
|
});
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
27
27
|
//# sourceMappingURL=index.js.map
|
package/dist/locale/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import '../chunk-CHVTPN3K.mjs';
|
|
3
|
-
export { format } from '../chunk-
|
|
4
|
-
export { LocaleProvider, esMessages, useLocale } from '../chunk-
|
|
3
|
+
export { format } from '../chunk-OWIPC5NO.mjs';
|
|
4
|
+
export { LocaleProvider, esMessages, useLocale } from '../chunk-SXAGF7EG.mjs';
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flat dictionary of UI strings used by the kit. Keys are dot-separated
|
|
3
|
+
* namespaces (component or area). Values may include `{var}` placeholders
|
|
4
|
+
* that get substituted via `format()`.
|
|
5
|
+
*/
|
|
6
|
+
interface UiKitMessages {
|
|
7
|
+
'common.close': string;
|
|
8
|
+
'common.cancel': string;
|
|
9
|
+
'common.confirm': string;
|
|
10
|
+
'common.apply': string;
|
|
11
|
+
'common.clear': string;
|
|
12
|
+
'common.edit': string;
|
|
13
|
+
'common.empty': string;
|
|
14
|
+
'common.loading': string;
|
|
15
|
+
'common.search': string;
|
|
16
|
+
'common.noResults': string;
|
|
17
|
+
'modal.close': string;
|
|
18
|
+
'drawer.close': string;
|
|
19
|
+
'toast.close': string;
|
|
20
|
+
'table.empty': string;
|
|
21
|
+
'table.selectAll': string;
|
|
22
|
+
/** Template: "Seleccionar {label}" */
|
|
23
|
+
'table.selectRow': string;
|
|
24
|
+
/** Template: "Ver {label}" — accessible name of an interactive row. */
|
|
25
|
+
'table.rowAction': string;
|
|
26
|
+
'appshell.mainNav': string;
|
|
27
|
+
'appshell.breadcrumb': string;
|
|
28
|
+
/** Accessible name for the kit's built-in menu toggle (opt-in via `showMenuToggle`). */
|
|
29
|
+
'appshell.toggleMenu': string;
|
|
30
|
+
/** Sub-minute past: "ahora". */
|
|
31
|
+
'timeAgo.now': string;
|
|
32
|
+
/** Sub-minute future: "pronto". */
|
|
33
|
+
'timeAgo.soon': string;
|
|
34
|
+
/** Template: "hace {n} min" (past, 1-59 minutes). */
|
|
35
|
+
'timeAgo.minAgo': string;
|
|
36
|
+
/** Template: "en {n} min" (future, 1-59 minutes). */
|
|
37
|
+
'timeAgo.minIn': string;
|
|
38
|
+
/** Same-day prefix: "hoy". */
|
|
39
|
+
'timeAgo.today': string;
|
|
40
|
+
/** Day-before prefix: "ayer". */
|
|
41
|
+
'timeAgo.yesterday': string;
|
|
42
|
+
/** Day-after prefix: "mañana". */
|
|
43
|
+
'timeAgo.tomorrow': string;
|
|
44
|
+
/** Compact weekday names, index 0 = Sunday (matches `Date.prototype.getDay()`). */
|
|
45
|
+
'timeAgo.weekdaysShort': string[];
|
|
46
|
+
/** Compact month names, index 0 = January (matches `Date.prototype.getMonth()`). */
|
|
47
|
+
'timeAgo.monthsShort': string[];
|
|
48
|
+
'notifications.button': string;
|
|
49
|
+
/** Template: " ({n} sin leer)" */
|
|
50
|
+
'notifications.unreadSuffix': string;
|
|
51
|
+
'notifications.empty': string;
|
|
52
|
+
'notifications.panel': string;
|
|
53
|
+
'notifications.title': string;
|
|
54
|
+
'notifications.markAllRead': string;
|
|
55
|
+
'notifications.clear': string;
|
|
56
|
+
'filters.panel': string;
|
|
57
|
+
'filters.clear': string;
|
|
58
|
+
'filters.bulkActions': string;
|
|
59
|
+
'filters.deselectAll': string;
|
|
60
|
+
'filters.sortBy': string;
|
|
61
|
+
/** Template: "{n} seleccionado" (used when n === 1) */
|
|
62
|
+
'filters.selectedOne': string;
|
|
63
|
+
/** Template: "{n} seleccionados" (used when n !== 1) */
|
|
64
|
+
'filters.selectedMany': string;
|
|
65
|
+
'transfer.available': string;
|
|
66
|
+
'transfer.assigned': string;
|
|
67
|
+
'transfer.assignSelected': string;
|
|
68
|
+
'transfer.removeSelected': string;
|
|
69
|
+
'transfer.empty': string;
|
|
70
|
+
'descList.edit': string;
|
|
71
|
+
'diff.label': string;
|
|
72
|
+
'diff.field': string;
|
|
73
|
+
'diff.before': string;
|
|
74
|
+
'diff.after': string;
|
|
75
|
+
'permissions.markAll': string;
|
|
76
|
+
'permissions.unmarkAll': string;
|
|
77
|
+
'permissions.action': string;
|
|
78
|
+
/** Template: "{action} para {role}" */
|
|
79
|
+
'permissions.cellLabel': string;
|
|
80
|
+
'comments.placeholder': string;
|
|
81
|
+
'comments.send': string;
|
|
82
|
+
'comments.internalTag': string;
|
|
83
|
+
'comments.internalOnly': string;
|
|
84
|
+
'attachments.empty': string;
|
|
85
|
+
/** Template: "Eliminar {name}" */
|
|
86
|
+
'attachments.remove': string;
|
|
87
|
+
/** Template: "Descargar {name}" */
|
|
88
|
+
'attachments.download': string;
|
|
89
|
+
'gallery.thumbnails': string;
|
|
90
|
+
'gallery.viewer': string;
|
|
91
|
+
'gallery.prev': string;
|
|
92
|
+
'gallery.next': string;
|
|
93
|
+
'gallery.close': string;
|
|
94
|
+
/** Template: "Imagen {n}" */
|
|
95
|
+
'gallery.imageNumber': string;
|
|
96
|
+
'alert.close': string;
|
|
97
|
+
'spinner.loading': string;
|
|
98
|
+
'chip.remove': string;
|
|
99
|
+
'calendar.prevMonth': string;
|
|
100
|
+
'calendar.nextMonth': string;
|
|
101
|
+
'calendar.expand': string;
|
|
102
|
+
'calendar.collapse': string;
|
|
103
|
+
/** Mon, Tue, Wed, Thu, Fri, Sat, Sun (in array order, kit assumes Mon-first) */
|
|
104
|
+
'calendar.weekdays': readonly [string, string, string, string, string, string, string];
|
|
105
|
+
'calendar.months': readonly [
|
|
106
|
+
string,
|
|
107
|
+
string,
|
|
108
|
+
string,
|
|
109
|
+
string,
|
|
110
|
+
string,
|
|
111
|
+
string,
|
|
112
|
+
string,
|
|
113
|
+
string,
|
|
114
|
+
string,
|
|
115
|
+
string,
|
|
116
|
+
string,
|
|
117
|
+
string
|
|
118
|
+
];
|
|
119
|
+
'picker.openCalendar': string;
|
|
120
|
+
'picker.clearSelection': string;
|
|
121
|
+
'picker.selectRange': string;
|
|
122
|
+
'picker.searchCommands': string;
|
|
123
|
+
'picker.commandPalette': string;
|
|
124
|
+
'picker.prevYear': string;
|
|
125
|
+
'picker.nextYear': string;
|
|
126
|
+
'picker.prevDecade': string;
|
|
127
|
+
'picker.nextDecade': string;
|
|
128
|
+
'picker.selectYear': string;
|
|
129
|
+
'picker.selectMonth': string;
|
|
130
|
+
/**
|
|
131
|
+
* Single-letter weekday initials used by compact calendar grids (DatePicker,
|
|
132
|
+
* DateRangePicker). Mon-first to match the kit's calendars.
|
|
133
|
+
*/
|
|
134
|
+
'picker.weekdaysShort': readonly [string, string, string, string, string, string, string];
|
|
135
|
+
/** Template: "Quitar {label}" */
|
|
136
|
+
'combobox.remove': string;
|
|
137
|
+
'fileUpload.title': string;
|
|
138
|
+
'pagination.label': string;
|
|
139
|
+
'pagination.prev': string;
|
|
140
|
+
'pagination.next': string;
|
|
141
|
+
/** Template: "{from}–{to} de {total}" */
|
|
142
|
+
'pagination.range': string;
|
|
143
|
+
'pagination.rowsPerPage': string;
|
|
144
|
+
'numberInput.decrement': string;
|
|
145
|
+
'numberInput.increment': string;
|
|
146
|
+
'commerce.quantity': string;
|
|
147
|
+
'commerce.decreaseQty': string;
|
|
148
|
+
'commerce.increaseQty': string;
|
|
149
|
+
'commerce.removeFromCart': string;
|
|
150
|
+
/** Template: "Quitar {name}" */
|
|
151
|
+
'commerce.removeItem': string;
|
|
152
|
+
'commerce.addFavorite': string;
|
|
153
|
+
'commerce.removeFavorite': string;
|
|
154
|
+
'commerce.applyCoupon': string;
|
|
155
|
+
'commerce.cartTitle': string;
|
|
156
|
+
'commerce.cartEmpty': string;
|
|
157
|
+
'commerce.subtotal': string;
|
|
158
|
+
'commerce.checkout': string;
|
|
159
|
+
'commerce.promoPlaceholder': string;
|
|
160
|
+
'commerce.promoInvalid': string;
|
|
161
|
+
'commerce.shippingAchieved': string;
|
|
162
|
+
/** Template before {amount} placeholder: "Te falta " (suffix " para envío gratis"). Split into two so consumers can swap word order. */
|
|
163
|
+
'commerce.shippingPrefix': string;
|
|
164
|
+
'commerce.shippingSuffix': string;
|
|
165
|
+
/** Template: "Quitar {tag}" */
|
|
166
|
+
'tagsInput.remove': string;
|
|
167
|
+
'tagsInput.placeholder': string;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Replace `{var}` placeholders in a template string with values from `vars`.
|
|
171
|
+
* Missing vars are left as-is, so a typo surfaces during dev instead of being
|
|
172
|
+
* silently dropped.
|
|
173
|
+
*/
|
|
174
|
+
declare function format(template: string, vars: Record<string, string | number>): string;
|
|
175
|
+
|
|
176
|
+
export { type UiKitMessages as U, format as f };
|