@douglasneuroinformatics/libui 4.2.1 → 4.4.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-6C6CJESI.js → chunk-LSGD4EQY.js} +2 -2
- package/dist/{chunk-ARKHRGTL.js → chunk-VFVO337W.js} +17 -1
- package/dist/chunk-VFVO337W.js.map +1 -0
- package/dist/components.d.ts +34 -21
- package/dist/components.js +71 -157
- package/dist/components.js.map +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +2 -2
- package/dist/i18n.d.ts +2 -2
- package/dist/i18n.js +1 -1
- package/dist/{types-DHTtLrqP.d.ts → types-DDyMlEuL.d.ts} +19 -1
- package/package.json +3 -2
- package/src/components/DataTable/DataTable.stories.tsx +76 -0
- package/src/components/DataTable/DataTable.tsx +289 -0
- package/src/components/DataTable/DestructiveActionDialog.tsx +71 -0
- package/src/components/DataTable/RowActionsDropdown.tsx +64 -0
- package/src/components/DataTable/index.ts +1 -0
- package/src/components/Form/Form.stories.tsx +5 -3
- package/src/components/Form/Form.test.tsx +1 -1
- package/src/components/Form/Form.tsx +6 -7
- package/src/components/Form/types.ts +33 -0
- package/src/components/index.ts +0 -1
- package/src/i18n/translations/libui.json +16 -0
- package/dist/chunk-ARKHRGTL.js.map +0 -1
- /package/dist/{chunk-6C6CJESI.js.map → chunk-LSGD4EQY.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getTranslation,
|
|
4
4
|
translationStore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VFVO337W.js";
|
|
6
6
|
import {
|
|
7
7
|
isBrowser
|
|
8
8
|
} from "./chunk-HCQE34RL.js";
|
|
@@ -366,4 +366,4 @@ export {
|
|
|
366
366
|
useTranslation,
|
|
367
367
|
useWindowSize
|
|
368
368
|
};
|
|
369
|
-
//# sourceMappingURL=chunk-
|
|
369
|
+
//# sourceMappingURL=chunk-LSGD4EQY.js.map
|
|
@@ -149,6 +149,10 @@ var libui_default = {
|
|
|
149
149
|
en: "<< First",
|
|
150
150
|
fr: "<< Premi\xE8re"
|
|
151
151
|
},
|
|
152
|
+
first: {
|
|
153
|
+
en: "First",
|
|
154
|
+
fr: "Premi\xE8re"
|
|
155
|
+
},
|
|
152
156
|
info: {
|
|
153
157
|
en: "Showing {{first}} to {{last}} of {{total}} results",
|
|
154
158
|
fr: "Affichage de {{first}} \xE0 {{last}} sur {{total}} r\xE9sultats"
|
|
@@ -157,6 +161,10 @@ var libui_default = {
|
|
|
157
161
|
en: "Last >>",
|
|
158
162
|
fr: "Derni\xE8re >>"
|
|
159
163
|
},
|
|
164
|
+
last: {
|
|
165
|
+
en: "Last",
|
|
166
|
+
fr: "Derni\xE8re"
|
|
167
|
+
},
|
|
160
168
|
next: {
|
|
161
169
|
en: "Next",
|
|
162
170
|
fr: "Suivant"
|
|
@@ -171,6 +179,14 @@ var libui_default = {
|
|
|
171
179
|
en: "Search...",
|
|
172
180
|
fr: "Rechercher..."
|
|
173
181
|
}
|
|
182
|
+
},
|
|
183
|
+
yes: {
|
|
184
|
+
en: "Yes",
|
|
185
|
+
fr: "Oui"
|
|
186
|
+
},
|
|
187
|
+
no: {
|
|
188
|
+
en: "No",
|
|
189
|
+
fr: "Non"
|
|
174
190
|
}
|
|
175
191
|
};
|
|
176
192
|
|
|
@@ -233,4 +249,4 @@ export {
|
|
|
233
249
|
translationStore,
|
|
234
250
|
i18n
|
|
235
251
|
};
|
|
236
|
-
//# sourceMappingURL=chunk-
|
|
252
|
+
//# sourceMappingURL=chunk-VFVO337W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/i18n/store.ts","../src/i18n/translations/libui.json","../src/i18n/internal.ts"],"sourcesContent":["import type { SetOptional } from 'type-fest';\nimport { subscribeWithSelector } from 'zustand/middleware';\nimport { createStore } from 'zustand/vanilla';\n\nimport libui from '@/i18n/translations/libui.json';\n\nimport { getTranslation } from './internal';\n\nimport type { Language, TranslateFunction, Translations } from './types';\n\ntype InitOptions = {\n defaultLanguage?: Language;\n fallbackLanguage?: Language;\n translations?: SetOptional<Translations, 'libui'>;\n};\n\ntype I18N = {\n init: (options?: InitOptions) => void;\n t: TranslateFunction;\n};\n\nexport type TranslationStore = {\n changeLanguage: (language: Language) => void;\n fallbackLanguage: Language;\n isInitialized: boolean;\n resolvedLanguage: Language;\n translations: Translations;\n};\n\nexport const translationStore = createStore(\n subscribeWithSelector<TranslationStore>((set) => ({\n changeLanguage(language) {\n set({ resolvedLanguage: language });\n },\n fallbackLanguage: 'en',\n isInitialized: false,\n resolvedLanguage: 'en',\n translations: { libui }\n }))\n);\n\nexport const i18n: I18N = {\n init: ({ defaultLanguage, fallbackLanguage, translations }: InitOptions = {}) => {\n const state = translationStore.getState();\n if (state.isInitialized) {\n console.error('Cannot reinitialize translations store');\n return;\n }\n translationStore.subscribe(\n (state) => state.resolvedLanguage,\n (resolvedLanguage) => {\n document.documentElement.lang = resolvedLanguage;\n }\n );\n translationStore.setState({\n fallbackLanguage: fallbackLanguage ?? state.fallbackLanguage,\n isInitialized: true,\n resolvedLanguage: defaultLanguage ?? state.resolvedLanguage,\n translations: {\n ...state.translations,\n ...translations\n }\n });\n },\n t: (target, ...args) => {\n const state = translationStore.getState();\n return getTranslation(target, state, ...args);\n }\n};\n","{\n \"days\": {\n \"friday\": {\n \"en\": \"Friday\",\n \"fr\": \"Vendredi\"\n },\n \"monday\": {\n \"en\": \"Monday\",\n \"fr\": \"Lundi\"\n },\n \"saturday\": {\n \"en\": \"Saturday\",\n \"fr\": \"Samedi\"\n },\n \"sunday\": {\n \"en\": \"Sunday\",\n \"fr\": \"Dimanche\"\n },\n \"thursday\": {\n \"en\": \"Thursday\",\n \"fr\": \"Jeudi\"\n },\n \"tuesday\": {\n \"en\": \"Tuesday\",\n \"fr\": \"Mardi\"\n },\n \"wednesday\": {\n \"en\": \"Wednesday\",\n \"fr\": \"Mercredi\"\n }\n },\n \"form\": {\n \"append\": {\n \"en\": \"Append\",\n \"fr\": \"Ajouter\"\n },\n \"radioLabels\": {\n \"false\": {\n \"en\": \"False\",\n \"fr\": \"Faux\"\n },\n \"true\": {\n \"en\": \"True\",\n \"fr\": \"Vrai\"\n }\n },\n \"remove\": {\n \"en\": \"Remove\",\n \"fr\": \"Supprimer\"\n },\n \"required\": {\n \"en\": \"This field is required\",\n \"fr\": \"Ce champ est obligatoire\"\n },\n \"reset\": {\n \"en\": \"Reset\",\n \"fr\": \"Réinitialiser\"\n },\n \"submit\": {\n \"en\": \"Submit\",\n \"fr\": \"Soumettre\"\n }\n },\n \"months\": {\n \"april\": {\n \"en\": \"April\",\n \"fr\": \"Avril\"\n },\n \"august\": {\n \"en\": \"August\",\n \"fr\": \"Août\"\n },\n \"december\": {\n \"en\": \"December\",\n \"fr\": \"Décembre\"\n },\n \"february\": {\n \"en\": \"February\",\n \"fr\": \"Février\"\n },\n \"january\": {\n \"en\": \"January\",\n \"fr\": \"Janvier\"\n },\n \"july\": {\n \"en\": \"July\",\n \"fr\": \"Juillet\"\n },\n \"june\": {\n \"en\": \"June\",\n \"fr\": \"Juin\"\n },\n \"march\": {\n \"en\": \"March\",\n \"fr\": \"Mars\"\n },\n \"may\": {\n \"en\": \"May\",\n \"fr\": \"Mai\"\n },\n \"november\": {\n \"en\": \"November\",\n \"fr\": \"Novembre\"\n },\n \"october\": {\n \"en\": \"October\",\n \"fr\": \"Octobre\"\n },\n \"september\": {\n \"en\": \"September\",\n \"fr\": \"Septembre\"\n }\n },\n \"notifications\": {\n \"types\": {\n \"error\": {\n \"en\": \"Error\",\n \"fr\": \"Erreur\"\n },\n \"info\": {\n \"en\": \"Info\",\n \"fr\": \"Attention\"\n },\n \"success\": {\n \"en\": \"Success\",\n \"fr\": \"Succès\"\n },\n \"warning\": {\n \"en\": \"Warning\",\n \"fr\": \"Avertissement\"\n }\n }\n },\n \"oneTimePasswordInput\": {\n \"invalidCodeFormat\": {\n \"en\": \"Invalid code format\",\n \"fr\": \"Format de code invalide\"\n }\n },\n \"pagination\": {\n \"firstPage\": {\n \"en\": \"<< First\",\n \"fr\": \"<< Première\"\n },\n \"first\": {\n \"en\": \"First\",\n \"fr\": \"Première\"\n },\n \"info\": {\n \"en\": \"Showing {{first}} to {{last}} of {{total}} results\",\n \"fr\": \"Affichage de {{first}} à {{last}} sur {{total}} résultats\"\n },\n \"lastPage\": {\n \"en\": \"Last >>\",\n \"fr\": \"Dernière >>\"\n },\n \"last\": {\n \"en\": \"Last\",\n \"fr\": \"Dernière\"\n },\n \"next\": {\n \"en\": \"Next\",\n \"fr\": \"Suivant\"\n },\n \"previous\": {\n \"en\": \"Previous\",\n \"fr\": \"Précédent\"\n }\n },\n \"searchBar\": {\n \"placeholder\": {\n \"en\": \"Search...\",\n \"fr\": \"Rechercher...\"\n }\n },\n \"yes\": {\n \"en\": \"Yes\",\n \"fr\": \"Oui\"\n },\n \"no\": {\n \"en\": \"No\",\n \"fr\": \"Non\"\n }\n}\n","import { format } from '@douglasneuroinformatics/libjs';\nimport { get } from 'lodash-es';\nimport type { Primitive } from 'type-fest';\n\nimport type { Language } from './types';\n\nexport function getTranslation(\n target: string | { [L in Language]?: string },\n state: {\n fallbackLanguage: Language;\n resolvedLanguage: Language;\n translations: { [key: string]: any };\n },\n ...args: Exclude<Primitive, symbol>[]\n) {\n let value: { [key: string]: string };\n if (typeof target === 'string') {\n value = get(state.translations, target) as { [key: string]: string };\n } else {\n value = target;\n }\n return format((value[state.resolvedLanguage] ?? value[state.fallbackLanguage])!, ...args);\n}\n"],"mappings":";;;AACA,SAAS,6BAA6B;AACtC,SAAS,mBAAmB;;;ACF5B;AAAA,EACE,MAAQ;AAAA,IACN,QAAU;AAAA,MACR,IAAM;AAAA,MACN,IAAM;AAAA,IACR;AAAA,IACA,QAAU;AAAA,MACR,IAAM;AAAA,MACN,IAAM;AAAA,IACR;AAAA,IACA,UAAY;AAAA,MACV,IAAM;AAAA,MACN,IAA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AAQ,iBAAiB,SAAS;AACxC,WAAO,eAAe,QAAQ,OAAO,GAAG,IAAI;AAAA,EAC9C;AACF;","names":["state"]}
|
package/dist/components.d.ts
CHANGED
|
@@ -22,10 +22,9 @@ import * as _radix_ui_react_context_menu from '@radix-ui/react-context-menu';
|
|
|
22
22
|
import * as _radix_ui_react_dialog from '@radix-ui/react-dialog';
|
|
23
23
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
24
24
|
import { FormDataType, FormContent, PartialNullableFormDataType } from '@douglasneuroinformatics/libui-form-types';
|
|
25
|
-
import { z } from 'zod';
|
|
26
25
|
import * as _radix_ui_react_hover_card from '@radix-ui/react-hover-card';
|
|
27
26
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
28
|
-
import { L as Language } from './types-
|
|
27
|
+
import { L as Language } from './types-DDyMlEuL.js';
|
|
29
28
|
import * as _radix_ui_react_menubar from '@radix-ui/react-menubar';
|
|
30
29
|
import { MenubarMenuProps } from '@radix-ui/react-menubar';
|
|
31
30
|
import * as _radix_ui_react_popover from '@radix-ui/react-popover';
|
|
@@ -1277,7 +1276,35 @@ type FileDropzoneProps = {
|
|
|
1277
1276
|
};
|
|
1278
1277
|
declare const FileDropzone: ({ acceptedFileTypes, className, description, file, setFile, titles }: FileDropzoneProps) => react_jsx_runtime.JSX.Element;
|
|
1279
1278
|
|
|
1280
|
-
type
|
|
1279
|
+
type ZodIssueLike = {
|
|
1280
|
+
[key: string]: any;
|
|
1281
|
+
readonly code: string;
|
|
1282
|
+
readonly message: string;
|
|
1283
|
+
readonly path: PropertyKey[];
|
|
1284
|
+
};
|
|
1285
|
+
type ZodErrorLike = {
|
|
1286
|
+
cause?: unknown;
|
|
1287
|
+
issues: ZodIssueLike[];
|
|
1288
|
+
name: string;
|
|
1289
|
+
};
|
|
1290
|
+
type ZodSafeParseResultLike<T> = ZodSafeParseErrorLike | ZodSafeParseSuccessLike<T>;
|
|
1291
|
+
type ZodSafeParseSuccessLike<TOutput> = {
|
|
1292
|
+
data: TOutput;
|
|
1293
|
+
error?: never;
|
|
1294
|
+
success: true;
|
|
1295
|
+
};
|
|
1296
|
+
type ZodSafeParseErrorLike = {
|
|
1297
|
+
data?: never;
|
|
1298
|
+
error: ZodErrorLike;
|
|
1299
|
+
success: false;
|
|
1300
|
+
};
|
|
1301
|
+
type ZodTypeLike<TOutput, TInput = TOutput> = {
|
|
1302
|
+
readonly _input: TInput;
|
|
1303
|
+
readonly _output: TOutput;
|
|
1304
|
+
safeParseAsync: (data: unknown) => Promise<ZodSafeParseResultLike<TOutput>>;
|
|
1305
|
+
};
|
|
1306
|
+
|
|
1307
|
+
type FormProps<TSchema extends ZodTypeLike<FormDataType>, TData extends TSchema['_input'] = TSchema['_input']> = {
|
|
1281
1308
|
[key: `data-${string}`]: unknown;
|
|
1282
1309
|
additionalButtons?: {
|
|
1283
1310
|
left?: React.ReactNode;
|
|
@@ -1298,7 +1325,7 @@ type FormProps<TSchema extends z.ZodType<FormDataType>, TData extends z.TypeOf<T
|
|
|
1298
1325
|
} | {
|
|
1299
1326
|
success: true;
|
|
1300
1327
|
}>) | null;
|
|
1301
|
-
onError?: (error:
|
|
1328
|
+
onError?: (error: ZodErrorLike) => void;
|
|
1302
1329
|
onSubmit: (data: NoInfer<TData>) => Promisable<void>;
|
|
1303
1330
|
preventResetValuesOnReset?: boolean;
|
|
1304
1331
|
readOnly?: boolean;
|
|
@@ -1306,9 +1333,9 @@ type FormProps<TSchema extends z.ZodType<FormDataType>, TData extends z.TypeOf<T
|
|
|
1306
1333
|
revalidateOnBlur?: boolean;
|
|
1307
1334
|
submitBtnLabel?: string;
|
|
1308
1335
|
suspendWhileSubmitting?: boolean;
|
|
1309
|
-
validationSchema:
|
|
1336
|
+
validationSchema: ZodTypeLike<TData>;
|
|
1310
1337
|
};
|
|
1311
|
-
declare const Form: <TSchema extends
|
|
1338
|
+
declare const Form: <TSchema extends ZodTypeLike<FormDataType>, TData extends TSchema["_input"] = TSchema["_input"]>({ additionalButtons, className, content, customStyles, fieldsFooter, id, initialValues, onBeforeSubmit, onError, onSubmit, preventResetValuesOnReset, readOnly, resetBtn, revalidateOnBlur, submitBtnLabel, suspendWhileSubmitting, validationSchema, ...props }: FormProps<TSchema, TData>) => react_jsx_runtime.JSX.Element;
|
|
1312
1339
|
|
|
1313
1340
|
type HeadingProps = {
|
|
1314
1341
|
children: string;
|
|
@@ -1420,20 +1447,6 @@ type OneTimePasswordInputProps = {
|
|
|
1420
1447
|
};
|
|
1421
1448
|
declare const OneTimePasswordInput: ({ className, onComplete, ...props }: OneTimePasswordInputProps) => react_jsx_runtime.JSX.Element;
|
|
1422
1449
|
|
|
1423
|
-
type PaginationLinkProps = Simplify<Pick<ButtonProps, 'size'> & React$1.ComponentProps<'a'> & {
|
|
1424
|
-
isActive?: boolean;
|
|
1425
|
-
}>;
|
|
1426
|
-
declare const PaginationLink: ({ children, className, isActive, size, ...props }: PaginationLinkProps) => react_jsx_runtime.JSX.Element;
|
|
1427
|
-
|
|
1428
|
-
declare const Pagination: (({ className, ...props }: React.ComponentProps<"nav">) => react_jsx_runtime.JSX.Element) & {
|
|
1429
|
-
Content: ({ className, ...props }: React.ComponentProps<"ul">) => react_jsx_runtime.JSX.Element;
|
|
1430
|
-
Ellipsis: ({ className, ...props }: React.ComponentProps<"span">) => react_jsx_runtime.JSX.Element;
|
|
1431
|
-
Item: ({ className, ...props }: React.ComponentProps<"li">) => react_jsx_runtime.JSX.Element;
|
|
1432
|
-
Link: ({ children, className, isActive, size, ...props }: PaginationLinkProps) => react_jsx_runtime.JSX.Element;
|
|
1433
|
-
Next: ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => react_jsx_runtime.JSX.Element;
|
|
1434
|
-
Previous: ({ className, ...props }: PaginationLinkProps) => react_jsx_runtime.JSX.Element;
|
|
1435
|
-
};
|
|
1436
|
-
|
|
1437
1450
|
type PopoverContentProps = {
|
|
1438
1451
|
/** The preferred alignment against the anchor, which may change when collisions occur */
|
|
1439
1452
|
align?: 'center' | 'end' | 'start';
|
|
@@ -1609,4 +1622,4 @@ declare const Tooltip: (({ children, delayDuration, onOpenChange, open, skipDela
|
|
|
1609
1622
|
Trigger: React$1.ForwardRefExoticComponent<TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1610
1623
|
};
|
|
1611
1624
|
|
|
1612
|
-
export { Accordion, ActionDropdown, type ActionDropdownProps, AlertDialog, ArrowToggle, type ArrowToggleProps, Avatar, BUTTON_ICON_SIZE, Badge, type BadgeProps, type BaseSearchBarProps, Breadcrumb, Button, type ButtonProps, Card, Chart, ChartConfig, Checkbox, type ClientFieldFactory, ClientTable, type ClientTableColumn, type ClientTableColumnProps, type ClientTableDropdownOptions, type ClientTableEntry, type ClientTableProps, Collapsible, Command, ContextMenu, CopyButton, DatePicker, type DatePickerProps, Dialog, Drawer, DropdownButton, DropdownMenu, ErrorBoundary, ErrorFallback, type ErrorFallbackProps, FileDropzone, type FileDropzoneProps, Form, type FormProps, Heading, type HeadingProps, HoverCard, Input, type InputProps, Label, LanguageToggle, type LanguageToggleProps, LineGraph, type LineGraphData, type LineGraphLine, ListboxDropdown, type ListboxDropdownOption, type ListboxDropdownProps, MenuBar, NotificationHub, type NotificationHubProps, OneTimePasswordInput,
|
|
1625
|
+
export { Accordion, ActionDropdown, type ActionDropdownProps, AlertDialog, ArrowToggle, type ArrowToggleProps, Avatar, BUTTON_ICON_SIZE, Badge, type BadgeProps, type BaseSearchBarProps, Breadcrumb, Button, type ButtonProps, Card, Chart, ChartConfig, Checkbox, type ClientFieldFactory, ClientTable, type ClientTableColumn, type ClientTableColumnProps, type ClientTableDropdownOptions, type ClientTableEntry, type ClientTableProps, Collapsible, Command, ContextMenu, CopyButton, DatePicker, type DatePickerProps, Dialog, Drawer, DropdownButton, DropdownMenu, ErrorBoundary, ErrorFallback, type ErrorFallbackProps, FileDropzone, type FileDropzoneProps, Form, type FormProps, Heading, type HeadingProps, HoverCard, Input, type InputProps, Label, LanguageToggle, type LanguageToggleProps, LineGraph, type LineGraphData, type LineGraphLine, ListboxDropdown, type ListboxDropdownOption, type ListboxDropdownProps, MenuBar, NotificationHub, type NotificationHubProps, OneTimePasswordInput, Popover, Progress, RadioGroup, type RadioGroupProps, Resizable, ScrollArea, SearchBar, type SearchBarProps, Select, Separator, Sheet, Slider, Spinner, SpinnerIcon, StatisticCard, Switch, Table, Tabs, TextArea, type TextAreaProps, ThemeToggle, type ThemeToggleProps, Tooltip, badgeVariants, buttonVariants, labelVariants };
|