@alepha/ui 0.11.4 → 0.11.6

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.
@@ -0,0 +1,3 @@
1
+ import { t as AlephaMantineProvider_default } from "./AlephaMantineProvider-Be0DAazb.js";
2
+
3
+ export { AlephaMantineProvider_default as default };
@@ -147,4 +147,4 @@ var AlephaMantineProvider_default = AlephaMantineProvider;
147
147
 
148
148
  //#endregion
149
149
  export { ToastService as i, Omnibar_default as n, useToast as r, AlephaMantineProvider_default as t };
150
- //# sourceMappingURL=AlephaMantineProvider-CtIV-8MV.mjs.map
150
+ //# sourceMappingURL=AlephaMantineProvider-Be0DAazb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlephaMantineProvider-Be0DAazb.js","names":["Omnibar"],"sources":["../src/services/ToastService.tsx","../src/hooks/useToast.ts","../src/components/layout/Omnibar.tsx","../src/components/layout/AlephaMantineProvider.tsx"],"sourcesContent":["import type { NotificationData } from \"@mantine/notifications\";\nimport { notifications } from \"@mantine/notifications\";\nimport {\n IconAlertTriangle,\n IconCheck,\n IconInfoCircle,\n IconX,\n} from \"@tabler/icons-react\";\n\nexport interface ToastServiceOptions {\n default?: Partial<NotificationData>;\n}\n\nexport class ToastService {\n protected readonly raw = notifications;\n\n public readonly options: ToastServiceOptions = {\n default: {\n autoClose: 5000,\n withCloseButton: true,\n position: \"top-center\",\n },\n };\n\n public show(options: NotificationData) {\n notifications.show({\n ...this.options.default,\n ...options,\n });\n }\n\n public info(options: Partial<NotificationData> | string) {\n if (typeof options === \"string\") {\n options = { message: options };\n }\n this.show({\n color: \"blue\",\n icon: <IconInfoCircle size={20} />,\n title: \"Info\",\n message: \"Information notification\",\n ...options,\n });\n }\n\n public success(options: Partial<NotificationData> | string) {\n if (typeof options === \"string\") {\n options = { message: options };\n }\n this.show({\n color: \"green\",\n icon: <IconCheck size={16} />,\n title: \"Success\",\n message: \"Operation completed successfully\",\n ...options,\n });\n }\n\n public warning(options: Partial<NotificationData> | string) {\n if (typeof options === \"string\") {\n options = { message: options };\n }\n this.show({\n color: \"yellow\",\n icon: <IconAlertTriangle size={20} />,\n title: \"Warning\",\n message: \"Please review this warning\",\n ...options,\n });\n }\n\n public danger(options: Partial<NotificationData> | string) {\n if (typeof options === \"string\") {\n options = { message: options };\n }\n this.show({\n color: \"red\",\n icon: <IconX size={20} />,\n title: \"Error\",\n message: \"An error occurred\",\n ...options,\n });\n }\n}\n","import { useInject } from \"@alepha/react\";\nimport { ToastService } from \"../services/ToastService.tsx\";\n\n/**\n * Use this hook to access the Toast Service for showing notifications.\n *\n * @example\n * const toast = useToast();\n * toast.success({ message: \"Operation completed successfully!\" });\n * toast.error({ title: \"Error\", message: \"Something went wrong\" });\n */\nexport const useToast = (): ToastService => {\n return useInject(ToastService);\n};\n","import { useRouter } from \"@alepha/react\";\nimport { Spotlight, type SpotlightActionData } from \"@mantine/spotlight\";\nimport { IconSearch } from \"@tabler/icons-react\";\nimport { type ReactNode, useMemo } from \"react\";\n\nexport interface OmnibarProps {\n shortcut?: string | string[];\n searchPlaceholder?: string;\n nothingFound?: ReactNode;\n}\n\nconst Omnibar = (props: OmnibarProps) => {\n const shortcut = props.shortcut ?? \"mod+K\";\n const searchPlaceholder = props.searchPlaceholder ?? \"Search...\";\n const nothingFound = props.nothingFound ?? \"Nothing found...\";\n const router = useRouter();\n const actions: SpotlightActionData[] = useMemo(\n () =>\n router.concretePages.map((page) => ({\n id: page.name,\n label: page.label ?? page.name,\n description: page.description,\n onClick: () => router.go(page.path ?? page.name),\n leftSection: page.icon,\n })),\n [],\n );\n\n return (\n <Spotlight\n actions={actions}\n shortcut={shortcut}\n limit={10}\n searchProps={{\n leftSection: <IconSearch size={20} />,\n placeholder: searchPlaceholder,\n }}\n nothingFound={nothingFound}\n />\n );\n};\n\nexport default Omnibar;\n","import { NestedView, useEvents } from \"@alepha/react\";\nimport type {\n ColorSchemeScriptProps,\n MantineProviderProps,\n} from \"@mantine/core\";\nimport { ColorSchemeScript, MantineProvider } from \"@mantine/core\";\nimport { ModalsProvider, type ModalsProviderProps } from \"@mantine/modals\";\nimport { Notifications, type NotificationsProps } from \"@mantine/notifications\";\nimport type { NavigationProgressProps } from \"@mantine/nprogress\";\nimport { NavigationProgress, nprogress } from \"@mantine/nprogress\";\nimport type { ReactNode } from \"react\";\nimport { useToast } from \"../../hooks/useToast.ts\";\nimport Omnibar, { type OmnibarProps } from \"./Omnibar.tsx\";\n\nexport interface AlephaMantineProviderProps {\n children?: ReactNode;\n mantine?: MantineProviderProps;\n colorSchemeScript?: ColorSchemeScriptProps;\n navigationProgress?: NavigationProgressProps;\n notifications?: NotificationsProps;\n modals?: ModalsProviderProps;\n omnibar?: OmnibarProps;\n}\n\nconst AlephaMantineProvider = (props: AlephaMantineProviderProps) => {\n const toast = useToast();\n\n useEvents(\n {\n \"react:transition:begin\": () => {\n nprogress.start();\n },\n \"react:transition:end\": () => {\n nprogress.complete();\n },\n \"react:action:error\": () => {\n toast.danger(\"An error occurred while processing your action.\");\n },\n },\n [],\n );\n\n return (\n <>\n <ColorSchemeScript\n defaultColorScheme={props.mantine?.defaultColorScheme}\n {...props.colorSchemeScript}\n />\n <MantineProvider\n {...props.mantine}\n theme={{\n primaryColor: \"gray\",\n primaryShade: {\n light: 9,\n dark: 8,\n },\n cursorType: \"pointer\",\n ...props.mantine?.theme,\n }}\n >\n <Notifications {...props.notifications} />\n <NavigationProgress {...props.navigationProgress} />\n <ModalsProvider {...props.modals}>\n <Omnibar {...props.omnibar} />\n {props.children ?? <NestedView />}\n </ModalsProvider>\n </MantineProvider>\n </>\n );\n};\n\nexport default AlephaMantineProvider;\n"],"mappings":";;;;;;;;;;;AAaA,IAAa,eAAb,MAA0B;CACxB,AAAmB,MAAM;CAEzB,AAAgB,UAA+B,EAC7C,SAAS;EACP,WAAW;EACX,iBAAiB;EACjB,UAAU;EACX,EACF;CAED,AAAO,KAAK,SAA2B;AACrC,gBAAc,KAAK;GACjB,G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,KAAK;GACnB,EAAE,EACL,EAAE,CACH;EAKa;EACV,OAAO;EACP,aAAa;GACX,aAAa,oBAAC,cAAW,MAAM,KAAM;GACrC,aAAa;GACd;EACa;GACd;;AAIN,sBAAe;;;;AClBf,MAAM,yBAAyB,UAAsC;CACnE,MAAM,QAAQ,UAAU;AAExB,WACE;EACE,gCAAgC;AAC9B,aAAU,OAAO;;EAEnB,8BAA8B;AAC5B,aAAU,UAAU;;EAEtB,4BAA4B;AAC1B,SAAM,OAAO,kDAAkD;;EAElE,EACD,EAAE,CACH;AAED,QACE,4CACE,oBAAC;EACC,oBAAoB,MAAM,SAAS;EACnC,GAAI,MAAM;GACV,EACF,qBAAC;EACC,GAAI,MAAM;EACV,OAAO;GACL,cAAc;GACd,cAAc;IACZ,OAAO;IACP,MAAM;IACP;GACD,YAAY;GACZ,GAAG,MAAM,SAAS;GACnB;;GAED,oBAAC,iBAAc,GAAI,MAAM,gBAAiB;GAC1C,oBAAC,sBAAmB,GAAI,MAAM,qBAAsB;GACpD,qBAAC;IAAe,GAAI,MAAM;eACxB,oBAACA,mBAAQ,GAAI,MAAM,UAAW,EAC7B,MAAM,YAAY,oBAAC,eAAa;KAClB;;GACD,IACjB;;AAIP,oCAAe"}
@@ -1,16 +1,17 @@
1
1
  import * as _alepha_core0 from "@alepha/core";
2
- import { Async, TObject } from "@alepha/core";
2
+ import { Async, Page, PageMetadata, TObject, TProperties } from "@alepha/core";
3
3
  import { FormModel, InputField } from "@alepha/react-form";
4
4
  import * as _alepha_react0 from "@alepha/react";
5
5
  import { RouterGoOptions, UseActionReturn, UseActiveOptions } from "@alepha/react";
6
6
  import { ModalsProviderProps } from "@mantine/modals";
7
- import { AppShellFooterProps, AppShellHeaderProps, AppShellMainProps, AppShellNavbarProps, AppShellProps, AutocompleteProps, ButtonProps, ColorInputProps, ColorSchemeScriptProps, FileInputProps, Flex, FlexProps, MantineBreakpoint, MantineProviderProps, MenuProps, MenuTargetProps, ModalProps, MultiSelectProps, NumberInputProps, PasswordInputProps, SegmentedControlProps, SelectProps, SwitchProps, TableProps, TableTrProps, TagsInputProps, Text, TextInputProps, TextareaProps, ThemeIconProps, TooltipProps } from "@mantine/core";
7
+ import { AppShellFooterProps, AppShellHeaderProps, AppShellMainProps, AppShellNavbarProps, AppShellProps, AutocompleteProps, ButtonProps, ColorInputProps, ColorSchemeScriptProps, FileInputProps, Flex, FlexProps, MantineBreakpoint, MantineProviderProps, MenuProps, MenuTargetProps, ModalProps, MultiSelectProps, NumberInputProps, PasswordInputProps, SegmentedControlProps, SelectProps, SliderProps, SwitchProps, TableProps, TableTrProps, TagsInputProps, Text, TextInputProps, TextareaProps, ThemeIconProps, TooltipProps } from "@mantine/core";
8
8
  import * as react_jsx_runtime5 from "react/jsx-runtime";
9
9
  import { ComponentType, ReactNode } from "react";
10
10
  import * as _mantine_notifications0 from "@mantine/notifications";
11
11
  import { NotificationData, NotificationsProps } from "@mantine/notifications";
12
12
  import { DateInputProps, DateTimePickerProps, TimeInputProps } from "@mantine/dates";
13
13
  import { NavigationProgressProps } from "@mantine/nprogress";
14
+ import { DurationLike } from "@alepha/datetime";
14
15
 
15
16
  //#region src/utils/parseInput.d.ts
16
17
  interface GenericControlProps {
@@ -20,6 +21,12 @@ interface GenericControlProps {
20
21
  icon?: ReactNode;
21
22
  }
22
23
  //#endregion
24
+ //#region src/components/form/ControlNumber.d.ts
25
+ interface ControlNumberProps extends GenericControlProps {
26
+ numberInputProps?: Partial<NumberInputProps>;
27
+ sliderProps?: Partial<SliderProps>;
28
+ }
29
+ //#endregion
23
30
  //#region src/components/form/ControlSelect.d.ts
24
31
  type SelectValueLabel = string | {
25
32
  value: string;
@@ -56,12 +63,13 @@ interface ControlProps extends GenericControlProps {
56
63
  select?: boolean | Partial<ControlSelectProps>;
57
64
  password?: boolean | PasswordInputProps;
58
65
  switch?: boolean | SwitchProps;
59
- number?: boolean | NumberInputProps;
66
+ number?: boolean | Partial<ControlNumberProps>;
60
67
  file?: boolean | FileInputProps;
61
68
  color?: boolean | ColorInputProps;
62
69
  date?: boolean | DateInputProps;
63
70
  datetime?: boolean | DateTimePickerProps;
64
71
  time?: boolean | TimeInputProps;
72
+ query?: any;
65
73
  custom?: ComponentType<CustomControlProps>;
66
74
  }
67
75
  /**
@@ -81,6 +89,7 @@ interface ControlProps extends GenericControlProps {
81
89
  * - DateInput (for date format)
82
90
  * - DateTimePicker (for date-time format)
83
91
  * - TimeInput (for time format)
92
+ * - QueryBuilder (for building type-safe queries with autocomplete)
84
93
  * - Custom component
85
94
  *
86
95
  * Automatically handles labels, descriptions, error messages, required state, and default icons.
@@ -183,6 +192,7 @@ type ActionProps = ActionCommonProps & (ActionNavigationButtonProps | ActionClic
183
192
  declare const ActionButton: (_props: ActionProps) => react_jsx_runtime5.JSX.Element;
184
193
  interface ActionSubmitButtonProps extends ButtonProps {
185
194
  form: FormModel<any>;
195
+ type?: "submit" | "reset";
186
196
  }
187
197
  interface ActionHookButtonProps extends ButtonProps {
188
198
  action: UseActionReturn<any[], any>;
@@ -332,6 +342,25 @@ interface ControlDateProps extends GenericControlProps {
332
342
  */
333
343
  declare const ControlDate: (props: ControlDateProps) => react_jsx_runtime5.JSX.Element | null;
334
344
  //#endregion
345
+ //#region src/components/form/ControlQueryBuilder.d.ts
346
+ interface ControlQueryBuilderProps extends Omit<TextInputProps, "value" | "onChange"> {
347
+ schema?: TObject;
348
+ value?: string;
349
+ onChange?: (value: string) => void;
350
+ placeholder?: string;
351
+ }
352
+ /**
353
+ * Query builder with text input and help popover.
354
+ * Generates query strings for parseQueryString syntax.
355
+ */
356
+ declare const ControlQueryBuilder: ({
357
+ schema,
358
+ value,
359
+ onChange,
360
+ placeholder,
361
+ ...textInputProps
362
+ }: ControlQueryBuilderProps) => react_jsx_runtime5.JSX.Element;
363
+ //#endregion
335
364
  //#region src/components/form/TypeForm.d.ts
336
365
  interface TypeFormProps<T extends TObject> {
337
366
  form: FormModel<T>;
@@ -343,6 +372,7 @@ interface TypeFormProps<T extends TObject> {
343
372
  lg?: number;
344
373
  xl?: number;
345
374
  };
375
+ schema?: TObject;
346
376
  children?: (input: FormModel<T>["input"]) => ReactNode;
347
377
  controlProps?: Partial<Omit<ControlProps, "input">>;
348
378
  skipFormElement?: boolean;
@@ -466,12 +496,14 @@ interface SidebarSearch extends SidebarAbstractItem {
466
496
  interface SidebarSection extends SidebarAbstractItem {
467
497
  type: "section";
468
498
  label: string;
499
+ icon?: ReactNode;
469
500
  }
470
501
  interface SidebarMenuItem extends SidebarAbstractItem {
471
502
  label: string | ReactNode;
472
503
  description?: string;
473
504
  icon?: ReactNode;
474
505
  href?: string;
506
+ target?: "_blank" | "_self" | "_parent" | "_top";
475
507
  activeStartsWith?: boolean;
476
508
  onClick?: () => void;
477
509
  children?: SidebarMenuItem[];
@@ -503,7 +535,13 @@ interface AdminShellProps {
503
535
  }
504
536
  declare module "@alepha/core" {
505
537
  interface State {
538
+ /**
539
+ * Whether the sidebar is opened or closed.
540
+ */
506
541
  "alepha.ui.sidebar.opened"?: boolean;
542
+ /**
543
+ * Whether the sidebar is collapsed (narrow) or expanded (wide).
544
+ */
507
545
  "alepha.ui.sidebar.collapsed"?: boolean;
508
546
  }
509
547
  }
@@ -532,14 +570,50 @@ declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) => reac
532
570
  //#region src/components/table/DataTable.d.ts
533
571
  interface DataTableColumn<T extends object> {
534
572
  label: string;
535
- value: (item: T) => ReactNode;
573
+ value: (item: T, index: number) => ReactNode;
536
574
  }
575
+ type MaybePage<T> = Omit<Page<T>, "page"> & {
576
+ page?: Partial<PageMetadata>;
577
+ };
537
578
  interface DataTableProps<T extends object> {
538
- items: T[] | (() => Async<T[]>);
579
+ /**
580
+ * The items to display in the table. Can be a static page of items or a function that returns a promise resolving to a page of items.
581
+ */
582
+ items: MaybePage<T> | ((filters: Record<string, string> & {
583
+ page: number;
584
+ size: number;
585
+ sort?: string;
586
+ }) => Async<MaybePage<T>>);
587
+ /**
588
+ * The columns to display in the table. Each column is defined by a key and a DataTableColumn object.
589
+ */
539
590
  columns: {
540
591
  [key: string]: DataTableColumn<T>;
541
592
  };
593
+ defaultSize?: number;
594
+ /**
595
+ * Optional filters to apply to the data.
596
+ */
597
+ filters?: TObject;
598
+ panel?: (item: T) => ReactNode;
599
+ canPanel?: (item: T) => boolean;
600
+ submitOnInit?: boolean;
601
+ submitEvery?: DurationLike;
602
+ withLineNumbers?: boolean;
603
+ withCheckbox?: boolean;
604
+ checkboxActions?: any[];
605
+ actions?: any[];
606
+ /**
607
+ * Enable infinity scroll mode. When true, pagination controls are hidden and new items are loaded automatically when scrolling to the bottom.
608
+ */
609
+ infinityScroll?: boolean;
610
+ /**
611
+ * Props to pass to the Mantine Table component.
612
+ */
542
613
  tableProps?: TableProps;
614
+ /**
615
+ * Function to generate props for each table row based on the item.
616
+ */
543
617
  tableTrProps?: (item: T) => TableTrProps;
544
618
  }
545
619
  declare const DataTable: <T extends object>(props: DataTableProps<T>) => react_jsx_runtime5.JSX.Element;
@@ -551,6 +625,7 @@ declare const ui: {
551
625
  background: string;
552
626
  surface: string;
553
627
  elevated: string;
628
+ border: string;
554
629
  };
555
630
  };
556
631
  //#endregion
@@ -603,6 +678,34 @@ declare class RootRouter {
603
678
  readonly root: _alepha_react0.PageDescriptor<_alepha_react0.PageConfigSchema, any, _alepha_react0.TPropsParentDefault>;
604
679
  }
605
680
  //#endregion
681
+ //#region src/utils/extractSchemaFields.d.ts
682
+ interface SchemaField {
683
+ name: string;
684
+ path: string;
685
+ type: string;
686
+ enum?: readonly any[];
687
+ format?: string;
688
+ description?: string;
689
+ nested?: SchemaField[];
690
+ }
691
+ /**
692
+ * Extract field information from a TypeBox schema for query building.
693
+ * Supports nested objects and provides field metadata for autocomplete.
694
+ */
695
+ declare function extractSchemaFields(schema: TObject | TProperties, prefix?: string): SchemaField[];
696
+ /**
697
+ * Get suggested operators based on field type
698
+ */
699
+ declare function getOperatorsForField(field: SchemaField): string[];
700
+ /**
701
+ * Get operator symbol and description
702
+ */
703
+ declare const OPERATOR_INFO: Record<string, {
704
+ symbol: string;
705
+ label: string;
706
+ example: string;
707
+ }>;
708
+ //#endregion
606
709
  //#region src/utils/icons.d.ts
607
710
  /**
608
711
  * Icon size presets following Mantine's size conventions
@@ -677,7 +780,7 @@ declare module "@alepha/react" {
677
780
  *
678
781
  * @module alepha.ui
679
782
  */
680
- declare const AlephaUI: _alepha_core0.Service<_alepha_core0.Module<{}>>;
783
+ declare const AlephaUI: _alepha_core0.Service<_alepha_core0.Module>;
681
784
  //#endregion
682
- export { ActionButton, type ActionClickButtonProps, type ActionCommonProps, type ActionMenuConfig, type ActionMenuItem, type ActionNavigationButtonProps, type ActionProps, type ActionSubmitButtonProps, AdminShell, AlephaMantineProvider, AlephaUI, AlertDialog, type AlertDialogOptions, type AlertDialogProps, AppBar, type AppBarBurger, type AppBarDark, type AppBarDivider, type AppBarElement, type AppBarItem, type AppBarLang, type AppBarProps, type AppBarSearch, type AppBarSpacer, type BaseDialogOptions, ConfirmDialog, type ConfirmDialogOptions, type ConfirmDialogProps, Control, ControlDate, ControlSelect, DarkModeButton, DataTable, type DataTableColumn, type DataTableProps, DialogService, Flex, ICON_SIZES, IconSize, Omnibar, OmnibarButton, PromptDialog, type PromptDialogOptions, type PromptDialogProps, RootRouter, Sidebar, type SidebarAbstractItem, type SidebarButtonTheme, type SidebarDivider, type SidebarElement, type SidebarItemProps, type SidebarMenuItem, type SidebarNode, type SidebarProps, type SidebarSearch, type SidebarSection, type SidebarSpacer, type SidebarTheme, Text, ToastService, TypeForm, capitalize, getDefaultIcon, prettyName, ui, useDialog, useToast };
683
- //# sourceMappingURL=index.d.mts.map
785
+ export { ActionButton, type ActionClickButtonProps, type ActionCommonProps, type ActionMenuConfig, type ActionMenuItem, type ActionNavigationButtonProps, type ActionProps, type ActionSubmitButtonProps, AdminShell, AlephaMantineProvider, AlephaUI, AlertDialog, type AlertDialogOptions, type AlertDialogProps, AppBar, type AppBarBurger, type AppBarDark, type AppBarDivider, type AppBarElement, type AppBarItem, type AppBarLang, type AppBarProps, type AppBarSearch, type AppBarSpacer, type BaseDialogOptions, ConfirmDialog, type ConfirmDialogOptions, type ConfirmDialogProps, Control, ControlDate, ControlQueryBuilder, ControlSelect, DarkModeButton, DataTable, type DataTableColumn, type DataTableProps, DialogService, Flex, ICON_SIZES, IconSize, OPERATOR_INFO, Omnibar, OmnibarButton, PromptDialog, type PromptDialogOptions, type PromptDialogProps, RootRouter, SchemaField, Sidebar, type SidebarAbstractItem, type SidebarButtonTheme, type SidebarDivider, type SidebarElement, type SidebarItemProps, type SidebarMenuItem, type SidebarNode, type SidebarProps, type SidebarSearch, type SidebarSection, type SidebarSpacer, type SidebarTheme, Text, ToastService, TypeForm, capitalize, extractSchemaFields, getDefaultIcon, getOperatorsForField, prettyName, ui, useDialog, useToast };
786
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/utils/parseInput.ts","../src/components/form/ControlNumber.tsx","../src/components/form/ControlSelect.tsx","../src/components/form/Control.tsx","../src/components/buttons/ActionButton.tsx","../src/components/buttons/DarkModeButton.tsx","../src/components/buttons/OmnibarButton.tsx","../src/services/DialogService.tsx","../src/components/dialogs/AlertDialog.tsx","../src/components/dialogs/ConfirmDialog.tsx","../src/components/dialogs/PromptDialog.tsx","../src/components/form/ControlDate.tsx","../src/components/form/ControlQueryBuilder.tsx","../src/components/form/TypeForm.tsx","../src/components/buttons/LanguageButton.tsx","../src/components/layout/AppBar.tsx","../src/components/layout/Sidebar.tsx","../src/components/layout/AdminShell.tsx","../src/components/layout/Omnibar.tsx","../src/components/layout/AlephaMantineProvider.tsx","../src/components/table/DataTable.tsx","../src/constants/ui.ts","../src/hooks/useDialog.ts","../src/services/ToastService.tsx","../src/hooks/useToast.ts","../src/RootRouter.ts","../src/utils/extractSchemaFields.ts","../src/utils/icons.tsx","../src/utils/string.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;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