@coldsurf/ocean-road 1.15.1-alpha.0 → 1.15.1-alpha.1
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/index.d.ts +54 -53
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/native.d.cts +25 -25
- package/dist/native.d.cts.map +1 -1
- package/dist/native.d.ts +11 -11
- package/dist/native.d.ts.map +1 -1
- package/dist/next.cjs +3 -3
- package/dist/next.cjs.map +1 -1
- package/dist/next.d.cts +24 -24
- package/dist/next.d.ts +5 -5
- package/dist/next.js +233 -233
- package/dist/next.js.map +1 -1
- package/package.json +1 -1
- package/src/extensions/dropdown/dropdown.menu-item.tsx +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import * as react0$1 from "react";
|
|
2
2
|
import * as react0 from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
3
|
+
import * as react73 from "react";
|
|
4
|
+
import * as react85 from "react";
|
|
5
|
+
import * as react80 from "react";
|
|
6
|
+
import * as react72 from "react";
|
|
7
|
+
import * as react79 from "react";
|
|
8
8
|
import * as react60 from "react";
|
|
9
|
-
import * as
|
|
10
|
-
import * as react83 from "react";
|
|
11
|
-
import * as react75 from "react";
|
|
12
|
-
import * as react55 from "react";
|
|
13
|
-
import * as react81 from "react";
|
|
14
|
-
import * as react23 from "react";
|
|
15
|
-
import * as react67 from "react";
|
|
16
|
-
import * as react53 from "react";
|
|
17
|
-
import * as react51 from "react";
|
|
9
|
+
import * as react68 from "react";
|
|
18
10
|
import * as react62 from "react";
|
|
11
|
+
import * as react78 from "react";
|
|
12
|
+
import * as react70 from "react";
|
|
13
|
+
import * as react54 from "react";
|
|
14
|
+
import * as react23 from "react";
|
|
15
|
+
import * as react90 from "react";
|
|
16
|
+
import * as react48 from "react";
|
|
17
|
+
import * as react52 from "react";
|
|
18
|
+
import * as react95 from "react";
|
|
19
19
|
import * as react27 from "react";
|
|
20
|
-
import * as
|
|
20
|
+
import * as react56 from "react";
|
|
21
21
|
import * as react42 from "react";
|
|
22
|
-
import * as
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
22
|
+
import * as react50 from "react";
|
|
23
|
+
import * as react46 from "react";
|
|
24
|
+
import * as react59 from "react";
|
|
25
25
|
import * as react1 from "react";
|
|
26
26
|
import { ButtonHTMLAttributes, CSSProperties, ComponentPropsWithRef, DetailedHTMLProps, ElementType, HTMLAttributes, InputHTMLAttributes, MouseEventHandler, PropsWithChildren, ReactElement, ReactNode, Ref, RefObject, SVGProps, TextareaHTMLAttributes } from "react";
|
|
27
27
|
import * as _emotion_react1 from "@emotion/react";
|
|
@@ -241,27 +241,27 @@ type ButtonTheme = 'transparent' | 'transparentDarkGray' | 'white' | 'pink' | 'i
|
|
|
241
241
|
//# sourceMappingURL=button.types.d.ts.map
|
|
242
242
|
//#endregion
|
|
243
243
|
//#region src/base/button/button.d.ts
|
|
244
|
-
declare const Button:
|
|
244
|
+
declare const Button: react73.ForwardRefExoticComponent<{
|
|
245
245
|
theme?: ButtonTheme;
|
|
246
246
|
variant?: ButtonTheme;
|
|
247
247
|
size?: "lg" | "md" | "sm";
|
|
248
|
-
leftIcon?: keyof typeof icons |
|
|
249
|
-
rightIcon?: keyof typeof icons |
|
|
248
|
+
leftIcon?: keyof typeof icons | react73.ReactElement;
|
|
249
|
+
rightIcon?: keyof typeof icons | react73.ReactElement;
|
|
250
250
|
textWeight?: "light" | "medium" | "bold";
|
|
251
251
|
} & {
|
|
252
|
-
children?:
|
|
253
|
-
} & ButtonHTMLAttributes<HTMLButtonElement> &
|
|
252
|
+
children?: react73.ReactNode | undefined;
|
|
253
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & react73.RefAttributes<HTMLButtonElement>>;
|
|
254
254
|
//# sourceMappingURL=button.d.ts.map
|
|
255
255
|
//#endregion
|
|
256
256
|
//#region src/base/checkbox/checkbox.d.ts
|
|
257
|
-
declare const Checkbox:
|
|
257
|
+
declare const Checkbox: react85.MemoExoticComponent<react85.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "formAction"> & {
|
|
258
258
|
size?: "lg" | "md" | "sm";
|
|
259
259
|
labelText?: string;
|
|
260
|
-
} &
|
|
260
|
+
} & react85.RefAttributes<HTMLInputElement>>>;
|
|
261
261
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
262
262
|
//#endregion
|
|
263
263
|
//#region src/base/icon-button/icon-button.d.ts
|
|
264
|
-
declare const IconButton:
|
|
264
|
+
declare const IconButton: react80.ForwardRefExoticComponent<react80.ButtonHTMLAttributes<HTMLButtonElement> & react80.RefAttributes<HTMLButtonElement>>;
|
|
265
265
|
//# sourceMappingURL=icon-button.d.ts.map
|
|
266
266
|
//#endregion
|
|
267
267
|
//#region src/base/icon-button/icon-button.types.d.ts
|
|
@@ -278,7 +278,7 @@ declare const Modal: ({
|
|
|
278
278
|
visible: boolean;
|
|
279
279
|
onClose: () => void;
|
|
280
280
|
zIndex?: number;
|
|
281
|
-
}>) =>
|
|
281
|
+
}>) => react72.JSX.Element;
|
|
282
282
|
//# sourceMappingURL=modal.d.ts.map
|
|
283
283
|
//#endregion
|
|
284
284
|
//#region src/base/spinner/spinner.types.d.ts
|
|
@@ -293,7 +293,7 @@ type Props$7 = {
|
|
|
293
293
|
declare const Spinner: ({
|
|
294
294
|
variant,
|
|
295
295
|
className
|
|
296
|
-
}: Props$7) =>
|
|
296
|
+
}: Props$7) => react79.JSX.Element;
|
|
297
297
|
//#endregion
|
|
298
298
|
//#region src/base/text/text.styled.d.ts
|
|
299
299
|
type TextVariant = 'heading1' | 'heading2' | 'heading3' | 'body1' | 'body2' | 'caption' | 'label';
|
|
@@ -324,18 +324,18 @@ type TextAreaProps = DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElemen
|
|
|
324
324
|
//# sourceMappingURL=text-area.types.d.ts.map
|
|
325
325
|
//#endregion
|
|
326
326
|
//#region src/base/text-area/text-area.d.ts
|
|
327
|
-
declare const TextArea:
|
|
327
|
+
declare const TextArea: react68.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & react68.RefAttributes<HTMLTextAreaElement>>;
|
|
328
328
|
//# sourceMappingURL=text-area.d.ts.map
|
|
329
329
|
//#endregion
|
|
330
330
|
//#region src/base/text-input/text-input.d.ts
|
|
331
|
-
declare const TextInput:
|
|
331
|
+
declare const TextInput: react62.ForwardRefExoticComponent<react62.InputHTMLAttributes<HTMLInputElement> & {
|
|
332
332
|
label?: string;
|
|
333
|
-
labelStyle?:
|
|
333
|
+
labelStyle?: react62.CSSProperties;
|
|
334
334
|
isError?: boolean;
|
|
335
335
|
required?: boolean;
|
|
336
|
-
left?:
|
|
337
|
-
right?:
|
|
338
|
-
} &
|
|
336
|
+
left?: react62.ReactNode;
|
|
337
|
+
right?: react62.ReactNode;
|
|
338
|
+
} & react62.RefAttributes<HTMLInputElement>>;
|
|
339
339
|
//# sourceMappingURL=text-input.d.ts.map
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region src/base/text-input/text-input.types.d.ts
|
|
@@ -366,7 +366,7 @@ declare const Toast: ({
|
|
|
366
366
|
message,
|
|
367
367
|
zIndex,
|
|
368
368
|
onClose
|
|
369
|
-
}: ToastProps) =>
|
|
369
|
+
}: ToastProps) => react78.JSX.Element;
|
|
370
370
|
//# sourceMappingURL=toast.d.ts.map
|
|
371
371
|
//#endregion
|
|
372
372
|
//#region src/base/switch/switch.d.ts
|
|
@@ -374,7 +374,7 @@ interface SwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onC
|
|
|
374
374
|
checked: boolean;
|
|
375
375
|
onChange: (checked: boolean) => void;
|
|
376
376
|
}
|
|
377
|
-
declare const Switch:
|
|
377
|
+
declare const Switch: react70.ForwardRefExoticComponent<SwitchProps & react70.RefAttributes<HTMLButtonElement>>;
|
|
378
378
|
//#endregion
|
|
379
379
|
//#region src/base/badge/badge.d.ts
|
|
380
380
|
type Props$6 = {
|
|
@@ -383,7 +383,7 @@ type Props$6 = {
|
|
|
383
383
|
isHighlighted?: boolean;
|
|
384
384
|
children?: string | ReactElement;
|
|
385
385
|
};
|
|
386
|
-
declare const Badge:
|
|
386
|
+
declare const Badge: react54.ForwardRefExoticComponent<Props$6 & react54.RefAttributes<HTMLDivElement>>;
|
|
387
387
|
//#endregion
|
|
388
388
|
//#region src/utils/breakpoints.d.ts
|
|
389
389
|
declare const breakpoints: {
|
|
@@ -441,39 +441,39 @@ interface Props$5 {
|
|
|
441
441
|
type?: 'round' | 'square';
|
|
442
442
|
logoTheme: LogoTheme;
|
|
443
443
|
}
|
|
444
|
-
declare const AppLogo:
|
|
444
|
+
declare const AppLogo: react90.MemoExoticComponent<({
|
|
445
445
|
type,
|
|
446
446
|
logoTheme,
|
|
447
447
|
...otherProps
|
|
448
|
-
}: Props$5) =>
|
|
448
|
+
}: Props$5) => react90.JSX.Element>;
|
|
449
449
|
//#endregion
|
|
450
450
|
//#region src/extensions/app-store-button/app-store-button.d.ts
|
|
451
451
|
type Props$4 = {
|
|
452
452
|
store: 'app-store' | 'google-play';
|
|
453
453
|
};
|
|
454
|
-
declare const AppStoreButton:
|
|
454
|
+
declare const AppStoreButton: react48.MemoExoticComponent<({
|
|
455
455
|
store
|
|
456
|
-
}: Props$4) =>
|
|
456
|
+
}: Props$4) => react48.JSX.Element>;
|
|
457
457
|
//#endregion
|
|
458
458
|
//#region src/extensions/brand-icon/brand-icon.d.ts
|
|
459
459
|
interface Props$3 extends SVGProps<SVGSVGElement> {
|
|
460
460
|
brand: 'apple' | 'google' | 'android';
|
|
461
461
|
ref?: Ref<SVGSVGElement>;
|
|
462
462
|
}
|
|
463
|
-
declare const BrandIcon:
|
|
463
|
+
declare const BrandIcon: react52.MemoExoticComponent<({
|
|
464
464
|
brand,
|
|
465
465
|
...svgProps
|
|
466
|
-
}: Props$3) =>
|
|
466
|
+
}: Props$3) => react52.JSX.Element>;
|
|
467
467
|
//#endregion
|
|
468
468
|
//#region src/extensions/sns-icon/sns-icon.d.ts
|
|
469
469
|
interface Props$2 extends React.SVGProps<SVGSVGElement> {
|
|
470
470
|
social: 'instagram' | 'x' | 'facebook' | 'youtube';
|
|
471
471
|
ref?: Ref<SVGSVGElement>;
|
|
472
472
|
}
|
|
473
|
-
declare const SNSIcon:
|
|
473
|
+
declare const SNSIcon: react95.MemoExoticComponent<({
|
|
474
474
|
social,
|
|
475
475
|
...svgProps
|
|
476
|
-
}: Props$2) =>
|
|
476
|
+
}: Props$2) => react95.JSX.Element>;
|
|
477
477
|
//#endregion
|
|
478
478
|
//#region src/extensions/dropdown/dropdown.types.d.ts
|
|
479
479
|
type DropdownMenuItemRef = {
|
|
@@ -533,6 +533,7 @@ declare const Dropdown: {
|
|
|
533
533
|
onClick?: (e: react27.MouseEvent<HTMLDivElement>, params: {
|
|
534
534
|
openDropdown: () => void;
|
|
535
535
|
}) => void;
|
|
536
|
+
zIndex?: number;
|
|
536
537
|
} & {
|
|
537
538
|
ref?: react27.Ref<DropdownMenuItemRef>;
|
|
538
539
|
}) => JSX.Element;
|
|
@@ -558,13 +559,13 @@ declare const Dropdown: {
|
|
|
558
559
|
};
|
|
559
560
|
//#endregion
|
|
560
561
|
//#region src/extensions/menu-item/menu-item.d.ts
|
|
561
|
-
declare const MenuItem:
|
|
562
|
+
declare const MenuItem: react56.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & MotionProps & {
|
|
562
563
|
isLoading?: boolean;
|
|
563
564
|
isCurrent?: boolean;
|
|
564
565
|
icon?: React.ReactNode;
|
|
565
566
|
} & {
|
|
566
|
-
children?:
|
|
567
|
-
} &
|
|
567
|
+
children?: react56.ReactNode | undefined;
|
|
568
|
+
} & react56.RefAttributes<HTMLDivElement>>;
|
|
568
569
|
//# sourceMappingURL=menu-item.d.ts.map
|
|
569
570
|
//#endregion
|
|
570
571
|
//#region src/extensions/app-header/app-header.types.d.ts
|
|
@@ -607,9 +608,9 @@ type Props$1 = {
|
|
|
607
608
|
setTheme: ReturnType<typeof useColorScheme>['setTheme'];
|
|
608
609
|
}) => void;
|
|
609
610
|
};
|
|
610
|
-
declare const ColorSchemeToggle:
|
|
611
|
+
declare const ColorSchemeToggle: react50.MemoExoticComponent<({
|
|
611
612
|
onToggle
|
|
612
|
-
}: Props$1) =>
|
|
613
|
+
}: Props$1) => react50.JSX.Element>;
|
|
613
614
|
//#endregion
|
|
614
615
|
//#region src/extensions/full-screen-modal/full-screen-modal.d.ts
|
|
615
616
|
type Props = PropsWithChildren<{
|
|
@@ -617,12 +618,12 @@ type Props = PropsWithChildren<{
|
|
|
617
618
|
onClose: () => void;
|
|
618
619
|
zIndex?: number;
|
|
619
620
|
}>;
|
|
620
|
-
declare const FullScreenModal:
|
|
621
|
+
declare const FullScreenModal: react46.MemoExoticComponent<({
|
|
621
622
|
visible,
|
|
622
623
|
onClose,
|
|
623
624
|
children,
|
|
624
625
|
zIndex
|
|
625
|
-
}: Props) =>
|
|
626
|
+
}: Props) => react46.JSX.Element>;
|
|
626
627
|
//#endregion
|
|
627
628
|
//#region src/extensions/accordion/accordion.d.ts
|
|
628
629
|
type AccordionProps<ItemT> = {
|
|
@@ -642,7 +643,7 @@ declare const Accordion: <ItemT extends {
|
|
|
642
643
|
renderTrigger,
|
|
643
644
|
renderExpanded,
|
|
644
645
|
customized
|
|
645
|
-
}: AccordionProps<ItemT>) =>
|
|
646
|
+
}: AccordionProps<ItemT>) => react59.JSX.Element;
|
|
646
647
|
//# sourceMappingURL=accordion.d.ts.map
|
|
647
648
|
//#endregion
|
|
648
649
|
//#region src/extensions/index.d.ts
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/tokens/tokens.types.ts","../src/tokens/tokens.ts","../src/contexts/ColorSchemeProvider.tsx","../src/GlobalStyle.tsx","../src/base/button/button.types.ts","../src/base/button/button.tsx","../src/base/checkbox/checkbox.tsx","../src/base/icon-button/icon-button.tsx","../src/base/icon-button/icon-button.types.ts","../src/base/modal/modal.tsx","../src/base/spinner/spinner.types.ts","../src/base/spinner/spinner.tsx","../src/base/text/text.styled.ts","../src/base/text/text.tsx","../src/base/text-area/text-area.types.ts","../src/base/text-area/text-area.tsx","../src/base/text-input/text-input.tsx","../src/base/text-input/text-input.types.ts","../src/base/toast/toast.types.ts","../src/base/toast/toast.tsx","../src/base/switch/switch.tsx","../src/base/badge/badge.tsx","../src/utils/breakpoints.ts","../src/utils/media.ts","../src/utils/with-id.ts","../src/extensions/grid-card-item/grid-card-item.tsx","../src/extensions/error-ui/index.ts","../src/extensions/app-logo/app-logo.tsx","../src/extensions/app-store-button/app-store-button.tsx","../src/extensions/brand-icon/brand-icon.tsx","../src/extensions/sns-icon/sns-icon.tsx","../src/extensions/dropdown/dropdown.types.ts","../src/extensions/dropdown/dropdown.tsx","../src/extensions/dropdown/index.ts","../src/extensions/menu-item/menu-item.tsx","../src/extensions/app-header/app-header.types.ts","../src/extensions/app-header/app-header.tsx","../src/extensions/app-header/app-header.hooks.ts","../src/extensions/app-header/index.ts","../src/extensions/color-scheme-toggle/color-scheme-toggle.tsx","../src/extensions/full-screen-modal/full-screen-modal.tsx","../src/extensions/accordion/accordion.tsx","../src/extensions/index.ts","../src/constants.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIY,iBAAA,UAA2B;KAC3B,qBAAA,UAA+B;KAC/B,sBAAA,UAAgC;;;;cCA/B,QAAQ;cACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MDHD,SAAA,UAAiB,EAAA,gDAA2B;MAC5C,SAAA,UAAqB,EAAA,gDAA+B;IACpD,CAAA;;;;MCAC,SAA6C,UAArC,EAAA,6CAAqC;IAC7C,CAAA;IACA,SAAA,KAAA,EAA8C;MAC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UClC1C,OAAA,SAAc,SAAS;;QAEzB,IAAI;;cAGC,WAA+C,OAAA,CAAtC;;;GAAiC,YAAK,OAAA,CAAA,GAAA,CAAA;;;UCJlD,OAAA,SAAc,KAAA,CAAM,SAAS;;QAE/B,IAAI;;cAGC,SAA8C,OAAA,CAAvC;;;GAAkC,YAAK,OAAA,CAAA,GAAA,CAAA;;;KCZ/C,mBAAA;;;;;;KC0BP,QAAA;;;;;KAMA,qBAAA;;;aAGQ;;UAEH;;;;;eAKK,UAAU;;;KAIb,iBAAA,GAAoB;;IACV;;IAA8C;;;cCzCvD;;YAKZ,eAAA,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/tokens/tokens.types.ts","../src/tokens/tokens.ts","../src/contexts/ColorSchemeProvider.tsx","../src/GlobalStyle.tsx","../src/base/button/button.types.ts","../src/base/button/button.tsx","../src/base/checkbox/checkbox.tsx","../src/base/icon-button/icon-button.tsx","../src/base/icon-button/icon-button.types.ts","../src/base/modal/modal.tsx","../src/base/spinner/spinner.types.ts","../src/base/spinner/spinner.tsx","../src/base/text/text.styled.ts","../src/base/text/text.tsx","../src/base/text-area/text-area.types.ts","../src/base/text-area/text-area.tsx","../src/base/text-input/text-input.tsx","../src/base/text-input/text-input.types.ts","../src/base/toast/toast.types.ts","../src/base/toast/toast.tsx","../src/base/switch/switch.tsx","../src/base/badge/badge.tsx","../src/utils/breakpoints.ts","../src/utils/media.ts","../src/utils/with-id.ts","../src/extensions/grid-card-item/grid-card-item.tsx","../src/extensions/error-ui/index.ts","../src/extensions/app-logo/app-logo.tsx","../src/extensions/app-store-button/app-store-button.tsx","../src/extensions/brand-icon/brand-icon.tsx","../src/extensions/sns-icon/sns-icon.tsx","../src/extensions/dropdown/dropdown.types.ts","../src/extensions/dropdown/dropdown.tsx","../src/extensions/dropdown/index.ts","../src/extensions/menu-item/menu-item.tsx","../src/extensions/app-header/app-header.types.ts","../src/extensions/app-header/app-header.tsx","../src/extensions/app-header/app-header.hooks.ts","../src/extensions/app-header/index.ts","../src/extensions/color-scheme-toggle/color-scheme-toggle.tsx","../src/extensions/full-screen-modal/full-screen-modal.tsx","../src/extensions/accordion/accordion.tsx","../src/extensions/index.ts","../src/constants.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIY,iBAAA,UAA2B;KAC3B,qBAAA,UAA+B;KAC/B,sBAAA,UAAgC;;;;cCA/B,QAAQ;cACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MDHD,SAAA,UAAiB,EAAA,gDAA2B;MAC5C,SAAA,UAAqB,EAAA,gDAA+B;IACpD,CAAA;;;;MCAC,SAA6C,UAArC,EAAA,6CAAqC;IAC7C,CAAA;IACA,SAAA,KAAA,EAA8C;MAC9C,SAAmC,QAAA,EAAA,2CAAA;;;;ICKpC,SAAA,OAAW,EAAA;MAEA,SAAA,QAAA,EAAA,6CAAA;MAAA,SAAA,UAAA,EAAA,+CAAA;MAAQ,SAAA,UAAA,EAAA,+CAAA;IAAuB,CAAA;IAAsB,SAAA,KAAA,EAAA;MAI/D,SAGZ,QAAA,EAH4B,2CAG5B;MACY,SAGZ,UAH2B,EAAA,6CAG3B;MAEY,SAOZ,UAPyC,EAAA,6CAAK;IAalC,CAAA;IASA,SAAA,QAoBZ,EAAA;MAEI,SAAA,QAAiB,EAAA,8CAAA;MAAA,SAAA,UAAA,EAAA,gDAAA;MACb,SAAA,UAAA,EAAA,gDAAA;IACW,CAAA;IAAW,SAAA,KAAA,EAAA;MAuBzB,SAAA,QAoDL,EAAA,2CAAA;MAAA,SAAA,UAAA,EAAA,6CAAA;MApD4B,SAAA,UAAA,EAAA,6CAAA;IAAA,CAAA;IAAA,SAAA,KAAA,EAAA;MAIO,SAAA,QAAA,EAAA,2CAAA;MAAjC,SAAA,UAAA,EAAA,6CAAA;MAA4D,SAAA,UAAA,EAAA,6CAAA;IAgD9D,CAAA;IAIY,SAAA,QAGZ,EAAA;;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ACrB;;;;;;iBCXG,wBAAA,CAAA;mBAAwB;;iBA2ExB,mBAAA,CAAA;;;;;;;cC5EH;mCAIZ;;;;;;;;;;;;KCoBI,OAAA;;cAC6B,kBAAkB;;;cAGvC,mBAA6C,OAAA,CAA5B;;GAAuB,YAAK,OAAA,CAAA,GAAA,CAAA;;;KCDrD,KAAA,GAAQ;;;;;cAMA,iBAAqE,OAAA,CAAtD;;;;;GAAiD,UAAK,OAAA,CAAA,GAAA,CAAA;;;KCGtE;QACJ;wBACgB,UAAU;;;;kBACmB;QAAY;eAClD;;cAGF;;;;;;;GAKV,eAAe,WAAM,OAAA,CAAA,GAAA,CAAA;;;;cC5CX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A1CHb,CAAA;;;c2CJa,qBAAA"}
|
package/dist/index.js
CHANGED
|
@@ -317,7 +317,7 @@ ${$t(r)} }`}}),C(`div`,{className:o,children:e})]})};var an=rn;const on=()=>{let
|
|
|
317
317
|
object-position: 50%;
|
|
318
318
|
border-radius: 12px;
|
|
319
319
|
background-color: ${k.color.background[3]};
|
|
320
|
-
`,TV=Symbol.for(`@ts-pattern/matcher`),EV=Symbol.for(`@ts-pattern/isVariadic`),DV=`@ts-pattern/anonymous-select-key`,OV=e=>!!(e&&typeof e==`object`),kV=e=>e&&!!e[TV],q=(e,t,n)=>{if(kV(e)){let r=e[TV](),{matched:i,selections:a}=r.match(t);return i&&a&&Object.keys(a).forEach(e=>n(e,a[e])),i}if(OV(e)){if(!OV(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let r=[],i=[],a=[];for(let t of e.keys()){let n=e[t];kV(n)&&n[EV]?a.push(n):a.length?i.push(n):r.push(n)}if(a.length){if(a.length>1)throw Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<r.length+i.length)return!1;let e=t.slice(0,r.length),o=i.length===0?[]:t.slice(-i.length),s=t.slice(r.length,i.length===0?1/0:-i.length);return r.every((t,r)=>q(t,e[r],n))&&i.every((e,t)=>q(e,o[t],n))&&(a.length===0||q(a[0],s,n))}return e.length===t.length&&e.every((e,r)=>q(e,t[r],n))}return Reflect.ownKeys(e).every(r=>{let i=e[r];return(r in t||kV(a=i)&&a[TV]().matcherType===`optional`)&&q(i,t[r],n);var a})}return Object.is(t,e)},AV=e=>{var t,n,r;return OV(e)?kV(e)?(t=(n=(r=e[TV]()).getSelectionKeys)?.call(r))??[]:Array.isArray(e)?jV(e,AV):jV(Object.values(e),AV):[]},jV=(e,t)=>e.reduce((e,n)=>e.concat(t(n)),[]);function J(e){return Object.assign(e,{optional:()=>MV(e),and:t=>Y(e,t),or:t=>NV(e,t),select:t=>t===void 0?PV(e):PV(t,e)})}function MV(e){return J({[TV]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return t===void 0?(AV(e).forEach(e=>r(e,void 0)),{matched:!0,selections:n}):{matched:q(e,t,r),selections:n}},getSelectionKeys:()=>AV(e),matcherType:`optional`})})}function Y(...e){return J({[TV]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return{matched:e.every(e=>q(e,t,r)),selections:n}},getSelectionKeys:()=>jV(e,AV),matcherType:`and`})})}function NV(...e){return J({[TV]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return jV(e,AV).forEach(e=>r(e,void 0)),{matched:e.some(e=>q(e,t,r)),selections:n}},getSelectionKeys:()=>jV(e,AV),matcherType:`or`})})}function X(e){return{[TV]:()=>({match:t=>({matched:!!e(t)})})}}function PV(...e){let t=typeof e[0]==`string`?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]==`string`?void 0:e[0];return J({[TV]:()=>({match:e=>{let r={[t??DV]:e};return{matched:n===void 0||q(n,e,(e,t)=>{r[e]=t}),selections:r}},getSelectionKeys:()=>[t??DV].concat(n===void 0?[]:AV(n))})})}function
|
|
320
|
+
`,TV=Symbol.for(`@ts-pattern/matcher`),EV=Symbol.for(`@ts-pattern/isVariadic`),DV=`@ts-pattern/anonymous-select-key`,OV=e=>!!(e&&typeof e==`object`),kV=e=>e&&!!e[TV],q=(e,t,n)=>{if(kV(e)){let r=e[TV](),{matched:i,selections:a}=r.match(t);return i&&a&&Object.keys(a).forEach(e=>n(e,a[e])),i}if(OV(e)){if(!OV(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let r=[],i=[],a=[];for(let t of e.keys()){let n=e[t];kV(n)&&n[EV]?a.push(n):a.length?i.push(n):r.push(n)}if(a.length){if(a.length>1)throw Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<r.length+i.length)return!1;let e=t.slice(0,r.length),o=i.length===0?[]:t.slice(-i.length),s=t.slice(r.length,i.length===0?1/0:-i.length);return r.every((t,r)=>q(t,e[r],n))&&i.every((e,t)=>q(e,o[t],n))&&(a.length===0||q(a[0],s,n))}return e.length===t.length&&e.every((e,r)=>q(e,t[r],n))}return Reflect.ownKeys(e).every(r=>{let i=e[r];return(r in t||kV(a=i)&&a[TV]().matcherType===`optional`)&&q(i,t[r],n);var a})}return Object.is(t,e)},AV=e=>{var t,n,r;return OV(e)?kV(e)?(t=(n=(r=e[TV]()).getSelectionKeys)?.call(r))??[]:Array.isArray(e)?jV(e,AV):jV(Object.values(e),AV):[]},jV=(e,t)=>e.reduce((e,n)=>e.concat(t(n)),[]);function J(e){return Object.assign(e,{optional:()=>MV(e),and:t=>Y(e,t),or:t=>NV(e,t),select:t=>t===void 0?PV(e):PV(t,e)})}function MV(e){return J({[TV]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return t===void 0?(AV(e).forEach(e=>r(e,void 0)),{matched:!0,selections:n}):{matched:q(e,t,r),selections:n}},getSelectionKeys:()=>AV(e),matcherType:`optional`})})}function Y(...e){return J({[TV]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return{matched:e.every(e=>q(e,t,r)),selections:n}},getSelectionKeys:()=>jV(e,AV),matcherType:`and`})})}function NV(...e){return J({[TV]:()=>({match:t=>{let n={},r=(e,t)=>{n[e]=t};return jV(e,AV).forEach(e=>r(e,void 0)),{matched:e.some(e=>q(e,t,r)),selections:n}},getSelectionKeys:()=>jV(e,AV),matcherType:`or`})})}function X(e){return{[TV]:()=>({match:t=>({matched:!!e(t)})})}}function PV(...e){let t=typeof e[0]==`string`?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]==`string`?void 0:e[0];return J({[TV]:()=>({match:e=>{let r={[t??DV]:e};return{matched:n===void 0||q(n,e,(e,t)=>{r[e]=t}),selections:r}},getSelectionKeys:()=>[t??DV].concat(n===void 0?[]:AV(n))})})}function FV(e){return typeof e==`number`}function IV(e){return typeof e==`string`}function LV(e){return typeof e==`bigint`}const RV=J(X(function(e){return!0})),zV=RV,BV=e=>Object.assign(J(e),{startsWith:t=>{return BV(Y(e,(n=t,X(e=>IV(e)&&e.startsWith(n)))));var n},endsWith:t=>{return BV(Y(e,(n=t,X(e=>IV(e)&&e.endsWith(n)))));var n},minLength:t=>BV(Y(e,(e=>X(t=>IV(t)&&t.length>=e))(t))),length:t=>BV(Y(e,(e=>X(t=>IV(t)&&t.length===e))(t))),maxLength:t=>BV(Y(e,(e=>X(t=>IV(t)&&t.length<=e))(t))),includes:t=>{return BV(Y(e,(n=t,X(e=>IV(e)&&e.includes(n)))));var n},regex:t=>{return BV(Y(e,(n=t,X(e=>IV(e)&&!!e.match(n)))));var n}}),VV=BV(X(IV)),Z=e=>Object.assign(J(e),{between:(t,n)=>Z(Y(e,((e,t)=>X(n=>FV(n)&&e<=n&&t>=n))(t,n))),lt:t=>Z(Y(e,(e=>X(t=>FV(t)&&t<e))(t))),gt:t=>Z(Y(e,(e=>X(t=>FV(t)&&t>e))(t))),lte:t=>Z(Y(e,(e=>X(t=>FV(t)&&t<=e))(t))),gte:t=>Z(Y(e,(e=>X(t=>FV(t)&&t>=e))(t))),int:()=>Z(Y(e,X(e=>FV(e)&&Number.isInteger(e)))),finite:()=>Z(Y(e,X(e=>FV(e)&&Number.isFinite(e)))),positive:()=>Z(Y(e,X(e=>FV(e)&&e>0))),negative:()=>Z(Y(e,X(e=>FV(e)&&e<0)))}),HV=Z(X(FV)),UV=e=>Object.assign(J(e),{between:(t,n)=>UV(Y(e,((e,t)=>X(n=>LV(n)&&e<=n&&t>=n))(t,n))),lt:t=>UV(Y(e,(e=>X(t=>LV(t)&&t<e))(t))),gt:t=>UV(Y(e,(e=>X(t=>LV(t)&&t>e))(t))),lte:t=>UV(Y(e,(e=>X(t=>LV(t)&&t<=e))(t))),gte:t=>UV(Y(e,(e=>X(t=>LV(t)&&t>=e))(t))),positive:()=>UV(Y(e,X(e=>LV(e)&&e>0))),negative:()=>UV(Y(e,X(e=>LV(e)&&e<0)))}),WV=UV(X(LV)),GV=J(X(function(e){return typeof e==`boolean`})),KV=J(X(function(e){return typeof e==`symbol`})),qV=J(X(function(e){return e==null})),JV=J(X(function(e){return e!=null}));var YV=class extends Error{constructor(e){let t;try{t=JSON.stringify(e)}catch{t=e}super(`Pattern matching error: no pattern matches value ${t}`),this.input=void 0,this.input=e}};const XV={matched:!1,value:void 0};function ZV(e){return new QV(e,XV)}var QV=class e{constructor(e,t){this.input=void 0,this.state=void 0,this.input=e,this.state=t}with(...t){if(this.state.matched)return this;let n=t[t.length-1],r=[t[0]],i;t.length===3&&typeof t[1]==`function`?i=t[1]:t.length>2&&r.push(...t.slice(1,t.length-1));let a=!1,o={},s=(e,t)=>{a=!0,o[e]=t},c=!r.some(e=>q(e,this.input,s))||i&&!i(this.input)?XV:{matched:!0,value:n(a?DV in o?o[DV]:o:this.input,this.input)};return new e(this.input,c)}when(t,n){if(this.state.matched)return this;let r=!!t(this.input);return new e(this.input,r?{matched:!0,value:n(this.input,this.input)}:XV)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(e=$V){return this.state.matched?this.state.value:e(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}};function $V(e){throw new YV(e)}const eH=D.div`
|
|
321
321
|
display: flex;
|
|
322
322
|
flex-direction: column;
|
|
323
323
|
`,tH=D.div`
|
|
@@ -682,7 +682,7 @@ ${$t(r)} }`}}),C(`div`,{className:o,children:e})]})};var an=rn;const on=()=>{let
|
|
|
682
682
|
width: 120px;
|
|
683
683
|
height: 24px;
|
|
684
684
|
`)}
|
|
685
|
-
`,yW=s((e,t)=>C(_W,{ref:t,...e})),bW=HB.create(yW),xW=s(({children:e,isLoading:t,isCurrent:n=!1,icon:r,...i},a)=>t?C(vW,{}):w(bW,{ref:a,$isHighlighted:n,...i,children:[r,typeof e==`string`?C(gW,{as:`span`,children:e}):e]}));xW.displayName=`MenuItem`;const SW=8,CW=s(function({isCurrent:e,icon:t,title:n,dropdownData:r,renderDropdownItem:i,backdrop:a=!1,absolute:o=!1,isLoading:s,onClose:c,onMouseEnter:l,onMouseLeave:d,onClick:p},
|
|
685
|
+
`,yW=s((e,t)=>C(_W,{ref:t,...e})),bW=HB.create(yW),xW=s(({children:e,isLoading:t,isCurrent:n=!1,icon:r,...i},a)=>t?C(vW,{}):w(bW,{ref:a,$isHighlighted:n,...i,children:[r,typeof e==`string`?C(gW,{as:`span`,children:e}):e]}));xW.displayName=`MenuItem`;const SW=8,CW=s(function({isCurrent:e,icon:t,title:n,dropdownData:r,renderDropdownItem:i,backdrop:a=!1,absolute:o=!1,isLoading:s,onClose:c,onMouseEnter:l,onMouseLeave:d,onClick:p,zIndex:h},g){let[_,v]=b(!1),x=y(null),T=r.length>0||s,E=u(()=>{if(o){let e=x.current?.getBoundingClientRect();if(!e)return;let t=(e,t)=>C(`div`,{onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:i(e)},t.toString());sW.open(({close:n,isOpen:i})=>i&&C(HU,{edge:`left`,backdrop:a,preventScroll:!1,isOpen:i,animate:a,onClose:n,position:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},children:r.map(t)}))}else requestAnimationFrame(()=>{if(T){let e=x.current?.getBoundingClientRect();if(!e)return;v(!0)}})},[o,r,i,a,T]),D=u(e=>{v(!1)},[]),ee=u(()=>{c?.(),v(!1),sW.closeAll()},[c]);m(g,()=>({close:()=>{v(!1),sW.closeAll()}}),[]);let te=u(e=>{e.stopPropagation(),p?.(e,{openDropdown:E})},[p,E]),ne=u(e=>{l?.(e,{openDropdown:E})},[l,E]),re=u(e=>{d?.(e,{closeDropdown:()=>D(e)})},[D,d]);return f(()=>{if(!x.current)return;let e=e=>{let t=e.target;if(!t||!t.isConnected)return;let n=x.current&&!x.current.contains(t);n&&v(!1)};return window.addEventListener(`mousedown`,e,{}),()=>window.removeEventListener(`mousedown`,e,{})},[]),C(S,{children:w(xW,{ref:x,isCurrent:e,icon:t,onClick:te,onMouseEnter:ne,onMouseLeave:re,style:{position:`relative`},children:[n,!o&&_&&T&&w(`div`,{style:{position:`absolute`,top:`100%`,minWidth:`100%`,width:`auto`,left:0},children:[C(`div`,{style:{height:`${SW}px`,background:`transparent`,cursor:`default`}}),C(HU,{edge:`left`,backdrop:a,preventScroll:!1,isOpen:!0,animate:a,isLoading:s,onClose:ee,zIndex:h,children:r.map((e,t)=>C(`div`,{onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:i(e)},t.toString()))})]})]})})});CW.displayName=`Dropdown.MenuItem`;const wW=D.div`
|
|
686
686
|
padding-left: 1rem;
|
|
687
687
|
padding-right: 1rem;
|
|
688
688
|
padding-top: 0.6rem;
|