@luxonis/common-fe-components 1.13.0 → 1.15.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/components/custom/BadgeButton.d.ts +11 -0
- package/dist/components/custom/BadgeButton.d.ts.map +1 -0
- package/dist/components/custom/BadgeButton.js +12 -0
- package/dist/components/custom/BadgeButton.js.map +1 -0
- package/dist/components/custom/DropdownMenu.d.ts +14 -14
- package/dist/components/custom/Grid.d.ts +1 -1
- package/dist/components/custom/KpiDisplay.d.ts +1 -0
- package/dist/components/custom/KpiDisplay.d.ts.map +1 -1
- package/dist/components/custom/KpiDisplay.js +2 -2
- package/dist/components/custom/KpiDisplay.js.map +1 -1
- package/dist/components/custom/PasswordInput.d.ts +1 -0
- package/dist/components/custom/PasswordInput.d.ts.map +1 -1
- package/dist/components/custom/PasswordInput.js +4 -3
- package/dist/components/custom/PasswordInput.js.map +1 -1
- package/dist/components/custom/RadioGroup.d.ts +12 -12
- package/dist/components/custom/Slider.d.ts +22 -20
- package/dist/components/custom/Slider.d.ts.map +1 -1
- package/dist/components/custom/Stepper.d.ts +1 -0
- package/dist/components/custom/Stepper.d.ts.map +1 -1
- package/dist/components/custom/Stepper.js +1 -1
- package/dist/components/custom/Stepper.js.map +1 -1
- package/dist/components/custom/devices/devices-constants.d.ts +13 -0
- package/dist/components/custom/devices/devices-constants.d.ts.map +1 -0
- package/dist/components/custom/devices/devices-constants.js +27 -0
- package/dist/components/custom/devices/devices-constants.js.map +1 -0
- package/dist/components/custom/devices/devices-family.d.ts +11 -0
- package/dist/components/custom/devices/devices-family.d.ts.map +1 -0
- package/dist/components/custom/devices/devices-family.js +26 -0
- package/dist/components/custom/devices/devices-family.js.map +1 -0
- package/dist/components/custom/devices/devices-list.d.ts +17 -0
- package/dist/components/custom/devices/devices-list.d.ts.map +1 -0
- package/dist/components/custom/devices/devices-list.js +71 -0
- package/dist/components/custom/devices/devices-list.js.map +1 -0
- package/dist/components/custom/devices/devices.d.ts +12 -0
- package/dist/components/custom/devices/devices.d.ts.map +1 -0
- package/dist/components/custom/devices/devices.js +82 -0
- package/dist/components/custom/devices/devices.js.map +1 -0
- package/dist/components/custom/devices/index.d.ts +5 -0
- package/dist/components/custom/devices/index.d.ts.map +1 -0
- package/dist/components/custom/devices/index.js +5 -0
- package/dist/components/custom/devices/index.js.map +1 -0
- package/dist/components/custom/index.d.ts +2 -2
- package/dist/components/custom/index.d.ts.map +1 -1
- package/dist/components/custom/index.js +4 -2
- package/dist/components/custom/index.js.map +1 -1
- package/dist/components/custom/oak4/Oak4DeviceCard.d.ts +3 -3
- package/dist/components/custom/oak4/Oak4DeviceCard.d.ts.map +1 -1
- package/dist/components/custom/oak4/Oak4DeviceCard.js +4 -3
- package/dist/components/custom/oak4/Oak4DeviceCard.js.map +1 -1
- package/dist/components/custom/oak4/device-info.d.ts +0 -10
- package/dist/components/custom/oak4/device-info.d.ts.map +1 -1
- package/dist/components/custom/oak4/device-info.js +99 -90
- package/dist/components/custom/oak4/device-info.js.map +1 -1
- package/dist/components/custom/oak4/device-model.d.ts +0 -5
- package/dist/components/custom/oak4/device-model.d.ts.map +1 -1
- package/dist/components/custom/oak4/device-model.js +7 -4
- package/dist/components/custom/oak4/device-model.js.map +1 -1
- package/dist/components/shadow-panda/_Command.d.ts +2 -2
- package/dist/components/shadow-panda/_Slider.d.ts +1 -0
- package/dist/components/shadow-panda/_Slider.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Slider.js +9 -2
- package/dist/components/shadow-panda/_Slider.js.map +1 -1
- package/dist/icons/react-icons.d.ts +4 -2
- package/dist/icons/react-icons.d.ts.map +1 -1
- package/dist/icons/react-icons.js +4 -2
- package/dist/icons/react-icons.js.map +1 -1
- package/dist/index.css +3 -0
- package/dist/panda.buildinfo.json +18 -11
- package/dist/panda.css +38 -12
- package/dist/panda.d.ts.map +1 -1
- package/dist/panda.js +4 -0
- package/dist/panda.js.map +1 -1
- package/dist/styled-system/tokens/index.mjs +8 -0
- package/dist/styled-system/tokens/tokens.d.mts +2 -2
- package/package.json +3 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconType } from 'react-icons';
|
|
2
|
+
import { type BadgeProps } from './Badge.js';
|
|
3
|
+
type BadgeLineProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
variant?: BadgeProps['variant'];
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
icon?: IconType | null;
|
|
8
|
+
};
|
|
9
|
+
export declare const BadgeButton: (props: BadgeLineProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=BadgeButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeButton.d.ts","sourceRoot":"","sources":["../../../src/components/custom/BadgeButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO5C,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAEpD,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,cAAc,4CAuBhD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { uuidv4 } from '@luxonis/common-fe-utils';
|
|
3
|
+
import { css } from '../../styled-system/css/css.mjs';
|
|
4
|
+
import { SubLabel } from './Text.js';
|
|
5
|
+
import { Flex } from './Flex.js';
|
|
6
|
+
import { Button } from './Button.js';
|
|
7
|
+
import { Badge } from './Badge.js';
|
|
8
|
+
export const BadgeButton = (props) => {
|
|
9
|
+
const { label, variant, onClick, icon } = props;
|
|
10
|
+
return (_jsx(Badge, { label: _jsxs(Flex, { align: "center", gap: "smaller.xs", className: css({ py: '1' }), children: [_jsx(SubLabel, { text: label, className: css({ paddingLeft: '1' }) }), _jsx(Button, { onClick: onClick, variant: "ghost", icon: icon, size: "sm", colorVariant: "white", width: "icon.xs", height: "icon.xs" })] }), variant: variant }, `${uuidv4()}-badge-button`));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=BadgeButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadgeButton.js","sourceRoot":"","sources":["../../../src/components/custom/BadgeButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAmB,MAAM,YAAY,CAAC;AASpD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAqB,EAAE,EAAE;IACnD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEhD,OAAO,CACL,KAAC,KAAK,IAEJ,KAAK,EACH,MAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAC,YAAY,EAAC,SAAS,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,aAC/D,KAAC,QAAQ,IAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,GAAI,EAC/D,KAAC,MAAM,IACL,OAAO,EAAE,OAAO,EAChB,OAAO,EAAC,OAAO,EACf,IAAI,EAAE,IAAI,EACV,IAAI,EAAC,IAAI,EACT,YAAY,EAAC,OAAO,EACpB,KAAK,EAAC,SAAS,EACf,MAAM,EAAC,SAAS,GAChB,IACG,EAET,OAAO,EAAE,OAAO,IAfX,GAAG,MAAM,EAAE,eAAe,CAgB/B,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -17,6 +17,7 @@ export declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<{
|
|
|
17
17
|
slot?: string | undefined;
|
|
18
18
|
style?: React.CSSProperties | undefined;
|
|
19
19
|
title?: string | undefined;
|
|
20
|
+
key?: React.Key | null | undefined;
|
|
20
21
|
defaultChecked?: boolean | undefined;
|
|
21
22
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
22
23
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -275,21 +276,11 @@ export declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<{
|
|
|
275
276
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
276
277
|
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
277
278
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
278
|
-
asChild?: boolean | undefined;
|
|
279
|
-
key?: React.Key | null | undefined;
|
|
280
279
|
sticky?: ("partial" | "always") | undefined;
|
|
281
|
-
align?: ("
|
|
280
|
+
align?: ("end" | "start" | "center") | undefined;
|
|
282
281
|
loop?: boolean | undefined;
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
alignOffset?: number | undefined;
|
|
286
|
-
arrowPadding?: number | undefined;
|
|
287
|
-
avoidCollisions?: boolean | undefined;
|
|
288
|
-
collisionBoundary?: ((Element | null) | (Element | null)[]) | undefined;
|
|
289
|
-
collisionPadding?: (number | Partial<Record<"bottom" | "left" | "right" | "top", number>>) | undefined;
|
|
290
|
-
hideWhenDetached?: boolean | undefined;
|
|
291
|
-
updatePositionStrategy?: ("optimized" | "always") | undefined;
|
|
292
|
-
onCloseAutoFocus?: ((event: Event) => void) | undefined;
|
|
282
|
+
asChild?: boolean | undefined;
|
|
283
|
+
forceMount?: true | undefined;
|
|
293
284
|
onEscapeKeyDown?: ((event: KeyboardEvent) => void) | undefined;
|
|
294
285
|
onPointerDownOutside?: ((event: CustomEvent<{
|
|
295
286
|
originalEvent: PointerEvent;
|
|
@@ -302,7 +293,16 @@ export declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<{
|
|
|
302
293
|
}> | CustomEvent<{
|
|
303
294
|
originalEvent: FocusEvent;
|
|
304
295
|
}>) => void) | undefined;
|
|
305
|
-
|
|
296
|
+
onCloseAutoFocus?: ((event: Event) => void) | undefined;
|
|
297
|
+
side?: ("top" | "left" | "right" | "bottom") | undefined;
|
|
298
|
+
sideOffset?: number | undefined;
|
|
299
|
+
alignOffset?: number | undefined;
|
|
300
|
+
arrowPadding?: number | undefined;
|
|
301
|
+
avoidCollisions?: boolean | undefined;
|
|
302
|
+
collisionBoundary?: ((Element | null) | (Element | null)[]) | undefined;
|
|
303
|
+
collisionPadding?: (number | Partial<Record<"top" | "left" | "right" | "bottom", number>>) | undefined;
|
|
304
|
+
hideWhenDetached?: boolean | undefined;
|
|
305
|
+
updatePositionStrategy?: ("optimized" | "always") | undefined;
|
|
306
306
|
htmlWidth?: (string | number) | undefined;
|
|
307
307
|
htmlHeight?: (string | number) | undefined;
|
|
308
308
|
htmlTranslate?: "yes" | "no" | undefined;
|
|
@@ -11,6 +11,6 @@ export type GridProps = _GridProps & {
|
|
|
11
11
|
itemWidth?: Token;
|
|
12
12
|
fixed?: boolean;
|
|
13
13
|
};
|
|
14
|
-
export declare const Grid: (props: GridProps) => number | true |
|
|
14
|
+
export declare const Grid: (props: GridProps) => number | true | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode>;
|
|
15
15
|
export declare const GridItem: (props: GridItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KpiDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/custom/KpiDisplay.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAEjD,KAAK,eAAe,GAAG,SAAS,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"KpiDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/custom/KpiDisplay.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAEjD,KAAK,eAAe,GAAG,SAAS,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,UAAU;YAAW,eAAe,GAAG,GAAG,CAAC,OAAO;;CASvD,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Header, Label } from './Text.js';
|
|
3
3
|
import { Card } from './Card.js';
|
|
4
4
|
const KpiDisplay = (props) => {
|
|
5
|
-
const { label, description, ...rest } = props;
|
|
6
|
-
return (_jsxs(Card, { minWidth: "container.xxs", ...rest, children: [_jsx(Label, { text: description }), _jsx(Header, { text: label })] }));
|
|
5
|
+
const { label, description, labelClassName, ...rest } = props;
|
|
6
|
+
return (_jsxs(Card, { minWidth: "container.xxs", ...rest, children: [_jsx(Label, { text: description, className: labelClassName }), _jsx(Header, { text: label })] }));
|
|
7
7
|
};
|
|
8
8
|
KpiDisplay.displayName = 'KpiDisplay';
|
|
9
9
|
export { KpiDisplay };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KpiDisplay.js","sourceRoot":"","sources":["../../../src/components/custom/KpiDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAkB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"KpiDisplay.js","sourceRoot":"","sources":["../../../src/components/custom/KpiDisplay.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAkB,MAAM,WAAW,CAAC;AAQjD,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAe,EAAE;IACzD,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE9D,OAAO,CACL,MAAC,IAAI,IAAC,QAAQ,EAAC,eAAe,KAAK,IAAI,aACrC,KAAC,KAAK,IAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,GAAI,EACvD,KAAC,MAAM,IAAC,IAAI,EAAE,KAAK,GAAI,IAClB,CACR,CAAC;AACJ,CAAC,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../src/components/custom/PasswordInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../src/components/custom/PasswordInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAIpD,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAC5C,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,aAAa,0GAgCzB,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { cx } from '../../styled-system/css/cx.mjs';
|
|
3
4
|
import { css } from '../../styled-system/css/css.mjs';
|
|
4
5
|
import { HideIcon, ShowIcon } from '../../icons/react-icons.js';
|
|
5
6
|
import { Input } from './Input.js';
|
|
6
7
|
import { Flex } from './Flex.js';
|
|
7
8
|
import { Button } from './Button.js';
|
|
8
9
|
export const PasswordInput = React.forwardRef((props, ref) => {
|
|
9
|
-
const { showPasswordButton = true, variant = 'current', ...inputProps } = props;
|
|
10
|
+
const { showPasswordButton = true, variant = 'current', fakePasswordInput = false, ...inputProps } = props;
|
|
10
11
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
11
|
-
return (_jsxs(Flex, { gap: "xs", children: [_jsx(Input, { ref: ref, placeholder: inputProps.placeholder, autoComplete: variant === 'new' ? 'new-password' : 'current-password', type: showPassword ? 'text' : 'password', wrapperProps: {
|
|
12
|
-
className: css({ width: 'full' }),
|
|
12
|
+
return (_jsxs(Flex, { gap: "xs", children: [_jsx(Input, { ref: ref, placeholder: inputProps.placeholder, autoComplete: variant === 'new' ? 'new-password' : 'current-password', type: showPassword || fakePasswordInput ? 'text' : 'password', wrapperProps: {
|
|
13
|
+
className: cx(css({ width: 'full' }), fakePasswordInput && !showPassword ? 'fake-password-input' : ''),
|
|
13
14
|
}, ...inputProps }), showPasswordButton && (_jsx(Button, { variant: "outline", colorVariant: "white", size: "icon", type: "button", icon: showPassword ? HideIcon : ShowIcon, onClick: () => setShowPassword(!showPassword), tabIndex: props.skipButtonInTabNavigation ? -1 : 0 }))] }));
|
|
14
15
|
});
|
|
15
16
|
//# sourceMappingURL=PasswordInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInput.js","sourceRoot":"","sources":["../../../src/components/custom/PasswordInput.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAmB,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"PasswordInput.js","sourceRoot":"","sources":["../../../src/components/custom/PasswordInput.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAmB,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AASrC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAC3C,CAAC,KAAyB,EAAE,GAAyC,EAAE,EAAE;IACvE,MAAM,EAAE,kBAAkB,GAAG,IAAI,EAAE,OAAO,GAAG,SAAS,EAAE,iBAAiB,GAAG,KAAK,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAE3G,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAU,KAAK,CAAC,CAAC;IAEvE,OAAO,CACL,MAAC,IAAI,IAAC,GAAG,EAAC,IAAI,aACZ,KAAC,KAAK,IACJ,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,UAAU,CAAC,WAAW,EACnC,YAAY,EAAE,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,kBAAkB,EACrE,IAAI,EAAE,YAAY,IAAI,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,EAC7D,YAAY,EAAE;oBACZ,SAAS,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,iBAAiB,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;iBACvG,KACG,UAAU,GACd,EACD,kBAAkB,IAAI,CACrB,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,YAAY,EAAC,OAAO,EACpB,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EACxC,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,EAC7C,QAAQ,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAClD,CACH,IACI,CACR,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -5,11 +5,12 @@ type RadioItem = {
|
|
|
5
5
|
sublabel?: string | null;
|
|
6
6
|
};
|
|
7
7
|
export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<Omit<{
|
|
8
|
+
value?: import("@radix-ui/react-radio-group").RadioGroupContextValue["value"];
|
|
9
|
+
name?: import("@radix-ui/react-radio-group").RadioGroupContextValue["name"];
|
|
10
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
8
11
|
slot?: string | undefined;
|
|
9
12
|
style?: React.CSSProperties | undefined;
|
|
10
13
|
title?: string | undefined;
|
|
11
|
-
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
12
|
-
children?: React.ReactNode | undefined;
|
|
13
14
|
key?: React.Key | null | undefined;
|
|
14
15
|
defaultChecked?: boolean | undefined;
|
|
15
16
|
defaultValue?: string | undefined;
|
|
@@ -106,6 +107,7 @@ export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
106
107
|
"aria-valuemin"?: number | undefined;
|
|
107
108
|
"aria-valuenow"?: number | undefined;
|
|
108
109
|
"aria-valuetext"?: string | undefined;
|
|
110
|
+
children?: React.ReactNode | undefined;
|
|
109
111
|
dangerouslySetInnerHTML?: {
|
|
110
112
|
__html: string | TrustedHTML;
|
|
111
113
|
} | undefined;
|
|
@@ -269,13 +271,11 @@ export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
269
271
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
270
272
|
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
271
273
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
272
|
-
asChild?: boolean | undefined;
|
|
273
274
|
disabled?: import("@radix-ui/react-primitive").ComponentPropsWithoutRef<typeof import("@radix-ui/react-radio-group").Radio>["disabled"];
|
|
274
|
-
name?: import("@radix-ui/react-radio-group").RadioGroupContextValue["name"];
|
|
275
|
-
value?: import("@radix-ui/react-radio-group").RadioGroupContextValue["value"];
|
|
276
275
|
orientation?: import("@radix-ui/react-radio-group").RovingFocusGroupProps["orientation"];
|
|
277
|
-
loop?: import("@radix-ui/react-radio-group").RovingFocusGroupProps["loop"];
|
|
278
276
|
required?: import("@radix-ui/react-primitive").ComponentPropsWithoutRef<typeof import("@radix-ui/react-radio-group").Radio>["required"];
|
|
277
|
+
loop?: import("@radix-ui/react-radio-group").RovingFocusGroupProps["loop"];
|
|
278
|
+
asChild?: boolean | undefined;
|
|
279
279
|
onValueChange?: import("@radix-ui/react-radio-group").RadioGroupContextValue["onValueChange"] | undefined;
|
|
280
280
|
htmlWidth?: (string | number) | undefined;
|
|
281
281
|
htmlHeight?: (string | number) | undefined;
|
|
@@ -1090,11 +1090,12 @@ export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
1090
1090
|
fullWidth?: boolean | undefined;
|
|
1091
1091
|
}, "ref"> & React.RefAttributes<unknown>>;
|
|
1092
1092
|
export declare const RadioGroupSimple: React.ForwardRefExoticComponent<Omit<Omit<Omit<{
|
|
1093
|
+
value?: import("@radix-ui/react-radio-group").RadioGroupContextValue["value"];
|
|
1094
|
+
name?: import("@radix-ui/react-radio-group").RadioGroupContextValue["name"];
|
|
1095
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
1093
1096
|
slot?: string | undefined;
|
|
1094
1097
|
style?: React.CSSProperties | undefined;
|
|
1095
1098
|
title?: string | undefined;
|
|
1096
|
-
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
1097
|
-
children?: React.ReactNode | undefined;
|
|
1098
1099
|
key?: React.Key | null | undefined;
|
|
1099
1100
|
defaultChecked?: boolean | undefined;
|
|
1100
1101
|
defaultValue?: string | undefined;
|
|
@@ -1191,6 +1192,7 @@ export declare const RadioGroupSimple: React.ForwardRefExoticComponent<Omit<Omit
|
|
|
1191
1192
|
"aria-valuemin"?: number | undefined;
|
|
1192
1193
|
"aria-valuenow"?: number | undefined;
|
|
1193
1194
|
"aria-valuetext"?: string | undefined;
|
|
1195
|
+
children?: React.ReactNode | undefined;
|
|
1194
1196
|
dangerouslySetInnerHTML?: {
|
|
1195
1197
|
__html: string | TrustedHTML;
|
|
1196
1198
|
} | undefined;
|
|
@@ -1354,13 +1356,11 @@ export declare const RadioGroupSimple: React.ForwardRefExoticComponent<Omit<Omit
|
|
|
1354
1356
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
1355
1357
|
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
1356
1358
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
1357
|
-
asChild?: boolean | undefined;
|
|
1358
1359
|
disabled?: import("@radix-ui/react-primitive").ComponentPropsWithoutRef<typeof import("@radix-ui/react-radio-group").Radio>["disabled"];
|
|
1359
|
-
name?: import("@radix-ui/react-radio-group").RadioGroupContextValue["name"];
|
|
1360
|
-
value?: import("@radix-ui/react-radio-group").RadioGroupContextValue["value"];
|
|
1361
1360
|
orientation?: import("@radix-ui/react-radio-group").RovingFocusGroupProps["orientation"];
|
|
1362
|
-
loop?: import("@radix-ui/react-radio-group").RovingFocusGroupProps["loop"];
|
|
1363
1361
|
required?: import("@radix-ui/react-primitive").ComponentPropsWithoutRef<typeof import("@radix-ui/react-radio-group").Radio>["required"];
|
|
1362
|
+
loop?: import("@radix-ui/react-radio-group").RovingFocusGroupProps["loop"];
|
|
1363
|
+
asChild?: boolean | undefined;
|
|
1364
1364
|
onValueChange?: import("@radix-ui/react-radio-group").RadioGroupContextValue["onValueChange"] | undefined;
|
|
1365
1365
|
htmlWidth?: (string | number) | undefined;
|
|
1366
1366
|
htmlHeight?: (string | number) | undefined;
|
|
@@ -5,12 +5,15 @@ export type SliderProps = Omit<React.ComponentPropsWithoutRef<typeof _Slider>, '
|
|
|
5
5
|
onChange?: (value: number) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const Slider: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
8
|
+
step?: number | undefined;
|
|
9
|
+
min?: number | undefined;
|
|
10
|
+
max?: number | undefined;
|
|
11
|
+
value?: number[] | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
ref?: React.Ref<HTMLSpanElement> | undefined;
|
|
8
14
|
slot?: string | undefined;
|
|
9
15
|
style?: React.CSSProperties | undefined;
|
|
10
16
|
title?: string | undefined;
|
|
11
|
-
step?: number | undefined;
|
|
12
|
-
ref?: React.Ref<HTMLSpanElement> | undefined;
|
|
13
|
-
children?: React.ReactNode | undefined;
|
|
14
17
|
key?: React.Key | null | undefined;
|
|
15
18
|
defaultChecked?: boolean | undefined;
|
|
16
19
|
defaultValue?: number[] | undefined;
|
|
@@ -107,6 +110,7 @@ export declare const Slider: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
107
110
|
"aria-valuemin"?: number | undefined;
|
|
108
111
|
"aria-valuenow"?: number | undefined;
|
|
109
112
|
"aria-valuetext"?: string | undefined;
|
|
113
|
+
children?: React.ReactNode | undefined;
|
|
110
114
|
dangerouslySetInnerHTML?: {
|
|
111
115
|
__html: string | TrustedHTML;
|
|
112
116
|
} | undefined;
|
|
@@ -270,18 +274,15 @@ export declare const Slider: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
270
274
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
271
275
|
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
272
276
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
273
|
-
asChild?: boolean | undefined;
|
|
274
277
|
disabled?: boolean | undefined;
|
|
275
|
-
name?: string | undefined;
|
|
276
|
-
value?: number[] | undefined;
|
|
277
|
-
min?: number | undefined;
|
|
278
|
-
max?: number | undefined;
|
|
279
278
|
orientation?: React.AriaAttributes["aria-orientation"];
|
|
280
|
-
|
|
279
|
+
asChild?: boolean | undefined;
|
|
281
280
|
inverted?: boolean | undefined;
|
|
282
281
|
minStepsBetweenThumbs?: number | undefined;
|
|
282
|
+
onValueChange?: ((value: number[]) => void) | undefined;
|
|
283
283
|
onValueCommit?: ((value: number[]) => void) | undefined;
|
|
284
284
|
showLabels?: boolean | undefined;
|
|
285
|
+
thumbSize?: ("sm" | "lg") | undefined;
|
|
285
286
|
htmlWidth?: (string | number) | undefined;
|
|
286
287
|
htmlHeight?: (string | number) | undefined;
|
|
287
288
|
htmlTranslate?: "yes" | "no" | undefined;
|
|
@@ -1086,7 +1087,7 @@ export declare const Slider: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
1086
1087
|
xlTo2xl?: import("../../styled-system/types/conditions.mjs").Nested<import("../../styled-system/types/system-types.mjs").SystemStyleObject> | undefined;
|
|
1087
1088
|
base?: import("../../styled-system/types/conditions.mjs").Nested<import("../../styled-system/types/system-types.mjs").SystemStyleObject> | undefined;
|
|
1088
1089
|
css?: import("../../styled-system/types/system-types.mjs").SystemStyleObject | undefined;
|
|
1089
|
-
}, "ref">, "
|
|
1090
|
+
}, "ref">, "value" | "onChange" | "onValueChange"> & {
|
|
1090
1091
|
value: number;
|
|
1091
1092
|
onChange?: (value: number) => void;
|
|
1092
1093
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1098,12 +1099,15 @@ export type DoubleSliderProps = Omit<React.ComponentPropsWithoutRef<typeof _Slid
|
|
|
1098
1099
|
onChange?: (value: number[]) => void;
|
|
1099
1100
|
};
|
|
1100
1101
|
export declare const DoubleSlider: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
1102
|
+
step?: number | undefined;
|
|
1103
|
+
min?: number | undefined;
|
|
1104
|
+
max?: number | undefined;
|
|
1105
|
+
value?: number[] | undefined;
|
|
1106
|
+
name?: string | undefined;
|
|
1107
|
+
ref?: React.Ref<HTMLSpanElement> | undefined;
|
|
1101
1108
|
slot?: string | undefined;
|
|
1102
1109
|
style?: React.CSSProperties | undefined;
|
|
1103
1110
|
title?: string | undefined;
|
|
1104
|
-
step?: number | undefined;
|
|
1105
|
-
ref?: React.Ref<HTMLSpanElement> | undefined;
|
|
1106
|
-
children?: React.ReactNode | undefined;
|
|
1107
1111
|
key?: React.Key | null | undefined;
|
|
1108
1112
|
defaultChecked?: boolean | undefined;
|
|
1109
1113
|
defaultValue?: number[] | undefined;
|
|
@@ -1200,6 +1204,7 @@ export declare const DoubleSlider: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
1200
1204
|
"aria-valuemin"?: number | undefined;
|
|
1201
1205
|
"aria-valuenow"?: number | undefined;
|
|
1202
1206
|
"aria-valuetext"?: string | undefined;
|
|
1207
|
+
children?: React.ReactNode | undefined;
|
|
1203
1208
|
dangerouslySetInnerHTML?: {
|
|
1204
1209
|
__html: string | TrustedHTML;
|
|
1205
1210
|
} | undefined;
|
|
@@ -1363,18 +1368,15 @@ export declare const DoubleSlider: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
1363
1368
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
1364
1369
|
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
1365
1370
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
1366
|
-
asChild?: boolean | undefined;
|
|
1367
1371
|
disabled?: boolean | undefined;
|
|
1368
|
-
name?: string | undefined;
|
|
1369
|
-
value?: number[] | undefined;
|
|
1370
|
-
min?: number | undefined;
|
|
1371
|
-
max?: number | undefined;
|
|
1372
1372
|
orientation?: React.AriaAttributes["aria-orientation"];
|
|
1373
|
-
|
|
1373
|
+
asChild?: boolean | undefined;
|
|
1374
1374
|
inverted?: boolean | undefined;
|
|
1375
1375
|
minStepsBetweenThumbs?: number | undefined;
|
|
1376
|
+
onValueChange?: ((value: number[]) => void) | undefined;
|
|
1376
1377
|
onValueCommit?: ((value: number[]) => void) | undefined;
|
|
1377
1378
|
showLabels?: boolean | undefined;
|
|
1379
|
+
thumbSize?: ("sm" | "lg") | undefined;
|
|
1378
1380
|
htmlWidth?: (string | number) | undefined;
|
|
1379
1381
|
htmlHeight?: (string | number) | undefined;
|
|
1380
1382
|
htmlTranslate?: "yes" | "no" | undefined;
|
|
@@ -2179,7 +2181,7 @@ export declare const DoubleSlider: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
2179
2181
|
xlTo2xl?: import("../../styled-system/types/conditions.mjs").Nested<import("../../styled-system/types/system-types.mjs").SystemStyleObject> | undefined;
|
|
2180
2182
|
base?: import("../../styled-system/types/conditions.mjs").Nested<import("../../styled-system/types/system-types.mjs").SystemStyleObject> | undefined;
|
|
2181
2183
|
css?: import("../../styled-system/types/system-types.mjs").SystemStyleObject | undefined;
|
|
2182
|
-
}, "ref">, "
|
|
2184
|
+
}, "ref">, "value" | "onChange" | "onValueChange"> & {
|
|
2183
2185
|
value: number[];
|
|
2184
2186
|
maxLabelText?: string;
|
|
2185
2187
|
minLabelText?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAiB,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,KAAK,CAAC,wBAAwB,CAAC,OAAO,OAAO,CAAC,EAC9C,OAAO,GAAG,eAAe,GAAG,UAAU,CACvC,GAAG;IACF,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAiB,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,KAAK,CAAC,wBAAwB,CAAC,OAAO,OAAO,CAAC,EAC9C,OAAO,GAAG,eAAe,GAAG,UAAU,CACvC,GAAG;IACF,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAPhB,MAAM,EAAE;mBACA,MAAM;mBACN,MAAM;uBACF,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM;eAC7C,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI;yCAOpC,CAAC"}
|
|
@@ -15,6 +15,7 @@ export type StepperProps = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const FinalStep: React.MemoExoticComponent<(props: {
|
|
17
17
|
active?: boolean;
|
|
18
|
+
dot?: boolean;
|
|
18
19
|
}) => import("react/jsx-runtime").JSX.Element>;
|
|
19
20
|
export declare const Stepper: (props: React.PropsWithChildren<StepperProps>) => import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Stepper.tsx"],"names":[],"mappings":"AAA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,CAAC,KAAG,KAAK,CAAC,GAAG,CAAC,OA4C1E,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,SAAS,oCAAsB;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,6CAO7E,CAAC;AAEH,eAAO,MAAM,OAAO,UAAW,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAAC,4CAyBnE,CAAC"}
|
|
@@ -17,7 +17,7 @@ export const Step = (props) => {
|
|
|
17
17
|
}
|
|
18
18
|
return (_jsxs(Flex, { gap: "sm", children: [_jsxs(Flex, { direction: "column", align: "center", height: "full", gap: "xs", children: [_jsx(Circle, { label: label, variant: "gray" }), _jsx(Separator, { orientation: "vertical", flexShrink: 1, height: "full" })] }), _jsxs(Flex, { direction: "column", align: "start", marginTop: "xs", gap: "xs", ...flexProps, children: [_jsx(NormalText, { text: title }), children] })] }, `step-${label}`));
|
|
19
19
|
};
|
|
20
|
-
export const FinalStep = React.memo((props) => (_jsx(Circle, { icon: CheckIcon, iconProps: { size: 'sm' }, variant: props.active ? 'active' : 'gray' })));
|
|
20
|
+
export const FinalStep = React.memo((props) => (_jsx(Circle, { dot: props.dot, icon: props.dot ? null : CheckIcon, iconProps: props.dot ? null : { size: 'sm' }, variant: props.active ? 'active' : 'gray' })));
|
|
21
21
|
export const Stepper = (props) => {
|
|
22
22
|
const { children, orientation = 'vertical' } = props;
|
|
23
23
|
const stepNumber = React.useMemo(() => React.Children.count(children), [children]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.js","sourceRoot":"","sources":["../../../src/components/custom/Stepper.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,8B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G,KAAK,CAAC;IAErD,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEnF,OAAO,CACL,KAAC,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,YACnD,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,CAC9B,KAAC,IAAI,IAAC,GAAG,EAAC,IAAI,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,QAAQ,YACvC,QAAQ,GACJ,CACR,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,GAAG,EAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,YAC9B,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;gBAC7C,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;oBAChC,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;wBAC/B,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;wBACxB,MAAM,EAAE,UAAU,KAAK,KAAK,GAAG,CAAC;qBAC1B,CAAC,CAAC;gBACZ,CAAC;YACH,CAAC,CAAC,GACG,CACR,GACkC,CACtC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type DeviceInformation } from './devices.js';
|
|
3
|
+
export declare const DEVICES_FAMILIES: readonly ["OAK", "RAE", "OAK4"];
|
|
4
|
+
export declare const DevicesFamiliesSchema: z.ZodEnum<["OAK", "RAE", "OAK4"]>;
|
|
5
|
+
export type DevicesFamilies = z.infer<typeof DevicesFamiliesSchema>;
|
|
6
|
+
export declare const DEVICES_MODIFIERS: readonly ["AF", "FF", "CM4", "PoE", "Pro", "Lite", "W", "97", "OV9782"];
|
|
7
|
+
export declare const DevicesModifiersSchema: z.ZodEnum<["AF", "FF", "CM4", "PoE", "Pro", "Lite", "W", "97", "OV9782"]>;
|
|
8
|
+
export type DevicesModifiers = z.infer<typeof DevicesModifiersSchema>;
|
|
9
|
+
export declare const POSSIBLE_DELIMITER: RegExp;
|
|
10
|
+
export declare const DEVICE_IMAGE_PATH = "/images/devices";
|
|
11
|
+
export declare const DEVICE_IMAGES_LINK = "https://static.luxonis.com/images/cameras";
|
|
12
|
+
export declare const emptyDeviceInformation: DeviceInformation;
|
|
13
|
+
//# sourceMappingURL=devices-constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices-constants.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/devices/devices-constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,eAAO,MAAM,gBAAgB,iCAAkC,CAAC;AAChE,eAAO,MAAM,qBAAqB,mCAA2B,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAKpE,eAAO,MAAM,iBAAiB,yEAAoD,CAAC;AACnF,eAAO,MAAM,sBAAsB,2EAA4B,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB,QAAS,CAAC;AAEzC,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,kBAAkB,8CAA8C,CAAC;AAE9E,eAAO,MAAM,sBAAsB,EAAE,iBAepC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const DEVICES_FAMILIES = ['OAK', 'RAE', 'OAK4'];
|
|
3
|
+
export const DevicesFamiliesSchema = z.enum(DEVICES_FAMILIES);
|
|
4
|
+
const FOCUS_MODIFIERS = ['AF', 'FF'];
|
|
5
|
+
const OTHER_MODIFIERS = ['CM4', 'PoE', 'Pro', 'Lite', 'W', '97', 'OV9782'];
|
|
6
|
+
export const DEVICES_MODIFIERS = [...FOCUS_MODIFIERS, ...OTHER_MODIFIERS];
|
|
7
|
+
export const DevicesModifiersSchema = z.enum(DEVICES_MODIFIERS);
|
|
8
|
+
export const POSSIBLE_DELIMITER = /\s|-/;
|
|
9
|
+
export const DEVICE_IMAGE_PATH = '/images/devices';
|
|
10
|
+
export const DEVICE_IMAGES_LINK = 'https://static.luxonis.com/images/cameras';
|
|
11
|
+
export const emptyDeviceInformation = {
|
|
12
|
+
info: {
|
|
13
|
+
product: 'OAK4-S',
|
|
14
|
+
family: 'OAK4',
|
|
15
|
+
id: 'OAK4-S',
|
|
16
|
+
model: 'S',
|
|
17
|
+
modifiers: [],
|
|
18
|
+
},
|
|
19
|
+
deviceName: 'OAK 4 S',
|
|
20
|
+
deviceImageName: 'https://static.luxonis.com/images/cameras/OAK4-S.webp',
|
|
21
|
+
setupSteps: [
|
|
22
|
+
`Connect the PoE/ETH cable to power up the OAK 4 S`,
|
|
23
|
+
`Scan the QR code.`,
|
|
24
|
+
'Scanning the QR code will take a few seconds. Try keeping the camera steady without moving your hands.',
|
|
25
|
+
],
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=devices-constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices-constants.js","sourceRoot":"","sources":["../../../../src/components/custom/devices/devices-constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAU,CAAC;AAChE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAG9D,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,CAAU,CAAC;AAC9C,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,CAAU,CAAC;AAEpF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,GAAG,eAAe,EAAE,GAAG,eAAe,CAAU,CAAC;AACnF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AAGhE,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAEzC,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,2CAA2C,CAAC;AAE9E,MAAM,CAAC,MAAM,sBAAsB,GAAsB;IACvD,IAAI,EAAE;QACJ,OAAO,EAAE,QAAQ;QACjB,MAAM,EAAE,MAAM;QACd,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,GAAG;QACV,SAAS,EAAE,EAAE;KACd;IACD,UAAU,EAAE,SAAS;IACrB,eAAe,EAAE,uDAAuD;IACxE,UAAU,EAAE;QACV,mDAAmD;QACnD,mBAAmB;QACnB,wGAAwG;KACzG;CACF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DeviceID, DeviceList } from './devices-list.js';
|
|
2
|
+
import type { DevicesFamilies, DevicesModifiers } from './devices-constants.js';
|
|
3
|
+
export type DeviceFamily = {
|
|
4
|
+
product: DeviceList;
|
|
5
|
+
family: DevicesFamilies;
|
|
6
|
+
id: DeviceID;
|
|
7
|
+
model: string;
|
|
8
|
+
modifiers: DevicesModifiers[];
|
|
9
|
+
};
|
|
10
|
+
export declare const getProductToDeviceProperties: (product: DeviceList) => DeviceFamily;
|
|
11
|
+
//# sourceMappingURL=devices-family.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices-family.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/devices/devices-family.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEhF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,EAAE,EAAE,QAAQ,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,4BAA4B,YAAa,UAAU,KAAG,YAalE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DEVICES_FAMILIES, DEVICES_MODIFIERS, POSSIBLE_DELIMITER } from './devices-constants.js';
|
|
2
|
+
export const getProductToDeviceProperties = (product) => {
|
|
3
|
+
const splitProduct = product.split(POSSIBLE_DELIMITER);
|
|
4
|
+
const family = findDeviceProperties(splitProduct, DEVICES_FAMILIES)[0];
|
|
5
|
+
const modifiers = findDeviceProperties(splitProduct, DEVICES_MODIFIERS);
|
|
6
|
+
const { fullModel, shortModel } = findDeviceModel(splitProduct, [family, ...modifiers]);
|
|
7
|
+
return {
|
|
8
|
+
id: `${family}-${shortModel}`,
|
|
9
|
+
product,
|
|
10
|
+
family,
|
|
11
|
+
model: fullModel,
|
|
12
|
+
modifiers,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
const findDeviceProperties = (splitArr, possibleValuesArr) => {
|
|
16
|
+
const set = new Set(splitArr);
|
|
17
|
+
return possibleValuesArr.filter(element => set.has(element));
|
|
18
|
+
};
|
|
19
|
+
const findDeviceModel = (splitArr, toRemove) => {
|
|
20
|
+
const set = new Set(toRemove);
|
|
21
|
+
const splitFullModel = splitArr.filter(element => !set.has(element));
|
|
22
|
+
const fullModel = splitFullModel.join('-');
|
|
23
|
+
const shortModel = splitFullModel[0];
|
|
24
|
+
return { fullModel, shortModel };
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=devices-family.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices-family.js","sourceRoot":"","sources":["../../../../src/components/custom/devices/devices-family.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAWjG,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,OAAmB,EAAgB,EAAE;IAChF,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,oBAAoB,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAoB,CAAC;IAC1F,MAAM,SAAS,GAAG,oBAAoB,CAAC,YAAY,EAAE,iBAAiB,CAAuB,CAAC;IAC9F,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,eAAe,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC;IAExF,OAAO;QACL,EAAE,EAAE,GAAG,MAAM,IAAI,UAAU,EAAc;QACzC,OAAO;QACP,MAAM;QACN,KAAK,EAAE,SAAS;QAChB,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,QAAkB,EAAE,iBAAqC,EAAE,EAAE;IACzF,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC9B,OAAO,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,QAAkB,EAAE,QAAkB,EAAE,EAAE;IACjE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC9B,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,MAAM,SAAS,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IACrC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;AACnC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DEVICE_ID: readonly ["RAE", "OAK4-D", "OAK4-D-PRO", "OAK4-S", "OAK4-LR", "OAK4-SR"];
|
|
3
|
+
export declare const RVC2_DEVICES: readonly ["OAK-D S2 AF", "OAK-D S2 FF", "OAK-D-W", "OAK-D-W-97", "OAK-D Pro AF", "OAK-D Pro FF", "OAK-D Pro FF 97", "OAK-D Pro W", "OAK-D Pro W 97", "OAK-D-Lite AF", "OAK-D-Lite FF", "OAK-D", "OAK-D-S2 PoE AF", "OAK-D-S2 PoE FF", "OAK-D W PoE", "OAK-D-W PoE 97", "OAK-D-Pro PoE AF", "OAK-D-Pro PoE FF", "OAK-D-Pro PoE FF 97", "OAK-D-Pro W PoE", "OAK-D-Pro W PoE 97", "OAK-D-PoE", "OAK-1-PoE AF", "OAK-1-PoE FF", "OAK-1 W PoE", "OAK-1 W PoE 97", "OAK-1 AF", "OAK-1 FF", "OAK-1 FF 97", "OAK-1 W", "OAK-1 W 97", "OAK-1 MAX", "OAK-1-Lite AF", "OAK-1-Lite FF", "OAK-1-Lite W", "OAK-D CM4", "OAK-D CM4 PoE", "OAK-D LR", "OAK-D SR", "OAK-D SR PoE"];
|
|
4
|
+
export declare const RVC3_DEVICES: readonly ["RAE"];
|
|
5
|
+
export declare const RVC4_DEVICES: readonly ["OAK4-D", "OAK4-D-AF", "OAK4-D-FF", "OAK4-D-W", "OAK4-D-PRO", "OAK4-D-PRO-AF", "OAK4-D-PRO-FF", "OAK4-D-PRO-W", "OAK4-S", "OAK4-S-AF", "OAK4-S-FF", "OAK4-S-W", "OAK4-LR", "OAK4-SR"];
|
|
6
|
+
export declare const devicesList: readonly ["OAK-D S2 AF", "OAK-D S2 FF", "OAK-D-W", "OAK-D-W-97", "OAK-D Pro AF", "OAK-D Pro FF", "OAK-D Pro FF 97", "OAK-D Pro W", "OAK-D Pro W 97", "OAK-D-Lite AF", "OAK-D-Lite FF", "OAK-D", "OAK-D-S2 PoE AF", "OAK-D-S2 PoE FF", "OAK-D W PoE", "OAK-D-W PoE 97", "OAK-D-Pro PoE AF", "OAK-D-Pro PoE FF", "OAK-D-Pro PoE FF 97", "OAK-D-Pro W PoE", "OAK-D-Pro W PoE 97", "OAK-D-PoE", "OAK-1-PoE AF", "OAK-1-PoE FF", "OAK-1 W PoE", "OAK-1 W PoE 97", "OAK-1 AF", "OAK-1 FF", "OAK-1 FF 97", "OAK-1 W", "OAK-1 W 97", "OAK-1 MAX", "OAK-1-Lite AF", "OAK-1-Lite FF", "OAK-1-Lite W", "OAK-D CM4", "OAK-D CM4 PoE", "OAK-D LR", "OAK-D SR", "OAK-D SR PoE", "RAE", "OAK4-D", "OAK4-D-AF", "OAK4-D-FF", "OAK4-D-W", "OAK4-D-PRO", "OAK4-D-PRO-AF", "OAK4-D-PRO-FF", "OAK4-D-PRO-W", "OAK4-S", "OAK4-S-AF", "OAK4-S-FF", "OAK4-S-W", "OAK4-LR", "OAK4-SR"];
|
|
7
|
+
export declare const RVC2DevicesSchema: z.ZodEnum<["OAK-D S2 AF", "OAK-D S2 FF", "OAK-D-W", "OAK-D-W-97", "OAK-D Pro AF", "OAK-D Pro FF", "OAK-D Pro FF 97", "OAK-D Pro W", "OAK-D Pro W 97", "OAK-D-Lite AF", "OAK-D-Lite FF", "OAK-D", "OAK-D-S2 PoE AF", "OAK-D-S2 PoE FF", "OAK-D W PoE", "OAK-D-W PoE 97", "OAK-D-Pro PoE AF", "OAK-D-Pro PoE FF", "OAK-D-Pro PoE FF 97", "OAK-D-Pro W PoE", "OAK-D-Pro W PoE 97", "OAK-D-PoE", "OAK-1-PoE AF", "OAK-1-PoE FF", "OAK-1 W PoE", "OAK-1 W PoE 97", "OAK-1 AF", "OAK-1 FF", "OAK-1 FF 97", "OAK-1 W", "OAK-1 W 97", "OAK-1 MAX", "OAK-1-Lite AF", "OAK-1-Lite FF", "OAK-1-Lite W", "OAK-D CM4", "OAK-D CM4 PoE", "OAK-D LR", "OAK-D SR", "OAK-D SR PoE"]>;
|
|
8
|
+
export type RVC2Devices = z.infer<typeof RVC2DevicesSchema>;
|
|
9
|
+
export declare const RVC3DevicesSchema: z.ZodEnum<["RAE"]>;
|
|
10
|
+
export type RVC3Devices = z.infer<typeof RVC3DevicesSchema>;
|
|
11
|
+
export declare const RVC4DevicesSchema: z.ZodEnum<["OAK4-D", "OAK4-D-AF", "OAK4-D-FF", "OAK4-D-W", "OAK4-D-PRO", "OAK4-D-PRO-AF", "OAK4-D-PRO-FF", "OAK4-D-PRO-W", "OAK4-S", "OAK4-S-AF", "OAK4-S-FF", "OAK4-S-W", "OAK4-LR", "OAK4-SR"]>;
|
|
12
|
+
export type RVC4Devices = z.infer<typeof RVC4DevicesSchema>;
|
|
13
|
+
export declare const DeviceIDSchema: z.ZodEnum<["RAE", "OAK4-D", "OAK4-D-PRO", "OAK4-S", "OAK4-LR", "OAK4-SR"]>;
|
|
14
|
+
export type DeviceID = z.infer<typeof DeviceIDSchema>;
|
|
15
|
+
export declare const DeviceListSchema: z.ZodEnum<["OAK-D S2 AF", "OAK-D S2 FF", "OAK-D-W", "OAK-D-W-97", "OAK-D Pro AF", "OAK-D Pro FF", "OAK-D Pro FF 97", "OAK-D Pro W", "OAK-D Pro W 97", "OAK-D-Lite AF", "OAK-D-Lite FF", "OAK-D", "OAK-D-S2 PoE AF", "OAK-D-S2 PoE FF", "OAK-D W PoE", "OAK-D-W PoE 97", "OAK-D-Pro PoE AF", "OAK-D-Pro PoE FF", "OAK-D-Pro PoE FF 97", "OAK-D-Pro W PoE", "OAK-D-Pro W PoE 97", "OAK-D-PoE", "OAK-1-PoE AF", "OAK-1-PoE FF", "OAK-1 W PoE", "OAK-1 W PoE 97", "OAK-1 AF", "OAK-1 FF", "OAK-1 FF 97", "OAK-1 W", "OAK-1 W 97", "OAK-1 MAX", "OAK-1-Lite AF", "OAK-1-Lite FF", "OAK-1-Lite W", "OAK-D CM4", "OAK-D CM4 PoE", "OAK-D LR", "OAK-D SR", "OAK-D SR PoE", "RAE", "OAK4-D", "OAK4-D-AF", "OAK4-D-FF", "OAK4-D-W", "OAK4-D-PRO", "OAK4-D-PRO-AF", "OAK4-D-PRO-FF", "OAK4-D-PRO-W", "OAK4-S", "OAK4-S-AF", "OAK4-S-FF", "OAK4-S-W", "OAK4-LR", "OAK4-SR"]>;
|
|
16
|
+
export type DeviceList = z.infer<typeof DeviceListSchema>;
|
|
17
|
+
//# sourceMappingURL=devices-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices-list.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/devices/devices-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS,0EAA2E,CAAC;AAGlG,eAAO,MAAM,YAAY,moBAyCf,CAAC;AAGX,eAAO,MAAM,YAAY,kBAAmB,CAAC;AAG7C,eAAO,MAAM,YAAY,iMAef,CAAC;AAEX,eAAO,MAAM,WAAW,g0BAA+D,CAAC;AAExF,eAAO,MAAM,iBAAiB,qoBAAuB,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB,oBAAuB,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB,mMAAuB,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,cAAc,4EAAoB,CAAC;AAChD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,gBAAgB,k0BAAsB,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|