@molecule/app-ui-react 4.1.7 → 4.3.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/README.md +121 -26
- package/dist/components/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion.js +5 -4
- package/dist/components/Accordion.js.map +1 -1
- package/dist/components/Alert.d.ts.map +1 -1
- package/dist/components/Alert.js +3 -2
- package/dist/components/Alert.js.map +1 -1
- package/dist/components/AuthGuard.d.ts +12 -9
- package/dist/components/AuthGuard.d.ts.map +1 -1
- package/dist/components/AuthGuard.js +23 -15
- package/dist/components/AuthGuard.js.map +1 -1
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar.js +3 -2
- package/dist/components/Avatar.js.map +1 -1
- package/dist/components/Badge.d.ts.map +1 -1
- package/dist/components/Badge.js +3 -2
- package/dist/components/Badge.js.map +1 -1
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +2 -1
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/Card.js +11 -9
- package/dist/components/Card.js.map +1 -1
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.js +2 -1
- package/dist/components/Checkbox.js.map +1 -1
- package/dist/components/ConfirmButton.d.ts.map +1 -1
- package/dist/components/ConfirmButton.js +2 -1
- package/dist/components/ConfirmButton.js.map +1 -1
- package/dist/components/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown.js +34 -24
- package/dist/components/Dropdown.js.map +1 -1
- package/dist/components/Form.d.ts.map +1 -1
- package/dist/components/Form.js +4 -3
- package/dist/components/Form.js.map +1 -1
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +2 -1
- package/dist/components/Input.js.map +1 -1
- package/dist/components/Layout.d.ts.map +1 -1
- package/dist/components/Layout.js +22 -20
- package/dist/components/Layout.js.map +1 -1
- package/dist/components/Modal.d.ts +4 -4
- package/dist/components/Modal.d.ts.map +1 -1
- package/dist/components/Modal.js +7 -32
- package/dist/components/Modal.js.map +1 -1
- package/dist/components/OptimisticToggleButton.d.ts.map +1 -1
- package/dist/components/OptimisticToggleButton.js +2 -1
- package/dist/components/OptimisticToggleButton.js.map +1 -1
- package/dist/components/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Pagination.js.map +1 -1
- package/dist/components/Progress.d.ts.map +1 -1
- package/dist/components/Progress.js +2 -2
- package/dist/components/Progress.js.map +1 -1
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.js +2 -2
- package/dist/components/RadioGroup.js.map +1 -1
- package/dist/components/ResponsiveAppShell.d.ts +14 -12
- package/dist/components/ResponsiveAppShell.d.ts.map +1 -1
- package/dist/components/ResponsiveAppShell.js +15 -14
- package/dist/components/ResponsiveAppShell.js.map +1 -1
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Select.js +2 -1
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Separator.d.ts.map +1 -1
- package/dist/components/Separator.js +2 -2
- package/dist/components/Separator.js.map +1 -1
- package/dist/components/SidebarUserCard.d.ts.map +1 -1
- package/dist/components/SidebarUserCard.js +1 -2
- package/dist/components/SidebarUserCard.js.map +1 -1
- package/dist/components/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton.js +2 -2
- package/dist/components/Skeleton.js.map +1 -1
- package/dist/components/Spinner.d.ts +2 -2
- package/dist/components/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner.js +4 -8
- package/dist/components/Spinner.js.map +1 -1
- package/dist/components/Switch.d.ts.map +1 -1
- package/dist/components/Switch.js +2 -2
- package/dist/components/Switch.js.map +1 -1
- package/dist/components/Table.d.ts.map +1 -1
- package/dist/components/Table.js +3 -2
- package/dist/components/Table.js.map +1 -1
- package/dist/components/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs.js +5 -5
- package/dist/components/Tabs.js.map +1 -1
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea.js +2 -1
- package/dist/components/Textarea.js.map +1 -1
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip.js +9 -4
- package/dist/components/Tooltip.js.map +1 -1
- package/dist/components/UserMenu.d.ts.map +1 -1
- package/dist/components/UserMenu.js +1 -2
- package/dist/components/UserMenu.js.map +1 -1
- package/dist/components/UserMenuPopover.d.ts.map +1 -1
- package/dist/components/UserMenuPopover.js +1 -2
- package/dist/components/UserMenuPopover.js.map +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utilities/mergeRefs.d.ts +16 -0
- package/dist/utilities/mergeRefs.d.ts.map +1 -0
- package/dist/utilities/mergeRefs.js +23 -0
- package/dist/utilities/mergeRefs.js.map +1 -0
- package/package.json +7 -8
package/dist/types.d.ts
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
export type { AccordionItem, AccordionProps, AlertProps, AvatarProps, BadgeProps, BaseProps, ButtonElementProps, ButtonProps, ButtonVariant, CardProps, ChangeEventHandler, CheckboxProps, Children, ColorVariant, ContainerProps, CSSProperties, EventHandler, FlexProps, FocusEventHandler, FormElementProps, FormEventHandler, FormFieldProps, FormProps, GridProps, HTMLElementProps, InputElementProps, InputProps, InputType, KeyboardEventHandler, ModalProps, ModalSize, MouseEventHandler, PaginationProps, RadioGroupProps, RadioOption, SelectElementProps, SelectOption, SelectProps, Size, SkeletonProps, SpacerProps, SpinnerProps, SwitchProps, TabItem, TableColumn, TableProps, TabsProps, TextareaElementProps, TextareaProps, ToastProps, TooltipPlacement, TooltipProps, } from '@molecule/app-ui';
|
|
6
|
+
export type { AccordionItem, AccordionProps, AlertProps, AvatarProps, BadgeProps, BaseProps, ButtonElementProps, ButtonProps, ButtonVariant, CardProps, ChangeEventHandler, CheckboxProps, Children, ColorVariant, ContainerProps, CSSProperties, EventHandler, FlexProps, FocusEventHandler, FormElementProps, FormEventHandler, FormFieldProps, FormProps, GridProps, HTMLElementProps, InputElementProps, InputProps, InputType, KeyboardEventHandler, KitEvent, KitFocusEvent, KitKeyboardEvent, KitModifierKeys, KitMouseEvent, ModalProps, ModalSize, MouseEventHandler, PaginationProps, RadioGroupProps, RadioOption, SelectElementProps, SelectOption, SelectProps, Size, SkeletonProps, SpacerProps, SpinnerProps, SwitchProps, TabItem, TableColumn, TableProps, TabsProps, TextareaElementProps, TextareaProps, ToastProps, TooltipPlacement, TooltipProps, } from '@molecule/app-ui';
|
|
7
7
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EAEV,aAAa,EACb,cAAc,EAEd,UAAU,EAEV,WAAW,EAEX,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,WAAW,EAEX,aAAa,EAEb,SAAS,EACT,kBAAkB,EAElB,aAAa,EACb,QAAQ,EACR,YAAY,EAEZ,cAAc,EAEd,aAAa,EACb,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EAEd,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EAEV,SAAS,EACT,oBAAoB,EACpB,UAAU,EAEV,SAAS,EACT,iBAAiB,EAEjB,eAAe,EACf,eAAe,EAEf,WAAW,EACX,kBAAkB,EAElB,YAAY,EACZ,WAAW,EACX,IAAI,EAEJ,aAAa,EACb,WAAW,EAEX,YAAY,EAEZ,WAAW,EAEX,OAAO,EAEP,WAAW,EACX,UAAU,EACV,SAAS,EACT,oBAAoB,EAEpB,aAAa,EACb,UAAU,EAEV,gBAAgB,EAChB,YAAY,GACb,MAAM,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EAEV,aAAa,EACb,cAAc,EAEd,UAAU,EAEV,WAAW,EAEX,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,WAAW,EAEX,aAAa,EAEb,SAAS,EACT,kBAAkB,EAElB,aAAa,EACb,QAAQ,EACR,YAAY,EAEZ,cAAc,EAEd,aAAa,EACb,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EAEd,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EAEV,SAAS,EACT,oBAAoB,EACpB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,UAAU,EAEV,SAAS,EACT,iBAAiB,EAEjB,eAAe,EACf,eAAe,EAEf,WAAW,EACX,kBAAkB,EAElB,YAAY,EACZ,WAAW,EACX,IAAI,EAEJ,aAAa,EACb,WAAW,EAEX,YAAY,EAEZ,WAAW,EAEX,OAAO,EAEP,WAAW,EACX,UAAU,EACV,SAAS,EACT,oBAAoB,EAEpB,aAAa,EACb,UAAU,EAEV,gBAAgB,EAChB,YAAY,GACb,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merges a component's forwarded ref with its own internal ref.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import type React from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Merges multiple refs (object or callback) into a single callback ref, so an internal ref
|
|
9
|
+
* (focus-trap or positioning bookkeeping) can coexist with the consumer's forwarded ref on the
|
|
10
|
+
* same DOM node.
|
|
11
|
+
*
|
|
12
|
+
* @param refs - The refs to merge; `undefined`/`null` entries are skipped.
|
|
13
|
+
* @returns A single callback ref that updates every merged ref.
|
|
14
|
+
*/
|
|
15
|
+
export declare function mergeRefs<T>(...refs: Array<React.Ref<T> | undefined>): React.RefCallback<T>;
|
|
16
|
+
//# sourceMappingURL=mergeRefs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeRefs.d.ts","sourceRoot":"","sources":["../../src/utilities/mergeRefs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAW3F"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merges multiple refs (object or callback) into a single callback ref, so an internal ref
|
|
3
|
+
* (focus-trap or positioning bookkeeping) can coexist with the consumer's forwarded ref on the
|
|
4
|
+
* same DOM node.
|
|
5
|
+
*
|
|
6
|
+
* @param refs - The refs to merge; `undefined`/`null` entries are skipped.
|
|
7
|
+
* @returns A single callback ref that updates every merged ref.
|
|
8
|
+
*/
|
|
9
|
+
export function mergeRefs(...refs) {
|
|
10
|
+
return (node) => {
|
|
11
|
+
for (const r of refs) {
|
|
12
|
+
if (!r)
|
|
13
|
+
continue;
|
|
14
|
+
if (typeof r === 'function') {
|
|
15
|
+
r(node);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
r.current = node;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=mergeRefs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeRefs.js","sourceRoot":"","sources":["../../src/utilities/mergeRefs.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CAAI,GAAG,IAAqC;IACnE,OAAO,CAAC,IAAc,EAAE,EAAE;QACxB,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACrB,IAAI,CAAC,CAAC;gBAAE,SAAQ;YAChB,IAAI,OAAO,CAAC,KAAK,UAAU,EAAE,CAAC;gBAC5B,CAAC,CAAC,IAAI,CAAC,CAAA;YACT,CAAC;iBAAM,CAAC;gBACN,CAAC,CAAC,OAAO,GAAG,IAAI,CAAA;YAClB,CAAC;QACH,CAAC;IACH,CAAC,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-ui-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "React UI primitive bundle for molecule.dev — Button, Modal, Tooltip, Toast, Alert, Card, Badge, Avatar, Tabs, Accordion, Dropdown, Select, Checkbox, Switch, Input, Table, Spinner, Skeleton, Progress and more. Import these primitives; do not rebuild them.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,16 +35,15 @@
|
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@molecule/app-i18n": "^1.0.1",
|
|
37
37
|
"@molecule/app-icons": "^1.0.1",
|
|
38
|
-
"@molecule/app-react": "^4.
|
|
39
|
-
"@molecule/app-ui": "^1.
|
|
38
|
+
"@molecule/app-react": "^4.12.0",
|
|
39
|
+
"@molecule/app-ui": "^1.5.0",
|
|
40
40
|
"react": "^18.0.0 || ^19.0.0",
|
|
41
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
42
|
-
"react-router": "^7.0.0 || ^8.0.0"
|
|
41
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
44
|
"@molecule/app-i18n": "1.2.2",
|
|
46
45
|
"@molecule/app-icons": "1.0.4",
|
|
47
|
-
"@molecule/app-react": "4.
|
|
46
|
+
"@molecule/app-react": "4.12.0",
|
|
48
47
|
"@testing-library/react": "16.3.3",
|
|
49
48
|
"@types/node": "26.6.5",
|
|
50
49
|
"@types/react": "19.3.0",
|
|
@@ -52,9 +51,9 @@
|
|
|
52
51
|
"jsdom": "30.1.3",
|
|
53
52
|
"react": "19.3.1",
|
|
54
53
|
"react-dom": "19.3.1",
|
|
55
|
-
"react-router": "8.5.0",
|
|
56
54
|
"typescript": "6.0.3",
|
|
57
|
-
"vitest": "4.1.12"
|
|
55
|
+
"vitest": "4.1.12",
|
|
56
|
+
"@molecule/app-routing": "1.5.2"
|
|
58
57
|
},
|
|
59
58
|
"repository": {
|
|
60
59
|
"type": "git",
|