sodtrack-web-ui 0.109.25 → 0.110.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-NO65QFSV.js +1 -0
- package/dist/chunk-RWMFNW7N.js +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/list-item-arrow.js +1 -1
- package/dist/components/list-item-button.js +1 -1
- package/dist/components/list-item-checkbox-left.js +1 -1
- package/dist/components/list-item-checkbox.js +1 -1
- package/dist/components/list-item_old.js +1 -1
- package/dist/components/locale-provider.d.ts +15 -7
- package/dist/components/locale-provider.js +1 -1
- package/dist/locale.d.ts +74 -62
- package/dist/locale.js +2 -2
- package/dist/styles/index.css +1 -1
- package/dist/supported-locales-ww3F5KrN.d.ts +12 -0
- package/package.json +1 -1
- package/dist/chunk-UB7KGFVR.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {h,j,c}from'./chunk-RWMFNW7N.js';import {LocaleProvider}from'@ark-ui/react/locale';import {jsx}from'react/jsx-runtime';var L=({locale:o,children:p})=>(h(o),j(o),jsx(LocaleProvider,{locale:c(o),children:p}));export{L as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {es,ptBR,enUS}from'date-fns/locale';import {setDefaultOptions,formatDuration}from'date-fns';var a={en:{intlTag:"en-US",dateFns:enUS,uiLanguage:"en",backendLang:"en"},es:{intlTag:"es",dateFns:es,uiLanguage:"es",backendLang:"es"},pt:{intlTag:"pt-BR",dateFns:ptBR,uiLanguage:"pt",backendLang:"pt"},"es-MX":{intlTag:"es-MX",dateFns:es,uiLanguage:"es",backendLang:"es"},"es-CL":{intlTag:"es-CL",dateFns:es,uiLanguage:"es",backendLang:"es"}},m=e=>a[e],S=e=>a[e].intlTag,p=e=>a[e].dateFns,D=e=>a[e].backendLang,F=(e,t)=>e[t]??e[a[t].uiLanguage],s=new Map,x=(e,t=e)=>{let o=s.get(t);o||(o=new Intl.DisplayNames([t],{type:"language"}),s.set(t,o));let r=o.of(e)??e;return r.charAt(0).toUpperCase()+r.slice(1)};var c="en",k=e=>{typeof window>"u"||(c=e);},i=()=>c;var g,v=e=>{typeof window>"u"||g===e||(g=e,setDefaultOptions({locale:p(e)}));},w=(e,t)=>formatDuration(e,{locale:p(i()),...t});export{a,m as b,S as c,p as d,D as e,F as f,x as g,k as h,i,v as j,w as k};
|
|
@@ -125,7 +125,7 @@ import '@ark-ui/react/combobox';
|
|
|
125
125
|
import '../input-field-styles-ZaYx46-q.js';
|
|
126
126
|
import '@ark-ui/react/signature-pad';
|
|
127
127
|
import './step-item.js';
|
|
128
|
-
import '
|
|
128
|
+
import '../supported-locales-ww3F5KrN.js';
|
|
129
129
|
|
|
130
130
|
type AutocompleteOption_old = {
|
|
131
131
|
key?: string | number;
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{e as AutocompleteMultiple_old,a as Autocomplete_old,f as IdField,c as ListItemArrow,g as ListItemButton,d as ListItemCheckbox,h as ListItemCheckboxLeft,b as ListItem_old,o as PhoneInput,n as RichTextEditor,m as convertHtmlToQuillCompatible,j as defaultToolbarConfig,i as lexicalTheme,k as normalizeHtmlForComparison,l as normalizeQuillHtmlForLexical}from'../chunk-MFVBB7LJ.js';export{c as getSelectedCount,b as getSelectedIds,a as syncSelectionDataMap,d as useRowSelectionWithData}from'../chunk-ABJHG7HB.js';export{a as Textarea}from'../chunk-AEKMGJ2L.js';export{a as TextareaSizes_old,b as Textarea_old}from'../chunk-SIA2GA6D.js';export{a as TimePicker}from'../chunk-UPVM72WX.js';export{a as TimePicker_old}from'../chunk-FKX6C4AB.js';export{a as ToastTypes,c as Toaster,b as toast}from'../chunk-3EQKZA4E.js';export{e as TrackerItem,c as TrackerItemExpandableContent,d as TrackerItemFooter,b as TrackerItemHeader,a as useTrackerItem}from'../chunk-WJS7UII5.js';export{b as SnackbarProvider,a as snackbar}from'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';export{c as Tabs,f as TabsContent,d as TabsList,b as TabsSizes,e as TabsTrigger,a as TabsVariants}from'../chunk-HPAR3YH6.js';export{a as TextField}from'../chunk-HVKEP4T2.js';export{a as ScrollArea,b as ScrollBar}from'../chunk-5T72Q62I.js';export{a as SelectSkeleton}from'../chunk-FZVOKCYO.js';export{c as Select,b as SelectSizeDefault,a as SelectSizes}from'../chunk-2YYGM3SN.js';export{a as Select_old}from'../chunk-4UTR6XAH.js';export{c as Sidebar,e as SidebarBody,f as SidebarFooter,d as SidebarHeader,b as SidebarProvider,a as useSidebar}from'../chunk-UHFTMWEK.js';export{a as SignaturePad}from'../chunk-5AHJZHZG.js';export{a as NumberFieldSkeleton}from'../chunk-P5FV5ZGY.js';export{a as PhoneInputSkeleton}from'../chunk-FURFUBTJ.js';export{c as PopoverContent_old,b as PopoverTrigger_old,a as Popover_old}from'../chunk-XNBXUXHQ.js';export{b as Rating,a as RatingSizes}from'../chunk-XNZH53UN.js';export{a as LocaleProvider}from'../chunk-
|
|
1
|
+
export{e as AutocompleteMultiple_old,a as Autocomplete_old,f as IdField,c as ListItemArrow,g as ListItemButton,d as ListItemCheckbox,h as ListItemCheckboxLeft,b as ListItem_old,o as PhoneInput,n as RichTextEditor,m as convertHtmlToQuillCompatible,j as defaultToolbarConfig,i as lexicalTheme,k as normalizeHtmlForComparison,l as normalizeQuillHtmlForLexical}from'../chunk-MFVBB7LJ.js';export{c as getSelectedCount,b as getSelectedIds,a as syncSelectionDataMap,d as useRowSelectionWithData}from'../chunk-ABJHG7HB.js';export{a as Textarea}from'../chunk-AEKMGJ2L.js';export{a as TextareaSizes_old,b as Textarea_old}from'../chunk-SIA2GA6D.js';export{a as TimePicker}from'../chunk-UPVM72WX.js';export{a as TimePicker_old}from'../chunk-FKX6C4AB.js';export{a as ToastTypes,c as Toaster,b as toast}from'../chunk-3EQKZA4E.js';export{e as TrackerItem,c as TrackerItemExpandableContent,d as TrackerItemFooter,b as TrackerItemHeader,a as useTrackerItem}from'../chunk-WJS7UII5.js';export{b as SnackbarProvider,a as snackbar}from'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';export{c as Tabs,f as TabsContent,d as TabsList,b as TabsSizes,e as TabsTrigger,a as TabsVariants}from'../chunk-HPAR3YH6.js';export{a as TextField}from'../chunk-HVKEP4T2.js';export{a as ScrollArea,b as ScrollBar}from'../chunk-5T72Q62I.js';export{a as SelectSkeleton}from'../chunk-FZVOKCYO.js';export{c as Select,b as SelectSizeDefault,a as SelectSizes}from'../chunk-2YYGM3SN.js';export{a as Select_old}from'../chunk-4UTR6XAH.js';export{c as Sidebar,e as SidebarBody,f as SidebarFooter,d as SidebarHeader,b as SidebarProvider,a as useSidebar}from'../chunk-UHFTMWEK.js';export{a as SignaturePad}from'../chunk-5AHJZHZG.js';export{a as NumberFieldSkeleton}from'../chunk-P5FV5ZGY.js';export{a as PhoneInputSkeleton}from'../chunk-FURFUBTJ.js';export{c as PopoverContent_old,b as PopoverTrigger_old,a as Popover_old}from'../chunk-XNBXUXHQ.js';export{b as Rating,a as RatingSizes}from'../chunk-XNZH53UN.js';export{a as LocaleProvider}from'../chunk-NO65QFSV.js';export{a as DrawerBar}from'../chunk-PKH2WC3V.js';export{c as SearchBar,a as SearchBarSizeOptions,b as searchBarStyles}from'../chunk-ZE64BJO4.js';export{a as Drawer,g as DrawerBody,h as DrawerCloseTrigger,d as DrawerContent,f as DrawerFooter,e as DrawerHeader,c as DrawerSizes,b as DrawerTrigger}from'../chunk-QLPFU42W.js';export{c as Dropzone,a as DropzoneAcceptedFileTypes,b as DropzoneSizes}from'../chunk-YUWN3BIR.js';export{a as ERROR_SCREEN_VARIANTS,b as ErrorScreen}from'../chunk-XWBK5NU6.js';export{c as ChoiceChips,a as ChoiceChipsOrientations,b as disableUnselected}from'../chunk-OQCEARDQ.js';export{d as BUSINESS_COUNTRY_CODES,h as BusinessCountryEnum,c as ID_COUNTRY_CODES,b as ISO_COUNTRY_CODES,g as IdCountryEnum,e as IsoCountryEnum,a as PHONE_COUNTRY_CODES,f as PhoneCountryEnum,l as isBusinessCountryCode,k as isIdCountryCode,i as isIsoCountryCode,j as isPhoneCountryCode}from'../chunk-3X2MEX7P.js';export{a as DataTable}from'../chunk-3G64XQGO.js';export{b as Table,d as TableBody,e as TableBodyRow,i as TableCell,a as TableContainer,h as TableHead,c as TableHeader,g as TableHeaderRow,f as TableNoResults,j as TablePagination}from'../chunk-LHUPLORK.js';export{a as Popover,c as PopoverContent,b as PopoverTrigger}from'../chunk-GTVHYHF4.js';export{a as DatePickerPopover}from'../chunk-56U6GYXH.js';export{a as DatePicker}from'../chunk-OIWYXSPZ.js';export{a as DatePicker_old}from'../chunk-URNDTXH2.js';import'../chunk-GFVJRSZI.js';export{a as TextField_old}from'../chunk-CA5XNVS5.js';import'../chunk-T2Q6B32U.js';export{a as Dialog,i as DialogActionButton,f as DialogBody,j as DialogCloseButton,c as DialogContent,h as DialogDescription,k as DialogExtraButton,e as DialogFooter,d as DialogHeader,g as DialogTitle,b as DialogTrigger}from'../chunk-TZNMKBEU.js';export{c as ChipFormComplementary,a as ChipFormComplementaryVariants,b as ChipFormComplementaryVariantsClassNames}from'../chunk-QONM4Q4J.js';export{d as ChipForm,c as ChipFormSizes,b as ChipFormTypes,a as ChipFormVariants}from'../chunk-3HZUH4JJ.js';export{c as ChipStatusComplementary,b as ChipStatusComplementarySizes,a as ChipStatusComplementaryVariants}from'../chunk-AUMOOT6L.js';export{a as ChipStatusTable}from'../chunk-Y73ZUBRE.js';export{e as Chip,d as ChipDefaults,c as ChipSizes,b as ChipTones,a as ChipVariants}from'../chunk-SRCJQWFE.js';export{d as Calendar,a as CalendarProvider,c as parseDate,b as useCalendar}from'../chunk-CX3AKEIY.js';import'../chunk-MWSAZ4IF.js';export{a as Calendar_old}from'../chunk-OY5A3XIW.js';export{d as CardBasic,b as CardBasicBody,c as CardBasicFooter,a as CardBasicHeader}from'../chunk-EJNWHQVT.js';export{d as Switch,a as SwitchSizes,b as SwitchTypes,c as SwitchVariants}from'../chunk-7JM2X4UD.js';export{d as CardExpandable,b as CardExpandableContent,c as CardExpandableFixedContent,a as CardExpandableHeader}from'../chunk-AGR3KR24.js';export{c as ChipExpandable,b as ChipExpandableTypes,a as ChipExpandableVariants}from'../chunk-JYNJHAGL.js';export{a as CardForm,c as CardFormBody,d as CardFormFooter,b as CardFormHeader}from'../chunk-A6APVBGY.js';export{j as Carousel,j as CarouselComponent,b as CarouselControl,f as CarouselIndicator,e as CarouselIndicatorGroup,h as CarouselItem,g as CarouselItemGroup,d as CarouselNextTrigger,c as CarouselPrevTrigger,a as CarouselRoot,i as CarouselViewport}from'../chunk-CTR3GKCC.js';export{d as ChipContext,c as ChipContextColors,b as ChipContextSizes,a as ChipContextVariants}from'../chunk-JA7GAJ6P.js';export{a as BadgeStatusSkeleton}from'../chunk-PIMSGQMD.js';export{d as ButtonActive,a as ButtonActiveSizes,c as ButtonActiveTones,b as ButtonActiveVariants}from'../chunk-3EMC2WVC.js';export{d as ButtonMenu,a as ButtonMenuSizes,c as ButtonMenuTones,b as ButtonMenuWeights}from'../chunk-HWYJLM4O.js';export{a as Menu}from'../chunk-LUQQ6CGZ.js';export{b as ListItem,a as useListItemDisabled}from'../chunk-NETNR3VC.js';export{b as NumberField,a as numberFieldFormatOptions}from'../chunk-ORVJ7EFO.js';export{c as RadioGroup,d as RadioGroupItem,a as RadioGroupOrientation,b as radioStyles}from'../chunk-6QOM3R5H.js';export{c as Checkbox,a as CheckboxCheckedStates,b as checkboxStyles}from'../chunk-E3WJNVAZ.js';export{a as BadgeStatus}from'../chunk-UIZFLYFP.js';export{a as AutocompleteMultiple}from'../chunk-QAFHVJD5.js';export{d as ChipInput,b as ChipInputColors,a as ChipInputSizes,c as ChipInputVariants}from'../chunk-HPIKGJQV.js';export{a as AutocompleteSkeleton}from'../chunk-RBPNFUWP.js';export{c as Autocomplete,b as AutocompleteSizeDefault,a as AutocompleteSizes}from'../chunk-DB2FUUF5.js';export{a as EmptyState}from'../chunk-Y3GITC4K.js';import'../chunk-FHABUQAH.js';import'../chunk-76J4QR6W.js';import'../chunk-ZMMNEYEQ.js';import'../chunk-QJOYOR4B.js';import'../chunk-VIMWKUML.js';export{a as FormLabel}from'../chunk-6MK7NLF5.js';export{a as Tooltip}from'../chunk-HIULYFIC.js';export{b as Avatar,a as AvatarSizes}from'../chunk-GB2SAYAL.js';export{a as BadgeCategorySkeleton}from'../chunk-RQQJYDAY.js';export{d as BadgeCategory,a as BadgeCategoryColors,c as BadgeCategorySizes,b as BadgeCategoryVariants}from'../chunk-YFDUDY6Y.js';export{a as BadgeExpandableSkeleton}from'../chunk-DL3P7FK4.js';export{a as BadgeExpandable}from'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-RWMFNW7N.js';export{b as AccordionForm,e as AccordionFormContent,c as AccordionFormItem,a as AccordionFormSizes,d as AccordionFormTrigger}from'../chunk-6YHL2TME.js';export{c as Accordion,g as AccordionContent,d as AccordionItem,a as AccordionPrimitive,b as AccordionSizes,f as AccordionTrigger,e as AccordionTriggerEmpty}from'../chunk-5TQ2OJAH.js';export{d as ChipStatus,b as ChipStatusSizes,c as ChipStatusTypes,a as ChipStatusVariants}from'../chunk-MP4CHZ2K.js';export{a as Badge}from'../chunk-R6NIURLZ.js';export{a as AlertDialog,f as AlertDialogActionButton,m as AlertDialogBody,g as AlertDialogCloseButton,e as AlertDialogContent,l as AlertDialogDescription,h as AlertDialogExtraButton,j as AlertDialogFooter,i as AlertDialogHeader,d as AlertDialogOverlay,c as AlertDialogPortal,k as AlertDialogTitle,b as AlertDialogTrigger}from'../chunk-SNVP243V.js';export{a as Divider,b as Separator}from'../chunk-AWRP67K4.js';export{a as AlertMessage}from'../chunk-2MCKR6KX.js';export{e as IconButton,d as IconButtonShapes,a as IconButtonSizes,c as IconButtonTones,b as IconButtonVariants}from'../chunk-PI7DECIN.js';import'../chunk-Q4CWL65C.js';import'../chunk-ICF6RQIW.js';export{e as Button,a as ButtonSizes,c as ButtonTones,b as ButtonVariants,d as buttonStyles}from'../chunk-RVEUW4QG.js';export{c as Spinner,a as SpinnerSizes,b as SpinnerTones}from'../chunk-C7TLKKPT.js';export{a as BadgeNumber}from'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';export{a as AutocompleteMultipleSkeleton}from'../chunk-N6BWYHOE.js';export{a as Skeleton}from'../chunk-KTD2GEB6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as ListItemArrow}from'../chunk-MFVBB7LJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-AEKMGJ2L.js';import'../chunk-SIA2GA6D.js';import'../chunk-UPVM72WX.js';import'../chunk-FKX6C4AB.js';import'../chunk-3EQKZA4E.js';import'../chunk-WJS7UII5.js';import'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';import'../chunk-HPAR3YH6.js';import'../chunk-HVKEP4T2.js';import'../chunk-5T72Q62I.js';import'../chunk-FZVOKCYO.js';import'../chunk-2YYGM3SN.js';import'../chunk-4UTR6XAH.js';import'../chunk-UHFTMWEK.js';import'../chunk-5AHJZHZG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XNZH53UN.js';import'../chunk-
|
|
1
|
+
export{c as ListItemArrow}from'../chunk-MFVBB7LJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-AEKMGJ2L.js';import'../chunk-SIA2GA6D.js';import'../chunk-UPVM72WX.js';import'../chunk-FKX6C4AB.js';import'../chunk-3EQKZA4E.js';import'../chunk-WJS7UII5.js';import'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';import'../chunk-HPAR3YH6.js';import'../chunk-HVKEP4T2.js';import'../chunk-5T72Q62I.js';import'../chunk-FZVOKCYO.js';import'../chunk-2YYGM3SN.js';import'../chunk-4UTR6XAH.js';import'../chunk-UHFTMWEK.js';import'../chunk-5AHJZHZG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XNZH53UN.js';import'../chunk-NO65QFSV.js';import'../chunk-PKH2WC3V.js';import'../chunk-ZE64BJO4.js';import'../chunk-QLPFU42W.js';import'../chunk-YUWN3BIR.js';import'../chunk-XWBK5NU6.js';import'../chunk-OQCEARDQ.js';import'../chunk-3X2MEX7P.js';import'../chunk-3G64XQGO.js';import'../chunk-LHUPLORK.js';import'../chunk-GTVHYHF4.js';import'../chunk-56U6GYXH.js';import'../chunk-OIWYXSPZ.js';import'../chunk-URNDTXH2.js';import'../chunk-GFVJRSZI.js';import'../chunk-CA5XNVS5.js';import'../chunk-T2Q6B32U.js';import'../chunk-TZNMKBEU.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-SRCJQWFE.js';import'../chunk-CX3AKEIY.js';import'../chunk-MWSAZ4IF.js';import'../chunk-OY5A3XIW.js';import'../chunk-EJNWHQVT.js';import'../chunk-7JM2X4UD.js';import'../chunk-AGR3KR24.js';import'../chunk-JYNJHAGL.js';import'../chunk-A6APVBGY.js';import'../chunk-CTR3GKCC.js';import'../chunk-JA7GAJ6P.js';import'../chunk-PIMSGQMD.js';import'../chunk-3EMC2WVC.js';import'../chunk-HWYJLM4O.js';import'../chunk-LUQQ6CGZ.js';import'../chunk-NETNR3VC.js';import'../chunk-ORVJ7EFO.js';import'../chunk-6QOM3R5H.js';import'../chunk-E3WJNVAZ.js';import'../chunk-UIZFLYFP.js';import'../chunk-QAFHVJD5.js';import'../chunk-HPIKGJQV.js';import'../chunk-RBPNFUWP.js';import'../chunk-DB2FUUF5.js';import'../chunk-Y3GITC4K.js';import'../chunk-FHABUQAH.js';import'../chunk-76J4QR6W.js';import'../chunk-ZMMNEYEQ.js';import'../chunk-QJOYOR4B.js';import'../chunk-VIMWKUML.js';import'../chunk-6MK7NLF5.js';import'../chunk-HIULYFIC.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-RWMFNW7N.js';import'../chunk-6YHL2TME.js';import'../chunk-5TQ2OJAH.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-SNVP243V.js';import'../chunk-AWRP67K4.js';import'../chunk-2MCKR6KX.js';import'../chunk-PI7DECIN.js';import'../chunk-Q4CWL65C.js';import'../chunk-ICF6RQIW.js';import'../chunk-RVEUW4QG.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as ListItemButton}from'../chunk-MFVBB7LJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-AEKMGJ2L.js';import'../chunk-SIA2GA6D.js';import'../chunk-UPVM72WX.js';import'../chunk-FKX6C4AB.js';import'../chunk-3EQKZA4E.js';import'../chunk-WJS7UII5.js';import'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';import'../chunk-HPAR3YH6.js';import'../chunk-HVKEP4T2.js';import'../chunk-5T72Q62I.js';import'../chunk-FZVOKCYO.js';import'../chunk-2YYGM3SN.js';import'../chunk-4UTR6XAH.js';import'../chunk-UHFTMWEK.js';import'../chunk-5AHJZHZG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XNZH53UN.js';import'../chunk-
|
|
1
|
+
export{g as ListItemButton}from'../chunk-MFVBB7LJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-AEKMGJ2L.js';import'../chunk-SIA2GA6D.js';import'../chunk-UPVM72WX.js';import'../chunk-FKX6C4AB.js';import'../chunk-3EQKZA4E.js';import'../chunk-WJS7UII5.js';import'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';import'../chunk-HPAR3YH6.js';import'../chunk-HVKEP4T2.js';import'../chunk-5T72Q62I.js';import'../chunk-FZVOKCYO.js';import'../chunk-2YYGM3SN.js';import'../chunk-4UTR6XAH.js';import'../chunk-UHFTMWEK.js';import'../chunk-5AHJZHZG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XNZH53UN.js';import'../chunk-NO65QFSV.js';import'../chunk-PKH2WC3V.js';import'../chunk-ZE64BJO4.js';import'../chunk-QLPFU42W.js';import'../chunk-YUWN3BIR.js';import'../chunk-XWBK5NU6.js';import'../chunk-OQCEARDQ.js';import'../chunk-3X2MEX7P.js';import'../chunk-3G64XQGO.js';import'../chunk-LHUPLORK.js';import'../chunk-GTVHYHF4.js';import'../chunk-56U6GYXH.js';import'../chunk-OIWYXSPZ.js';import'../chunk-URNDTXH2.js';import'../chunk-GFVJRSZI.js';import'../chunk-CA5XNVS5.js';import'../chunk-T2Q6B32U.js';import'../chunk-TZNMKBEU.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-SRCJQWFE.js';import'../chunk-CX3AKEIY.js';import'../chunk-MWSAZ4IF.js';import'../chunk-OY5A3XIW.js';import'../chunk-EJNWHQVT.js';import'../chunk-7JM2X4UD.js';import'../chunk-AGR3KR24.js';import'../chunk-JYNJHAGL.js';import'../chunk-A6APVBGY.js';import'../chunk-CTR3GKCC.js';import'../chunk-JA7GAJ6P.js';import'../chunk-PIMSGQMD.js';import'../chunk-3EMC2WVC.js';import'../chunk-HWYJLM4O.js';import'../chunk-LUQQ6CGZ.js';import'../chunk-NETNR3VC.js';import'../chunk-ORVJ7EFO.js';import'../chunk-6QOM3R5H.js';import'../chunk-E3WJNVAZ.js';import'../chunk-UIZFLYFP.js';import'../chunk-QAFHVJD5.js';import'../chunk-HPIKGJQV.js';import'../chunk-RBPNFUWP.js';import'../chunk-DB2FUUF5.js';import'../chunk-Y3GITC4K.js';import'../chunk-FHABUQAH.js';import'../chunk-76J4QR6W.js';import'../chunk-ZMMNEYEQ.js';import'../chunk-QJOYOR4B.js';import'../chunk-VIMWKUML.js';import'../chunk-6MK7NLF5.js';import'../chunk-HIULYFIC.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-RWMFNW7N.js';import'../chunk-6YHL2TME.js';import'../chunk-5TQ2OJAH.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-SNVP243V.js';import'../chunk-AWRP67K4.js';import'../chunk-2MCKR6KX.js';import'../chunk-PI7DECIN.js';import'../chunk-Q4CWL65C.js';import'../chunk-ICF6RQIW.js';import'../chunk-RVEUW4QG.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{h as ListItemCheckboxLeft}from'../chunk-MFVBB7LJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-AEKMGJ2L.js';import'../chunk-SIA2GA6D.js';import'../chunk-UPVM72WX.js';import'../chunk-FKX6C4AB.js';import'../chunk-3EQKZA4E.js';import'../chunk-WJS7UII5.js';import'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';import'../chunk-HPAR3YH6.js';import'../chunk-HVKEP4T2.js';import'../chunk-5T72Q62I.js';import'../chunk-FZVOKCYO.js';import'../chunk-2YYGM3SN.js';import'../chunk-4UTR6XAH.js';import'../chunk-UHFTMWEK.js';import'../chunk-5AHJZHZG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XNZH53UN.js';import'../chunk-
|
|
1
|
+
export{h as ListItemCheckboxLeft}from'../chunk-MFVBB7LJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-AEKMGJ2L.js';import'../chunk-SIA2GA6D.js';import'../chunk-UPVM72WX.js';import'../chunk-FKX6C4AB.js';import'../chunk-3EQKZA4E.js';import'../chunk-WJS7UII5.js';import'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';import'../chunk-HPAR3YH6.js';import'../chunk-HVKEP4T2.js';import'../chunk-5T72Q62I.js';import'../chunk-FZVOKCYO.js';import'../chunk-2YYGM3SN.js';import'../chunk-4UTR6XAH.js';import'../chunk-UHFTMWEK.js';import'../chunk-5AHJZHZG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XNZH53UN.js';import'../chunk-NO65QFSV.js';import'../chunk-PKH2WC3V.js';import'../chunk-ZE64BJO4.js';import'../chunk-QLPFU42W.js';import'../chunk-YUWN3BIR.js';import'../chunk-XWBK5NU6.js';import'../chunk-OQCEARDQ.js';import'../chunk-3X2MEX7P.js';import'../chunk-3G64XQGO.js';import'../chunk-LHUPLORK.js';import'../chunk-GTVHYHF4.js';import'../chunk-56U6GYXH.js';import'../chunk-OIWYXSPZ.js';import'../chunk-URNDTXH2.js';import'../chunk-GFVJRSZI.js';import'../chunk-CA5XNVS5.js';import'../chunk-T2Q6B32U.js';import'../chunk-TZNMKBEU.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-SRCJQWFE.js';import'../chunk-CX3AKEIY.js';import'../chunk-MWSAZ4IF.js';import'../chunk-OY5A3XIW.js';import'../chunk-EJNWHQVT.js';import'../chunk-7JM2X4UD.js';import'../chunk-AGR3KR24.js';import'../chunk-JYNJHAGL.js';import'../chunk-A6APVBGY.js';import'../chunk-CTR3GKCC.js';import'../chunk-JA7GAJ6P.js';import'../chunk-PIMSGQMD.js';import'../chunk-3EMC2WVC.js';import'../chunk-HWYJLM4O.js';import'../chunk-LUQQ6CGZ.js';import'../chunk-NETNR3VC.js';import'../chunk-ORVJ7EFO.js';import'../chunk-6QOM3R5H.js';import'../chunk-E3WJNVAZ.js';import'../chunk-UIZFLYFP.js';import'../chunk-QAFHVJD5.js';import'../chunk-HPIKGJQV.js';import'../chunk-RBPNFUWP.js';import'../chunk-DB2FUUF5.js';import'../chunk-Y3GITC4K.js';import'../chunk-FHABUQAH.js';import'../chunk-76J4QR6W.js';import'../chunk-ZMMNEYEQ.js';import'../chunk-QJOYOR4B.js';import'../chunk-VIMWKUML.js';import'../chunk-6MK7NLF5.js';import'../chunk-HIULYFIC.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-RWMFNW7N.js';import'../chunk-6YHL2TME.js';import'../chunk-5TQ2OJAH.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-SNVP243V.js';import'../chunk-AWRP67K4.js';import'../chunk-2MCKR6KX.js';import'../chunk-PI7DECIN.js';import'../chunk-Q4CWL65C.js';import'../chunk-ICF6RQIW.js';import'../chunk-RVEUW4QG.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as ListItemCheckbox}from'../chunk-MFVBB7LJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-AEKMGJ2L.js';import'../chunk-SIA2GA6D.js';import'../chunk-UPVM72WX.js';import'../chunk-FKX6C4AB.js';import'../chunk-3EQKZA4E.js';import'../chunk-WJS7UII5.js';import'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';import'../chunk-HPAR3YH6.js';import'../chunk-HVKEP4T2.js';import'../chunk-5T72Q62I.js';import'../chunk-FZVOKCYO.js';import'../chunk-2YYGM3SN.js';import'../chunk-4UTR6XAH.js';import'../chunk-UHFTMWEK.js';import'../chunk-5AHJZHZG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XNZH53UN.js';import'../chunk-
|
|
1
|
+
export{d as ListItemCheckbox}from'../chunk-MFVBB7LJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-AEKMGJ2L.js';import'../chunk-SIA2GA6D.js';import'../chunk-UPVM72WX.js';import'../chunk-FKX6C4AB.js';import'../chunk-3EQKZA4E.js';import'../chunk-WJS7UII5.js';import'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';import'../chunk-HPAR3YH6.js';import'../chunk-HVKEP4T2.js';import'../chunk-5T72Q62I.js';import'../chunk-FZVOKCYO.js';import'../chunk-2YYGM3SN.js';import'../chunk-4UTR6XAH.js';import'../chunk-UHFTMWEK.js';import'../chunk-5AHJZHZG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XNZH53UN.js';import'../chunk-NO65QFSV.js';import'../chunk-PKH2WC3V.js';import'../chunk-ZE64BJO4.js';import'../chunk-QLPFU42W.js';import'../chunk-YUWN3BIR.js';import'../chunk-XWBK5NU6.js';import'../chunk-OQCEARDQ.js';import'../chunk-3X2MEX7P.js';import'../chunk-3G64XQGO.js';import'../chunk-LHUPLORK.js';import'../chunk-GTVHYHF4.js';import'../chunk-56U6GYXH.js';import'../chunk-OIWYXSPZ.js';import'../chunk-URNDTXH2.js';import'../chunk-GFVJRSZI.js';import'../chunk-CA5XNVS5.js';import'../chunk-T2Q6B32U.js';import'../chunk-TZNMKBEU.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-SRCJQWFE.js';import'../chunk-CX3AKEIY.js';import'../chunk-MWSAZ4IF.js';import'../chunk-OY5A3XIW.js';import'../chunk-EJNWHQVT.js';import'../chunk-7JM2X4UD.js';import'../chunk-AGR3KR24.js';import'../chunk-JYNJHAGL.js';import'../chunk-A6APVBGY.js';import'../chunk-CTR3GKCC.js';import'../chunk-JA7GAJ6P.js';import'../chunk-PIMSGQMD.js';import'../chunk-3EMC2WVC.js';import'../chunk-HWYJLM4O.js';import'../chunk-LUQQ6CGZ.js';import'../chunk-NETNR3VC.js';import'../chunk-ORVJ7EFO.js';import'../chunk-6QOM3R5H.js';import'../chunk-E3WJNVAZ.js';import'../chunk-UIZFLYFP.js';import'../chunk-QAFHVJD5.js';import'../chunk-HPIKGJQV.js';import'../chunk-RBPNFUWP.js';import'../chunk-DB2FUUF5.js';import'../chunk-Y3GITC4K.js';import'../chunk-FHABUQAH.js';import'../chunk-76J4QR6W.js';import'../chunk-ZMMNEYEQ.js';import'../chunk-QJOYOR4B.js';import'../chunk-VIMWKUML.js';import'../chunk-6MK7NLF5.js';import'../chunk-HIULYFIC.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-RWMFNW7N.js';import'../chunk-6YHL2TME.js';import'../chunk-5TQ2OJAH.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-SNVP243V.js';import'../chunk-AWRP67K4.js';import'../chunk-2MCKR6KX.js';import'../chunk-PI7DECIN.js';import'../chunk-Q4CWL65C.js';import'../chunk-ICF6RQIW.js';import'../chunk-RVEUW4QG.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as ListItem_old}from'../chunk-MFVBB7LJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-AEKMGJ2L.js';import'../chunk-SIA2GA6D.js';import'../chunk-UPVM72WX.js';import'../chunk-FKX6C4AB.js';import'../chunk-3EQKZA4E.js';import'../chunk-WJS7UII5.js';import'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';import'../chunk-HPAR3YH6.js';import'../chunk-HVKEP4T2.js';import'../chunk-5T72Q62I.js';import'../chunk-FZVOKCYO.js';import'../chunk-2YYGM3SN.js';import'../chunk-4UTR6XAH.js';import'../chunk-UHFTMWEK.js';import'../chunk-5AHJZHZG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XNZH53UN.js';import'../chunk-
|
|
1
|
+
export{b as ListItem_old}from'../chunk-MFVBB7LJ.js';import'../chunk-ABJHG7HB.js';import'../chunk-AEKMGJ2L.js';import'../chunk-SIA2GA6D.js';import'../chunk-UPVM72WX.js';import'../chunk-FKX6C4AB.js';import'../chunk-3EQKZA4E.js';import'../chunk-WJS7UII5.js';import'../chunk-ZUAYZB2L.js';import'../chunk-FM2XHJR6.js';import'../chunk-HPAR3YH6.js';import'../chunk-HVKEP4T2.js';import'../chunk-5T72Q62I.js';import'../chunk-FZVOKCYO.js';import'../chunk-2YYGM3SN.js';import'../chunk-4UTR6XAH.js';import'../chunk-UHFTMWEK.js';import'../chunk-5AHJZHZG.js';import'../chunk-P5FV5ZGY.js';import'../chunk-FURFUBTJ.js';import'../chunk-XNBXUXHQ.js';import'../chunk-XNZH53UN.js';import'../chunk-NO65QFSV.js';import'../chunk-PKH2WC3V.js';import'../chunk-ZE64BJO4.js';import'../chunk-QLPFU42W.js';import'../chunk-YUWN3BIR.js';import'../chunk-XWBK5NU6.js';import'../chunk-OQCEARDQ.js';import'../chunk-3X2MEX7P.js';import'../chunk-3G64XQGO.js';import'../chunk-LHUPLORK.js';import'../chunk-GTVHYHF4.js';import'../chunk-56U6GYXH.js';import'../chunk-OIWYXSPZ.js';import'../chunk-URNDTXH2.js';import'../chunk-GFVJRSZI.js';import'../chunk-CA5XNVS5.js';import'../chunk-T2Q6B32U.js';import'../chunk-TZNMKBEU.js';import'../chunk-QONM4Q4J.js';import'../chunk-3HZUH4JJ.js';import'../chunk-AUMOOT6L.js';import'../chunk-Y73ZUBRE.js';import'../chunk-SRCJQWFE.js';import'../chunk-CX3AKEIY.js';import'../chunk-MWSAZ4IF.js';import'../chunk-OY5A3XIW.js';import'../chunk-EJNWHQVT.js';import'../chunk-7JM2X4UD.js';import'../chunk-AGR3KR24.js';import'../chunk-JYNJHAGL.js';import'../chunk-A6APVBGY.js';import'../chunk-CTR3GKCC.js';import'../chunk-JA7GAJ6P.js';import'../chunk-PIMSGQMD.js';import'../chunk-3EMC2WVC.js';import'../chunk-HWYJLM4O.js';import'../chunk-LUQQ6CGZ.js';import'../chunk-NETNR3VC.js';import'../chunk-ORVJ7EFO.js';import'../chunk-6QOM3R5H.js';import'../chunk-E3WJNVAZ.js';import'../chunk-UIZFLYFP.js';import'../chunk-QAFHVJD5.js';import'../chunk-HPIKGJQV.js';import'../chunk-RBPNFUWP.js';import'../chunk-DB2FUUF5.js';import'../chunk-Y3GITC4K.js';import'../chunk-FHABUQAH.js';import'../chunk-76J4QR6W.js';import'../chunk-ZMMNEYEQ.js';import'../chunk-QJOYOR4B.js';import'../chunk-VIMWKUML.js';import'../chunk-6MK7NLF5.js';import'../chunk-HIULYFIC.js';import'../chunk-GB2SAYAL.js';import'../chunk-RQQJYDAY.js';import'../chunk-YFDUDY6Y.js';import'../chunk-DL3P7FK4.js';import'../chunk-JW7HS6NX.js';import'../chunk-U4NJK7JM.js';import'../chunk-RWMFNW7N.js';import'../chunk-6YHL2TME.js';import'../chunk-5TQ2OJAH.js';import'../chunk-MP4CHZ2K.js';import'../chunk-R6NIURLZ.js';import'../chunk-SNVP243V.js';import'../chunk-AWRP67K4.js';import'../chunk-2MCKR6KX.js';import'../chunk-PI7DECIN.js';import'../chunk-Q4CWL65C.js';import'../chunk-ICF6RQIW.js';import'../chunk-RVEUW4QG.js';import'../chunk-C7TLKKPT.js';import'../chunk-P6B33GL6.js';import'../chunk-CQI4KDR4.js';import'../chunk-N6BWYHOE.js';import'../chunk-KTD2GEB6.js';import'../chunk-OBZIYJO7.js';
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { S as SupportedLocale } from '../supported-locales-ww3F5KrN.js';
|
|
3
4
|
|
|
5
|
+
type LocaleProviderProps = {
|
|
6
|
+
locale: SupportedLocale;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
4
9
|
/**
|
|
5
|
-
*
|
|
6
|
-
* (
|
|
7
|
-
*
|
|
8
|
-
*
|
|
10
|
+
* Single locale entry point: from one `locale` prop it sets the active-locale
|
|
11
|
+
* singleton (Intl formatters), mirrors it onto date-fns's global (ambient
|
|
12
|
+
* date-fns calls) and feeds Ark the intlTag — in the render body so children read
|
|
13
|
+
* it the same render. Mount once at the app root.
|
|
14
|
+
*
|
|
15
|
+
* ponytail: these render-body writes to module globals can briefly mis-format the
|
|
16
|
+
* old tree under a concurrent locale-switch transition — accepted (rare
|
|
17
|
+
* navigations; formatters can't read context). Upgrade: useSyncExternalStore.
|
|
9
18
|
*/
|
|
10
|
-
declare const LocaleProvider: (
|
|
11
|
-
type LocaleProviderProps = LocaleProviderProps$1;
|
|
19
|
+
declare const LocaleProvider: ({ locale, children }: LocaleProviderProps) => react_jsx_runtime.JSX.Element;
|
|
12
20
|
|
|
13
21
|
export { LocaleProvider, type LocaleProviderProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LocaleProvider}from'../chunk-
|
|
1
|
+
export{a as LocaleProvider}from'../chunk-NO65QFSV.js';import'../chunk-RWMFNW7N.js';
|
package/dist/locale.d.ts
CHANGED
|
@@ -1,40 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as SupportedLocale } from './supported-locales-ww3F5KrN.js';
|
|
2
|
+
export { a as SUPPORTED_LOCALES, i as isSupportedLocale, r as resolveSupportedLocale } from './supported-locales-ww3F5KrN.js';
|
|
3
|
+
import { Locale, Duration, FormatDurationOptions } from 'date-fns';
|
|
2
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
5
|
|
|
4
|
-
/**
|
|
5
|
-
* The locales the platform supports — the lightweight source of truth for which
|
|
6
|
-
* locales exist. This module has ZERO heavy (`date-fns`/asset) imports on
|
|
7
|
-
* purpose, so it can be pulled into edge middleware (next-intl routing) without
|
|
8
|
-
* dragging in the registry's dependencies. Per-locale config (formatting,
|
|
9
|
-
* date-fns, backend lang) lives in `locale-config.ts`. Adding a locale starts
|
|
10
|
-
* here — the registry is compile-checked against this list.
|
|
11
|
-
*/
|
|
12
|
-
declare const SUPPORTED_LOCALES: readonly ["en", "es", "pt", "es-MX"];
|
|
13
|
-
type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
|
|
14
|
-
declare const isSupportedLocale: (value: string) => value is SupportedLocale;
|
|
15
|
-
/**
|
|
16
|
-
* Normalizes any string (a regional tag or untrusted input) to a
|
|
17
|
-
* `SupportedLocale`: exact match first, then its base language
|
|
18
|
-
* (e.g. `"pt-BR"` → `"pt"`, `"en-US"` → `"en"`), else `fallback`. Degrading to
|
|
19
|
-
* the base language keeps a regional locale on the right language instead of
|
|
20
|
-
* dropping all the way to the fallback.
|
|
21
|
-
*/
|
|
22
|
-
declare const resolveSupportedLocale: (value: string | undefined, fallback?: SupportedLocale) => SupportedLocale;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* UI translation languages — the languages message catalogs exist in.
|
|
26
|
-
*/
|
|
6
|
+
/** UI languages message catalogs exist in. */
|
|
27
7
|
type UiLanguage = "en" | "es" | "pt";
|
|
28
|
-
/**
|
|
29
|
-
* Language codes the backend `lang` field accepts.
|
|
30
|
-
*/
|
|
8
|
+
/** Languages the backend `lang` field accepts. */
|
|
31
9
|
type BackendLang = "en" | "es" | "pt" | "de";
|
|
32
|
-
/**
|
|
33
|
-
* How a single app locale projects onto every subsystem. A locale is more than
|
|
34
|
-
* a formatting tag: `Intl` takes the precise tag, but date-fns ships a limited
|
|
35
|
-
* catalog (no regional Spanish, no bare `en`), the backend only knows base
|
|
36
|
-
* languages, and translation maps are keyed by UI language.
|
|
37
|
-
*/
|
|
10
|
+
/** How one app locale projects onto each subsystem. */
|
|
38
11
|
type LocaleConfig = {
|
|
39
12
|
/** BCP-47 tag passed to `Intl.*` for number/currency/date formatting. */
|
|
40
13
|
intlTag: string;
|
|
@@ -46,16 +19,10 @@ type LocaleConfig = {
|
|
|
46
19
|
backendLang: BackendLang;
|
|
47
20
|
};
|
|
48
21
|
/**
|
|
49
|
-
* Per-locale config
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* This module imports `date-fns`, so it must NOT be pulled into edge middleware —
|
|
54
|
-
* import the plain locale list from `./supported-locales` there instead.
|
|
55
|
-
*
|
|
56
|
-
* `es` is generic Spanish (Spain formatting) for now. Regional Spanish variants
|
|
57
|
-
* (e.g. `es-CL`) are added as their own rows with their own `intlTag`; date-fns
|
|
58
|
-
* still falls back to `es` for them because it ships no regional Spanish.
|
|
22
|
+
* Per-locale config. `satisfies Record<SupportedLocale, ...>` forces a complete,
|
|
23
|
+
* drift-free row for each locale. Imports date-fns → do NOT pull into edge
|
|
24
|
+
* middleware (use ./supported-locales there). `es` = generic/Spain formatting;
|
|
25
|
+
* regional variants (es-CL) get their own intlTag, date-fns falls back to `es`.
|
|
59
26
|
*/
|
|
60
27
|
declare const LOCALE_REGISTRY: {
|
|
61
28
|
readonly en: {
|
|
@@ -82,39 +49,84 @@ declare const LOCALE_REGISTRY: {
|
|
|
82
49
|
readonly uiLanguage: "es";
|
|
83
50
|
readonly backendLang: "es";
|
|
84
51
|
};
|
|
52
|
+
readonly "es-CL": {
|
|
53
|
+
readonly intlTag: "es-CL";
|
|
54
|
+
readonly dateFns: Locale;
|
|
55
|
+
readonly uiLanguage: "es";
|
|
56
|
+
readonly backendLang: "es";
|
|
57
|
+
};
|
|
85
58
|
};
|
|
86
59
|
declare const getLocaleConfig: (locale: SupportedLocale) => LocaleConfig;
|
|
87
60
|
declare const getIntlTag: (locale: SupportedLocale) => string;
|
|
88
61
|
declare const getDateFnsLocale: (locale: SupportedLocale) => Locale;
|
|
89
62
|
declare const getBackendLang: (locale: SupportedLocale) => BackendLang;
|
|
90
|
-
/**
|
|
91
|
-
* Reads a translation map keyed by locale, falling back to the locale's base UI
|
|
92
|
-
* language when the exact key is absent (e.g. `es-CL` -> `es`).
|
|
93
|
-
*/
|
|
63
|
+
/** Reads a locale-keyed translation map, falling back to the base UI language (`es-CL`→`es`). */
|
|
94
64
|
declare const pickTranslation: (translations: Partial<Record<string, string>>, locale: SupportedLocale) => string | undefined;
|
|
65
|
+
/** Localized language name (default: autonym, e.g. `es`→"Español"), for the language switcher. */
|
|
66
|
+
declare const getLanguageName: (locale: SupportedLocale, displayIn?: SupportedLocale) => string;
|
|
95
67
|
|
|
96
68
|
/**
|
|
97
|
-
* Framework-agnostic
|
|
98
|
-
*
|
|
99
|
-
* usable outside React too. Formatters are cached per (locale, options) because
|
|
100
|
-
* constructing `Intl.NumberFormat` is comparatively expensive.
|
|
69
|
+
* Framework-agnostic Intl.NumberFormat wrappers (take a BCP-47 tag directly).
|
|
70
|
+
* Cached per (locale, options) — constructing Intl.NumberFormat is expensive.
|
|
101
71
|
*/
|
|
102
72
|
declare const formatNumber: (locale: string, value: number, options?: Intl.NumberFormatOptions) => string;
|
|
103
73
|
declare const formatCurrency: (locale: string, value: number, currency: string, options?: Intl.NumberFormatOptions) => string;
|
|
74
|
+
/** Formats a ratio as a percentage (`0.125` → `"12.5%"`); 0–100 callers divide by 100 first. */
|
|
75
|
+
declare const formatPercent: (locale: string, ratio: number, options?: Intl.NumberFormatOptions) => string;
|
|
76
|
+
|
|
104
77
|
/**
|
|
105
|
-
*
|
|
106
|
-
*
|
|
78
|
+
* Locale-aware date formatters over Intl.DateTimeFormat, reading the active-locale
|
|
79
|
+
* singleton (client-only). Parsing/arithmetic stay on date-fns in the consumer.
|
|
107
80
|
*/
|
|
108
|
-
|
|
81
|
+
type DateFormatOptions = {
|
|
82
|
+
/** Format in the UTC time zone instead of the local one. */
|
|
83
|
+
utc?: boolean;
|
|
84
|
+
};
|
|
85
|
+
/** Medium date, e.g. "4 mar 2026" / "Mar 4, 2026". (date-fns `PP`) */
|
|
86
|
+
declare const formatDate: (date: Date, o?: DateFormatOptions) => string;
|
|
87
|
+
/** Long date, e.g. "4 de marzo de 2026". (date-fns `PPP`) */
|
|
88
|
+
declare const formatLongDate: (date: Date, o?: DateFormatOptions) => string;
|
|
89
|
+
/** Short date, e.g. "04-03-2026" (es-CL). (date-fns `P`) */
|
|
90
|
+
declare const formatShortDate: (date: Date, o?: DateFormatOptions) => string;
|
|
91
|
+
/** Medium date + short time. (date-fns `PPp`) */
|
|
92
|
+
declare const formatDateTime: (date: Date, o?: DateFormatOptions) => string;
|
|
93
|
+
/** Short time, e.g. "12:00" / "12:00 PM". (date-fns `p`) */
|
|
94
|
+
declare const formatTime: (date: Date, o?: DateFormatOptions) => string;
|
|
95
|
+
/** 24-hour time, e.g. "08:00". (date-fns `HH:mm`) */
|
|
96
|
+
declare const formatTime24h: (date: Date, o?: DateFormatOptions) => string;
|
|
97
|
+
/** Month + year, e.g. "marzo de 2026" (capitalize at the call site if needed). */
|
|
98
|
+
declare const formatMonthYear: (date: Date, o?: DateFormatOptions) => string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Active locale for the pure (non-hook) formatters that can't read React context.
|
|
102
|
+
* Client-only: skipped on the server, where the module singleton is shared across
|
|
103
|
+
* requests (a render-phase write would leak between them). LocaleProvider sets it.
|
|
104
|
+
*/
|
|
105
|
+
declare const setActiveLocale: (locale: SupportedLocale) => void;
|
|
106
|
+
declare const getActiveLocale: () => SupportedLocale;
|
|
109
107
|
|
|
110
108
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
109
|
+
* Mirrors the active locale onto date-fns's global default so ambient date-fns
|
|
110
|
+
* calls keep working with no per-call locale. Client-only (the global is shared
|
|
111
|
+
* across requests on the server); single writer: LocaleProvider.
|
|
112
|
+
*/
|
|
113
|
+
declare const syncDateFnsLocale: (locale: SupportedLocale) => void;
|
|
114
|
+
/** date-fns formatDuration bound to the active locale (Intl has no reliable DurationFormat). */
|
|
115
|
+
declare const formatDuration: (duration: Duration, options?: FormatDurationOptions) => string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Number/currency/percent formatters bound to the active-locale singleton, usable
|
|
119
|
+
* without the hook. `toCurrency` degrades to a number without a currency;
|
|
120
|
+
* `toPercentage` takes a 0–100 value (divides by 100).
|
|
121
|
+
*/
|
|
122
|
+
declare const toNumber: (value: number, options?: Intl.NumberFormatOptions) => string;
|
|
123
|
+
declare const toCurrency: (value: number, currency?: string, options?: Intl.NumberFormatOptions) => string;
|
|
124
|
+
declare const toPercentage: (value: number, options?: Intl.NumberFormatOptions) => string;
|
|
125
|
+
/**
|
|
126
|
+
* Back-compat wrapper over the standalone formatters, re-keyed per locale so the
|
|
127
|
+
* returned functions change identity on a locale switch. New code can import
|
|
128
|
+
* `toNumber`/`toCurrency`/`toPercentage` directly. Reactivity relies on locale
|
|
129
|
+
* changes being `/[locale]` navigations that re-render the tree (URL-driven).
|
|
118
130
|
*/
|
|
119
131
|
declare const useNumber: () => {
|
|
120
132
|
toNumber: (value: number, options?: Intl.NumberFormatOptions) => string;
|
|
@@ -135,4 +147,4 @@ type LocaleFlagProps = {
|
|
|
135
147
|
*/
|
|
136
148
|
declare const LocaleFlag: ({ locale, className, alt, }: LocaleFlagProps) => react_jsx_runtime.JSX.Element;
|
|
137
149
|
|
|
138
|
-
export { type BackendLang, LOCALE_REGISTRY, type LocaleConfig, LocaleFlag,
|
|
150
|
+
export { type BackendLang, type DateFormatOptions, LOCALE_REGISTRY, type LocaleConfig, LocaleFlag, SupportedLocale, type UiLanguage, formatCurrency, formatDate, formatDateTime, formatDuration, formatLongDate, formatMonthYear, formatNumber, formatPercent, formatShortDate, formatTime, formatTime24h, getActiveLocale, getBackendLang, getDateFnsLocale, getIntlTag, getLanguageName, getLocaleConfig, pickTranslation, setActiveLocale, syncDateFnsLocale, toCurrency, toNumber, toPercentage, useNumber };
|
package/dist/locale.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export{
|
|
1
|
+
import {c as c$1,i}from'./chunk-RWMFNW7N.js';export{a as LOCALE_REGISTRY,k as formatDuration,i as getActiveLocale,e as getBackendLang,d as getDateFnsLocale,c as getIntlTag,g as getLanguageName,b as getLocaleConfig,f as pickTranslation,h as setActiveLocale,j as syncDateFnsLocale}from'./chunk-RWMFNW7N.js';import {useMemo}from'react';import {jsx}from'react/jsx-runtime';var w=["en","es","pt","es-MX","es-CL"],b=new Set(w),c=t=>b.has(t),k=(t,r="en")=>{if(t&&c(t))return t;let e=t?.split("-")[0];return e&&c(e)?e:r};var f=new Map,p=(t,r)=>{let e=`${t}:${JSON.stringify(r??{})}`,o=f.get(e);return o||(o=new Intl.NumberFormat(t,r),f.set(e,o)),o},m=(t,r,e)=>p(t,e).format(r),h=(t,r,e,o)=>{try{return p(t,{style:"currency",currency:e,...o}).format(r)}catch{return m(t,r,o)}},g=(t,r,e)=>p(t,{style:"percent",...e}).format(r);var u=new Map,l=(t,r)=>{let e=c$1(i()),o=`${e}:${JSON.stringify(r)}`,s=u.get(o);return s||(s=new Intl.DateTimeFormat(e,r),u.set(o,s)),s.format(t)},n=(t,r)=>r?{...t,timeZone:"UTC"}:t,Z=(t,r)=>l(t,n({dateStyle:"medium"},r?.utc)),q=(t,r)=>l(t,n({dateStyle:"long"},r?.utc)),K=(t,r)=>l(t,n({dateStyle:"short"},r?.utc)),Q=(t,r)=>l(t,n({dateStyle:"medium",timeStyle:"short"},r?.utc)),W=(t,r)=>l(t,n({timeStyle:"short"},r?.utc)),j=(t,r)=>l(t,n({hour:"2-digit",minute:"2-digit",hour12:false},r?.utc)),t1=(t,r)=>l(t,n({month:"long",year:"numeric"},r?.utc));var d=(t,r)=>m(c$1(i()),t,r),L=(t,r,e)=>r?h(c$1(i()),t,r,e):d(t,e),O=(t,r)=>g(c$1(i()),t/100,{maximumFractionDigits:2,...r}),n1=()=>{let t=i();return useMemo(()=>({toNumber:(r,e)=>d(r,e),toCurrency:(r,e,o)=>L(r,e,o),toPercentage:(r,e)=>O(r,e)}),[t])};var F='data:image/svg+xml,<svg width="32" height="33" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23prefix__clip0_1899_1155)"><path d="M16.001 32.5c8.836 0 16.001-7.163 16.001-16.001C32.002 7.66 24.837.5 16.002.5 7.165.5 0 7.663 0 16.501c0 8.838 7.163 16.001 16.001 16.001V32.5z" fill="%236DA544"/><path d="M16 6.76l13.218 9.741-13.217 9.74-13.22-9.74 13.217-9.74h.003z" fill="%23FFDA44"/><path d="M16.002 22.064a5.564 5.564 0 005.565-5.565 5.564 5.564 0 00-5.566-5.566 5.564 5.564 0 00-5.565 5.566 5.564 5.564 0 005.566 5.565z" fill="%23F0F0F0"/><path d="M13.217 16.152c-.967 0-1.902.147-2.781.421a5.565 5.565 0 0010.122 3.122 9.38 9.38 0 00-7.34-3.54v-.003zM21.462 17.566a5.564 5.564 0 00-5.463-6.63 5.568 5.568 0 00-5.114 3.367 11.45 11.45 0 0110.575 3.26l.002.003z" fill="%230052B4"/></g><defs><clipPath id="prefix__clip0_1899_1155"><path fill="%23fff" transform="translate(0 .5)" d="M0 0h32v32H0z"/></clipPath></defs></svg>';var x='data:image/svg+xml,<svg width="32" height="32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x=".5" y=".5" width="31" height="31" rx="15.5" stroke="%23fff"/><path d="M16 31c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C7.716 1 1 7.716 1 16c0 8.284 6.716 15 15 15z" fill="%23F6F5F5"/><path d="M31 16c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15 0-8.284 15 0 15 0h15z" fill="%23D80027"/><path d="M1 16C1 7.716 7.716 1 16 1v15H1z" fill="%230052B4"/><path d="M9.929 6.217l.971 2.99h3.143l-2.542 1.847.97 2.99-2.542-1.848-2.543 1.848.971-2.99-2.542-1.847h3.143l.971-2.99z" fill="%23F6F5F5"/></svg>';var _='data:image/svg+xml,<svg width="32" height="33" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23prefix__clip0_1899_1166)"><path d="M0 16.501c0 1.956.349 3.833.993 5.566L16 23.457l15.006-1.39c.644-1.733.993-3.608.993-5.566 0-1.958-.35-3.833-.993-5.565L15.999 9.545.993 10.935A15.934 15.934 0 000 16.502z" fill="%23FFDA44"/><path d="M31.007 10.936C28.744 4.842 22.88.5 16 .5 9.121.5 3.256 4.842.993 10.936h30.014zM.993 22.064C3.256 28.158 9.12 32.5 16 32.5c6.88 0 12.745-4.342 15.006-10.436H.993z" fill="%23D80027"/></g><defs><clipPath id="prefix__clip0_1899_1166"><path fill="%23fff" transform="translate(0 .5)" d="M0 0h32v32H0z"/></clipPath></defs></svg>';var D='data:image/svg+xml,<svg width="32" height="33" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23prefix__clip0_1899_1170)"><path d="M16.001 32.5c8.838 0 16.001-7.163 16.001-16.001C32.002 7.66 24.84.5 16.002.5 7.162.5 0 7.663 0 16.501c0 8.838 7.163 16.001 16.001 16.001V32.5z" fill="%23F0F0F0"/><path d="M32 16.501c0-6.342-3.693-11.824-9.044-14.413v28.826C28.305 28.325 32 22.844 32 16.5z" fill="%23D80027"/><path d="M0 16.501c0 6.342 3.693 11.824 9.045 14.413V2.088C3.693 4.675 0 10.157 0 16.501zM11.824 16.501a4.176 4.176 0 008.35 0v-1.39h-8.35v1.39z" fill="%236DA544"/><path d="M21.562 13.717h-4.167a1.392 1.392 0 00-2.787 0h-4.167c0 .768.67 1.391 1.437 1.391h-.051c0 .768.625 1.39 1.393 1.39 0 .768.618 1.392 1.388 1.392h2.789c.77 0 1.388-.624 1.388-1.391.77 0 1.393-.623 1.393-1.39h-.05c.77 0 1.437-.624 1.437-1.392h-.003z" fill="%23FF9811"/></g><defs><clipPath id="prefix__clip0_1899_1170"><path fill="%23fff" transform="translate(0 .5)" d="M0 0h32v32H0z"/></clipPath></defs></svg>';var M='data:image/svg+xml,<svg width="32" height="33" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23prefix__clip0_1899_1195)"><path d="M16 32.5c8.837 0 16-7.163 16-16S24.837.5 16 .5 0 7.663 0 16.5s7.163 16 16 16z" fill="%23F0F0F0"/><path d="M15.304 16.5H32c0-1.444-.192-2.843-.551-4.174H15.304V16.5zM15.304 8.152h14.348a16.084 16.084 0 00-3.692-4.174H15.304v4.174zM16 32.5c3.766 0 7.227-1.302 9.96-3.478H6.04A15.932 15.932 0 0016 32.5zM2.348 24.848h27.304a15.901 15.901 0 001.797-4.174H.55a15.903 15.903 0 001.797 4.174z" fill="%23D80027"/><path d="M7.412 2.999H8.87l-1.357.985.518 1.594-1.356-.985-1.356.985.447-1.377A16.088 16.088 0 002.663 7.66h.467l-.863.627c-.134.224-.263.452-.387.683l.412 1.27-.769-.56c-.191.405-.366.82-.523 1.242l.454 1.398H3.13l-1.356.986.518 1.594-1.356-.985-.812.59C.042 15.159 0 15.825 0 16.5h16V.5c-3.16 0-6.107.917-8.588 2.499zm.62 11.901l-1.357-.985-1.356.985.518-1.594-1.356-.986h1.676l.518-1.594.518 1.594H8.87l-1.357.986.518 1.594zm-.519-6.255l.518 1.594-1.356-.985-1.356.985.518-1.594-1.356-.985h1.676l.518-1.595.518 1.595H8.87l-1.357.985zm6.258 6.255l-1.357-.985-1.356.985.518-1.594-1.356-.986h1.676l.518-1.594.518 1.594h1.677l-1.357.986.518 1.594zm-.519-6.255l.518 1.594-1.356-.985-1.356.985.518-1.594-1.356-.985h1.676l.518-1.595.518 1.595h1.677l-1.357.985zm0-4.661l.518 1.594-1.356-.985-1.356.985.518-1.594-1.356-.985h1.676l.518-1.595L12.932 3h1.677l-1.357.985z" fill="%230052B4"/></g><defs><clipPath id="prefix__clip0_1899_1195"><path fill="%23fff" transform="translate(0 .5)" d="M0 0h32v32H0z"/></clipPath></defs></svg>';var I={en:M,es:_,pt:F,"es-MX":D,"es-CL":x},x1=({locale:t,className:r,alt:e=""})=>jsx("img",{src:I[t],alt:e,className:r,width:32,height:32});
|
|
2
|
+
export{x1 as LocaleFlag,w as SUPPORTED_LOCALES,h as formatCurrency,Z as formatDate,Q as formatDateTime,q as formatLongDate,t1 as formatMonthYear,m as formatNumber,g as formatPercent,K as formatShortDate,W as formatTime,j as formatTime24h,c as isSupportedLocale,k as resolveSupportedLocale,L as toCurrency,d as toNumber,O as toPercentage,n1 as useNumber};
|