@noya-app/noya-designsystem 0.1.85 → 0.1.86
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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/InputField.tsx +1 -0
- package/src/components/Popover.tsx +5 -0
- package/src/components/__tests__/InputField.test.tsx +36 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -11,14 +11,14 @@ $ tsup
|
|
|
11
11
|
[32mCJS[39m [1mdist/index.js [22m[32m1.41 MB[39m
|
|
12
12
|
[32mCJS[39m [1mdist/emojis.js.map [22m[32m194.00 B[39m
|
|
13
13
|
[32mCJS[39m [1mdist/index.js.map [22m[32m2.74 MB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 7092ms
|
|
15
15
|
[32mESM[39m [1mdist/emojis.mjs [22m[32m300.00 B[39m
|
|
16
16
|
[32mESM[39m [1mdist/chunk-L6E2LZOL.mjs [22m[32m2.02 KB[39m
|
|
17
17
|
[32mESM[39m [1mdist/index.mjs [22m[32m1.37 MB[39m
|
|
18
18
|
[32mESM[39m [1mdist/emojis.mjs.map [22m[32m157.00 B[39m
|
|
19
19
|
[32mESM[39m [1mdist/chunk-L6E2LZOL.mjs.map [22m[32m71.00 B[39m
|
|
20
20
|
[32mESM[39m [1mdist/index.mjs.map [22m[32m2.74 MB[39m
|
|
21
|
-
[32mESM[39m ⚡️ Build success in
|
|
21
|
+
[32mESM[39m ⚡️ Build success in 7500ms
|
|
22
22
|
Browserslist: caniuse-lite is outdated. Please run:
|
|
23
23
|
npx update-browserslist-db@latest
|
|
24
24
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
@@ -28,10 +28,10 @@ Browserslist: browsers data (caniuse-lite) is 15 months old. Please run:
|
|
|
28
28
|
|
|
29
29
|
Rebuilding...
|
|
30
30
|
|
|
31
|
-
Done in
|
|
31
|
+
Done in 11103ms.
|
|
32
32
|
|
|
33
|
-
[32mDTS[39m ⚡️ Build success in
|
|
33
|
+
[32mDTS[39m ⚡️ Build success in 77012ms
|
|
34
34
|
[32mDTS[39m [1mdist/emojis.d.ts [22m[32m43.00 B[39m
|
|
35
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m126.
|
|
35
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m126.23 KB[39m
|
|
36
36
|
[32mDTS[39m [1mdist/emojis.d.mts [22m[32m43.00 B[39m
|
|
37
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m126.
|
|
37
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m126.23 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -17,6 +17,7 @@ export { Gemoji } from 'gemoji';
|
|
|
17
17
|
import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
|
|
18
18
|
import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
|
|
19
19
|
import { MultiplayerUser } from '@noya-app/noya-multiplayer-react';
|
|
20
|
+
import { Popover as Popover$1 } from '@base-ui/react/popover';
|
|
20
21
|
import { useSortable } from '@dnd-kit/sortable';
|
|
21
22
|
import { Sketch } from '@noya-app/noya-file-format';
|
|
22
23
|
|
|
@@ -2132,6 +2133,7 @@ interface Props$7 {
|
|
|
2132
2133
|
style?: React__default.CSSProperties;
|
|
2133
2134
|
portalContainer?: HTMLElement | null;
|
|
2134
2135
|
side?: "top" | "bottom" | "left" | "right";
|
|
2136
|
+
initialFocus?: React__default.ComponentProps<typeof Popover$1.Popup>["initialFocus"];
|
|
2135
2137
|
/**
|
|
2136
2138
|
* Called when an interaction outside the popover occurs.
|
|
2137
2139
|
* Return false to prevent the popover from closing.
|
|
@@ -2143,7 +2145,7 @@ declare const popoverStyle: {
|
|
|
2143
2145
|
large: string;
|
|
2144
2146
|
normal: string;
|
|
2145
2147
|
};
|
|
2146
|
-
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onClickClose, className, portalContainer, style, shouldCloseOnInteractOutside, }: Props$7): React__default.JSX.Element;
|
|
2148
|
+
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onClickClose, className, portalContainer, style, initialFocus, shouldCloseOnInteractOutside, }: Props$7): React__default.JSX.Element;
|
|
2147
2149
|
|
|
2148
2150
|
type ColorScheme$3 = "normal" | "warning" | "primary" | "secondary";
|
|
2149
2151
|
declare function Progress({ value, colorScheme, color, className, style: styleProp, }: {
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { Gemoji } from 'gemoji';
|
|
|
17
17
|
import * as _noya_app_noya_keymap from '@noya-app/noya-keymap';
|
|
18
18
|
import { KeyModifiers, PlatformName } from '@noya-app/noya-keymap';
|
|
19
19
|
import { MultiplayerUser } from '@noya-app/noya-multiplayer-react';
|
|
20
|
+
import { Popover as Popover$1 } from '@base-ui/react/popover';
|
|
20
21
|
import { useSortable } from '@dnd-kit/sortable';
|
|
21
22
|
import { Sketch } from '@noya-app/noya-file-format';
|
|
22
23
|
|
|
@@ -2132,6 +2133,7 @@ interface Props$7 {
|
|
|
2132
2133
|
style?: React__default.CSSProperties;
|
|
2133
2134
|
portalContainer?: HTMLElement | null;
|
|
2134
2135
|
side?: "top" | "bottom" | "left" | "right";
|
|
2136
|
+
initialFocus?: React__default.ComponentProps<typeof Popover$1.Popup>["initialFocus"];
|
|
2135
2137
|
/**
|
|
2136
2138
|
* Called when an interaction outside the popover occurs.
|
|
2137
2139
|
* Return false to prevent the popover from closing.
|
|
@@ -2143,7 +2145,7 @@ declare const popoverStyle: {
|
|
|
2143
2145
|
large: string;
|
|
2144
2146
|
normal: string;
|
|
2145
2147
|
};
|
|
2146
|
-
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onClickClose, className, portalContainer, style, shouldCloseOnInteractOutside, }: Props$7): React__default.JSX.Element;
|
|
2148
|
+
declare function Popover({ children, trigger, variant, closable, open, side, sideOffset, showArrow, onOpenChange, onClickClose, className, portalContainer, style, initialFocus, shouldCloseOnInteractOutside, }: Props$7): React__default.JSX.Element;
|
|
2147
2149
|
|
|
2148
2150
|
type ColorScheme$3 = "normal" | "warning" | "primary" | "secondary";
|
|
2149
2151
|
declare function Progress({ value, colorScheme, color, className, style: styleProp, }: {
|
package/dist/index.js
CHANGED
|
@@ -21579,6 +21579,7 @@ function Popover({
|
|
|
21579
21579
|
className,
|
|
21580
21580
|
portalContainer,
|
|
21581
21581
|
style: style2,
|
|
21582
|
+
initialFocus,
|
|
21582
21583
|
shouldCloseOnInteractOutside
|
|
21583
21584
|
}) {
|
|
21584
21585
|
const defaultId = (0, import_react33.useId)();
|
|
@@ -21636,6 +21637,7 @@ function Popover({
|
|
|
21636
21637
|
index_parts_exports5.Popup,
|
|
21637
21638
|
{
|
|
21638
21639
|
ref: popupRef,
|
|
21640
|
+
initialFocus,
|
|
21639
21641
|
style: style2,
|
|
21640
21642
|
className: cx(
|
|
21641
21643
|
popoverStyle.base,
|
|
@@ -22050,6 +22052,7 @@ function InputFieldRoot({
|
|
|
22050
22052
|
{
|
|
22051
22053
|
open: true,
|
|
22052
22054
|
trigger: rootElement,
|
|
22055
|
+
initialFocus: false,
|
|
22053
22056
|
sideOffset,
|
|
22054
22057
|
showArrow: false
|
|
22055
22058
|
},
|