@luxonis/common-fe-components 1.18.1 → 1.19.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.
@@ -275,21 +275,12 @@ export declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<{
275
275
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
276
276
  onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
277
277
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
278
+ align?: ("center" | "end" | "start") | undefined;
278
279
  key?: React.Key | null | undefined;
279
280
  loop?: boolean | undefined;
280
- align?: ("center" | "end" | "start") | undefined;
281
281
  sticky?: ("partial" | "always") | undefined;
282
+ forceMount?: true | undefined;
282
283
  asChild?: boolean | undefined;
283
- side?: ("bottom" | "left" | "right" | "top") | undefined;
284
- sideOffset?: number | undefined;
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;
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
- forceMount?: true | undefined;
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;
@@ -10,6 +10,7 @@ export type GridProps = _GridProps & {
10
10
  emptySuffix?: string;
11
11
  itemWidth?: Token;
12
12
  fixed?: boolean;
13
+ withBorder?: boolean;
13
14
  };
14
15
  export declare const Grid: (props: GridProps) => number | true | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element;
15
16
  export declare const GridItem: (props: GridItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,KAAK,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAG3E,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,SAAS,wFAiCpC,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,aAAa,4CAM5C,CAAC"}
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAElE,OAAO,KAAK,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAI3E,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,SAAS,wFA2DpC,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,aAAa,4CAM5C,CAAC"}
@@ -4,8 +4,9 @@ import { token } from '../../styled-system/tokens/index.mjs';
4
4
  import { Grid as _Grid } from '../../styled-system/jsx/grid.mjs';
5
5
  import { GridItem as _GridItem } from '../../styled-system/jsx/grid-item.mjs';
6
6
  import { EmptyView } from './EmptyView.js';
7
+ import { Card } from './Card.js';
7
8
  export const Grid = (props) => {
8
- const { empty, emptyPrefix, emptySuffix, emptyMessage, entity, itemWidth, children, fixed = false, ...rest } = props;
9
+ const { empty, emptyPrefix, emptySuffix, emptyMessage, entity, itemWidth, children, fixed = false, withBorder = false, ...rest } = props;
9
10
  const columnsTemplate = React.useMemo(() => {
10
11
  if (!itemWidth) {
11
12
  return undefined;
@@ -13,8 +14,15 @@ export const Grid = (props) => {
13
14
  const limit = fixed ? token(itemWidth) : `minmax(${token(itemWidth)}, 1fr)`;
14
15
  return `repeat(auto-fill, ${limit})`;
15
16
  }, [fixed, itemWidth]);
16
- if (empty && (entity ?? emptyMessage)) {
17
- return typeof emptyMessage === 'string' || !emptyMessage ? (_jsx(EmptyView, { title: emptyMessage ?? `${emptyPrefix ?? 'You have no'} ${entity} ${emptySuffix ?? 'yet.'}`, marginY: "md" })) : (emptyMessage);
17
+ _jsx(Card, { padding: 0, fullWidth: true });
18
+ const emptyMessageElement = React.useMemo(() => {
19
+ if (empty && (entity ?? emptyMessage)) {
20
+ return typeof emptyMessage === 'string' || !emptyMessage ? (_jsx(EmptyView, { title: emptyMessage ?? `${emptyPrefix ?? 'You have no'} ${entity} ${emptySuffix ?? 'yet.'}`, marginY: "md" })) : (emptyMessage);
21
+ }
22
+ return null;
23
+ }, [empty, entity, emptyMessage, emptyPrefix, emptySuffix]);
24
+ if (emptyMessageElement) {
25
+ return withBorder ? (_jsx(Card, { padding: 0, fullWidth: true, children: emptyMessageElement })) : (emptyMessageElement);
18
26
  }
19
27
  const onGrid = (grid) => {
20
28
  if (grid && columnsTemplate) {
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../src/components/custom/Grid.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAE7D,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEjE,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAY3C,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,KAAgB,EAAE,EAAE;IACvC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,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J,CAAC,CAAC"}
@@ -72,12 +72,12 @@ export const ModalHeader = (props) => {
72
72
  // Focus the dialog when it opens instead of first focusable element
73
73
  const autoFocusFix = autoFocus ? { tabIndex: 0, outline: 'none' } : {};
74
74
  return (_jsx(DialogHeader, { children: _jsxs(Flex, { width: "full", align: "center", justify: "space-between", gap: "xs", ...autoFocusFix, children: [_jsxs(Flex, { width: "full", align: "center", justify: "start", gap: "xxs", children: [backAction && (_jsx(Button, { variant: "ghost", colorVariant: "white", icon: BackIcon, marginLeft: "-xs", onClick: backAction })), title &&
75
- (singleLine ? (_jsx(Tooltip, { content: tooltip, className: css({ display: 'flex !important', width: 0, flexGrow: 1 }), lineHeight: "unset", children: _jsx(SubHeader, { text: title, className: css({
75
+ (singleLine ? (_jsx(Tooltip, { content: tooltip, className: css({ display: 'flex !important', flexGrow: 1 }), lineHeight: "unset", children: _jsx(SubHeader, { text: title, className: css({
76
76
  whiteSpace: 'nowrap',
77
77
  textOverflow: 'ellipsis',
78
78
  overflow: 'hidden',
79
79
  pointerEvents: 'none',
80
- }) }) })) : (_jsx(Tooltip, { content: tooltip, children: _jsx(SubHeader, { text: title, break: "word" }) }))), children] }), _jsxs(Flex, { align: "center", justify: "normal", gap: "xs", children: [actions, closeButton && (_jsx(DialogClose, { asChild: true, children: _jsx(Button, { marginRight: closeButtonMargin, variant: "ghost", colorVariant: "white", icon: CrossIcon }) }))] })] }) }));
80
+ }) }) })) : (_jsx(Tooltip, { content: tooltip, className: css({ w: 'full', display: 'block', textAlign: 'left' }), children: _jsx(SubHeader, { text: title, break: "word", className: css({ w: 'full' }) }) }))), children] }), _jsxs(Flex, { align: "center", justify: "normal", gap: "xs", children: [actions, closeButton && (_jsx(DialogClose, { asChild: true, children: _jsx(Button, { marginRight: closeButtonMargin, variant: "ghost", colorVariant: "white", icon: CrossIcon }) }))] })] }) }));
81
81
  };
82
82
  export { DialogFooter as ModalFooter } from '../shadow-panda/_Dialog.js';
83
83
  //# sourceMappingURL=Modal.js.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E,SAAS,EAAE,MAAM,EAAE,CAAC,YAC3F,KAAC,SAAS,IAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,EAAC,SAAS,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAI,GAC9D,CACX,CAAC,EACH,QAAQ,IACJ,EACP,MAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAC,QAAQ,EAAC,GAAG,EAAC,IAAI,aAC3C,OAAO,EACP,WAAW,IAAI,CACd,KAAC,WAAW,IAAC,OAAO,kBAClB,KAAC,MAAM,IAAC,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAC,OAAO,EAAC,YAAY,EAAC,OAAO,EAAC,IAAI,EAAE,SAAS,GAAI,GACpF,CACf,IACI,IACF,GACM,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,YAAY,IAAI,WAAW,EAAE,MAAM,4BAA4B,CAAC"}
@@ -8,6 +8,8 @@ export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<Omit<
8
8
  slot?: string | undefined;
9
9
  style?: React.CSSProperties | undefined;
10
10
  title?: string | undefined;
11
+ value?: import("@radix-ui/react-radio-group").RadioGroupContextValue["value"];
12
+ name?: import("@radix-ui/react-radio-group").RadioGroupContextValue["name"];
11
13
  ref?: React.Ref<HTMLDivElement> | undefined;
12
14
  defaultChecked?: boolean | undefined;
13
15
  defaultValue?: string | undefined;
@@ -269,11 +271,9 @@ export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<Omit<
269
271
  onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
270
272
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
271
273
  key?: React.Key | null | undefined;
272
- name?: import("@radix-ui/react-radio-group").RadioGroupContextValue["name"];
273
274
  orientation?: import("@radix-ui/react-radio-group").RovingFocusGroupProps["orientation"];
274
275
  loop?: import("@radix-ui/react-radio-group").RovingFocusGroupProps["loop"];
275
276
  disabled?: import("@radix-ui/react-primitive").ComponentPropsWithoutRef<typeof import("@radix-ui/react-radio-group").Radio>["disabled"];
276
- value?: import("@radix-ui/react-radio-group").RadioGroupContextValue["value"];
277
277
  required?: import("@radix-ui/react-primitive").ComponentPropsWithoutRef<typeof import("@radix-ui/react-radio-group").Radio>["required"];
278
278
  asChild?: boolean | undefined;
279
279
  onValueChange?: import("@radix-ui/react-radio-group").RadioGroupContextValue["onValueChange"] | undefined;
@@ -1093,6 +1093,8 @@ export declare const RadioGroupSimple: React.ForwardRefExoticComponent<Omit<Omit
1093
1093
  slot?: string | undefined;
1094
1094
  style?: React.CSSProperties | undefined;
1095
1095
  title?: string | undefined;
1096
+ value?: import("@radix-ui/react-radio-group").RadioGroupContextValue["value"];
1097
+ name?: import("@radix-ui/react-radio-group").RadioGroupContextValue["name"];
1096
1098
  ref?: React.Ref<HTMLDivElement> | undefined;
1097
1099
  defaultChecked?: boolean | undefined;
1098
1100
  defaultValue?: string | undefined;
@@ -1354,11 +1356,9 @@ export declare const RadioGroupSimple: React.ForwardRefExoticComponent<Omit<Omit
1354
1356
  onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
1355
1357
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
1356
1358
  key?: React.Key | null | undefined;
1357
- name?: import("@radix-ui/react-radio-group").RadioGroupContextValue["name"];
1358
1359
  orientation?: import("@radix-ui/react-radio-group").RovingFocusGroupProps["orientation"];
1359
1360
  loop?: import("@radix-ui/react-radio-group").RovingFocusGroupProps["loop"];
1360
1361
  disabled?: import("@radix-ui/react-primitive").ComponentPropsWithoutRef<typeof import("@radix-ui/react-radio-group").Radio>["disabled"];
1361
- value?: import("@radix-ui/react-radio-group").RadioGroupContextValue["value"];
1362
1362
  required?: import("@radix-ui/react-primitive").ComponentPropsWithoutRef<typeof import("@radix-ui/react-radio-group").Radio>["required"];
1363
1363
  asChild?: boolean | undefined;
1364
1364
  onValueChange?: import("@radix-ui/react-radio-group").RadioGroupContextValue["onValueChange"] | undefined;
@@ -9,6 +9,10 @@ export declare const Slider: React.ForwardRefExoticComponent<Omit<Omit<{
9
9
  style?: React.CSSProperties | undefined;
10
10
  title?: string | undefined;
11
11
  step?: number | undefined;
12
+ min?: number | undefined;
13
+ max?: number | undefined;
14
+ value?: number[] | undefined;
15
+ name?: string | undefined;
12
16
  ref?: React.Ref<HTMLSpanElement> | undefined;
13
17
  defaultChecked?: boolean | undefined;
14
18
  defaultValue?: number[] | undefined;
@@ -270,12 +274,8 @@ export declare const Slider: React.ForwardRefExoticComponent<Omit<Omit<{
270
274
  onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
271
275
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
272
276
  key?: React.Key | null | undefined;
273
- max?: number | undefined;
274
- min?: number | undefined;
275
- name?: string | undefined;
276
277
  orientation?: React.AriaAttributes["aria-orientation"];
277
278
  disabled?: boolean | undefined;
278
- value?: number[] | undefined;
279
279
  asChild?: boolean | undefined;
280
280
  onValueChange?: ((value: number[]) => void) | undefined;
281
281
  inverted?: boolean | undefined;
@@ -1087,7 +1087,7 @@ export declare const Slider: React.ForwardRefExoticComponent<Omit<Omit<{
1087
1087
  xlTo2xl?: import("../../styled-system/types/conditions.mjs").Nested<import("../../styled-system/types/system-types.mjs").SystemStyleObject> | undefined;
1088
1088
  base?: import("../../styled-system/types/conditions.mjs").Nested<import("../../styled-system/types/system-types.mjs").SystemStyleObject> | undefined;
1089
1089
  css?: import("../../styled-system/types/system-types.mjs").SystemStyleObject | undefined;
1090
- }, "ref">, "onChange" | "value" | "onValueChange"> & {
1090
+ }, "ref">, "value" | "onChange" | "onValueChange"> & {
1091
1091
  value: number;
1092
1092
  onChange?: (value: number) => void;
1093
1093
  } & React.RefAttributes<HTMLSpanElement>>;
@@ -1103,6 +1103,10 @@ export declare const DoubleSlider: React.ForwardRefExoticComponent<Omit<Omit<{
1103
1103
  style?: React.CSSProperties | undefined;
1104
1104
  title?: string | undefined;
1105
1105
  step?: number | undefined;
1106
+ min?: number | undefined;
1107
+ max?: number | undefined;
1108
+ value?: number[] | undefined;
1109
+ name?: string | undefined;
1106
1110
  ref?: React.Ref<HTMLSpanElement> | undefined;
1107
1111
  defaultChecked?: boolean | undefined;
1108
1112
  defaultValue?: number[] | undefined;
@@ -1364,12 +1368,8 @@ export declare const DoubleSlider: React.ForwardRefExoticComponent<Omit<Omit<{
1364
1368
  onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
1365
1369
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
1366
1370
  key?: React.Key | null | undefined;
1367
- max?: number | undefined;
1368
- min?: number | undefined;
1369
- name?: string | undefined;
1370
1371
  orientation?: React.AriaAttributes["aria-orientation"];
1371
1372
  disabled?: boolean | undefined;
1372
- value?: number[] | undefined;
1373
1373
  asChild?: boolean | undefined;
1374
1374
  onValueChange?: ((value: number[]) => void) | undefined;
1375
1375
  inverted?: boolean | undefined;
@@ -2181,7 +2181,7 @@ export declare const DoubleSlider: React.ForwardRefExoticComponent<Omit<Omit<{
2181
2181
  xlTo2xl?: import("../../styled-system/types/conditions.mjs").Nested<import("../../styled-system/types/system-types.mjs").SystemStyleObject> | undefined;
2182
2182
  base?: import("../../styled-system/types/conditions.mjs").Nested<import("../../styled-system/types/system-types.mjs").SystemStyleObject> | undefined;
2183
2183
  css?: import("../../styled-system/types/system-types.mjs").SystemStyleObject | undefined;
2184
- }, "ref">, "onChange" | "value" | "onValueChange"> & {
2184
+ }, "ref">, "value" | "onChange" | "onValueChange"> & {
2185
2185
  value: number[];
2186
2186
  maxLabelText?: string;
2187
2187
  minLabelText?: string;
@@ -14,7 +14,7 @@ declare const __CommandInput: StyledComponent<React.ForwardRefExoticComponent<Om
14
14
  ref?: React.Ref<HTMLInputElement>;
15
15
  } & {
16
16
  asChild?: boolean;
17
- }, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "asChild">, "onChange" | "type" | "value"> & {
17
+ }, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "asChild">, "value" | "type" | "onChange"> & {
18
18
  value?: string;
19
19
  onValueChange?: (search: string) => void;
20
20
  } & React.RefAttributes<HTMLInputElement>>, {}>;
@@ -63,7 +63,7 @@ declare const __CommandItem: StyledComponent<React.ForwardRefExoticComponent<{
63
63
  ref?: React.Ref<HTMLDivElement>;
64
64
  } & {
65
65
  asChild?: boolean;
66
- }, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild">, "onSelect" | "disabled" | "value"> & {
66
+ }, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild">, "value" | "onSelect" | "disabled"> & {
67
67
  disabled?: boolean;
68
68
  onSelect?: (value: string) => void;
69
69
  value?: string;
@@ -234,7 +234,7 @@
234
234
  "marginRight]___[value:-xs",
235
235
  "lineHeight]___[value:unset",
236
236
  "display]___[value:flex !important",
237
- "width]___[value:0",
237
+ "display]___[value:block",
238
238
  "wordBreak]___[value:break-all",
239
239
  "fontFamily]___[value:mono",
240
240
  "color]___[value:primary",
package/dist/panda.css CHANGED
@@ -2935,8 +2935,8 @@
2935
2935
  display: flex !important
2936
2936
  }
2937
2937
 
2938
- .w_0 {
2939
- width: var(--sizes-0)
2938
+ .d_block {
2939
+ display: block
2940
2940
  }
2941
2941
 
2942
2942
  .break_break-all {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@luxonis/common-fe-components",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
7
- "style-gen": "panda codegen --clean > /dev/null",
8
- "build": "./build.sh",
7
+ "style-gen": "panda codegen --clean",
8
+ "build": "rm -rf ./dist; rm ./tsconfig.tsbuildinfo; ./build.sh",
9
9
  "clean": "rm -rf ./dist ./node_modules ./tsconfig.tsbuildinfo ./src/styled-system",
10
10
  "translation-gen": "typesafe-i18n --no-watch"
11
11
  },
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@hookform/resolvers": "^3.9.0",
25
- "@luxonis/common-fe-utils": "^1.18.1",
25
+ "@luxonis/common-fe-utils": "^1.19.0",
26
26
  "@radix-ui/react-accordion": "^1.2.0",
27
27
  "@radix-ui/react-alert-dialog": "^1.1.1",
28
28
  "@radix-ui/react-aspect-ratio": "^1.1.0",
@@ -84,6 +84,6 @@
84
84
  "registry": "https://registry.npmjs.org",
85
85
  "access": "public"
86
86
  },
87
- "gitHead": "72c8593daf3369ff5b4991eb609d196edf6b52f7",
87
+ "gitHead": "ea07a009bb099325fae394cfcaa963082dfc761c",
88
88
  "license": "UNLICENSED"
89
89
  }
@@ -1,13 +0,0 @@
1
- import type { DeviceModel } from '~/models/setup/configuration-schema/configuration.schema';
2
- import type { LegacyOakFragment } from '~/gql.generated';
3
- export declare const DEVICE_IMAGE_PATH = "/images/devices";
4
- export declare function getDeviceInformationByModel(model: DeviceModel): DeviceInformation;
5
- export declare function getDeviceNameByModel(model: DeviceModel): string;
6
- export type DeviceInformation = {
7
- model: DeviceModel;
8
- deviceName: string;
9
- deviceImageName: string;
10
- setupSteps: (string | JSX.Element)[];
11
- };
12
- export declare function getDeviceNameFromInfo(device: LegacyOakFragment): string;
13
- //# sourceMappingURL=oak4-device-info.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oak4-device-info.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/oak4/oak4-device-info.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AAEnD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,WAAW,GAAG,iBAAiB,CAmDjF;AAUD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAsB/D;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,WAAW,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,CAAC,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;CACtC,CAAC;AASF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAQvE"}
@@ -1,100 +0,0 @@
1
- import { log } from '@luxonis/common-fe-utils';
2
- export const DEVICE_IMAGE_PATH = '/images/devices';
3
- export function getDeviceInformationByModel(model) {
4
- switch (model) {
5
- case 'rae': {
6
- return {
7
- model,
8
- deviceName: getDeviceNameByModel(model),
9
- deviceImageName: `${DEVICE_IMAGE_PATH}/rae.webp`,
10
- setupSteps: [
11
- `Press and hold the power button on the ${getDeviceNameByModel(model)} for 10 seconds to activate it. You will know it is fully powered up when the robot emits a purple-orange light.`,
12
- `Aim the RGB camera, situated near the display, directly at the QR code. Ensure the camera is perpendicular to the screen, maintaining an ideal distance of about 6-8 inches (15-20 cm).`,
13
- `Once the Rae Robot starts blinking with a vivid green color, click the 'Continue' button to proceed.`,
14
- ],
15
- };
16
- }
17
- case 'oak4s': {
18
- return {
19
- model,
20
- deviceName: getDeviceNameByModel(model),
21
- deviceImageName: 'https://static.luxonis.com/images/cameras/OAK4-S.webp',
22
- setupSteps: getOak4SetupSteps(model),
23
- };
24
- }
25
- case 'oak4d': {
26
- return {
27
- model,
28
- deviceName: getDeviceNameByModel(model),
29
- deviceImageName: 'https://static.luxonis.com/images/cameras/OAK4-D.webp',
30
- setupSteps: getOak4SetupSteps(model),
31
- };
32
- }
33
- case 'oak4lr': {
34
- return {
35
- model,
36
- deviceName: getDeviceNameByModel(model),
37
- deviceImageName: 'https://static.luxonis.com/images/cameras/OAK4-LR.webp',
38
- setupSteps: getOak4SetupSteps(model),
39
- };
40
- }
41
- case 'oak4sr': {
42
- return {
43
- model,
44
- deviceName: getDeviceNameByModel(model),
45
- deviceImageName: `${DEVICE_IMAGE_PATH}/oak4-d-sr.webp`,
46
- setupSteps: getOak4SetupSteps(model),
47
- };
48
- }
49
- default: {
50
- log.error(`Device context received unsupported model: ${model}`);
51
- return emptyDeviceInformation;
52
- }
53
- }
54
- }
55
- function getOak4SetupSteps(model) {
56
- return [
57
- `Connect the PoE/ETH cable to power up the ${getDeviceNameByModel(model)}`,
58
- `Scan the QR code.`,
59
- 'Scanning the QR code will take a few seconds. Try keeping the camera steady without moving your hands.',
60
- ];
61
- }
62
- export function getDeviceNameByModel(model) {
63
- switch (model) {
64
- case 'rae': {
65
- return 'Rae Robot';
66
- }
67
- case 'oak4s': {
68
- return 'OAK4-S';
69
- }
70
- case 'oak4d': {
71
- return 'OAK4-D';
72
- }
73
- case 'oak4lr': {
74
- return 'OAK4-LR';
75
- }
76
- case 'oak4sr': {
77
- return 'OAK4-SR';
78
- }
79
- default: {
80
- log.error(`Unknown device model: ${model}`);
81
- return 'Unknown device';
82
- }
83
- }
84
- }
85
- const emptyDeviceInformation = {
86
- deviceName: '',
87
- deviceImageName: '',
88
- setupSteps: [],
89
- model: 'rae',
90
- };
91
- export function getDeviceNameFromInfo(device) {
92
- if (device.name && device.name !== '' && device.name !== device.serialNumber) {
93
- return device.name;
94
- }
95
- if (device.serialNumber && device.serialNumber !== '' && device.serialNumber !== 'unknown') {
96
- return device.serialNumber;
97
- }
98
- return 'unknown';
99
- }
100
- //# sourceMappingURL=oak4-device-info.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oak4-device-info.js","sourceRoot":"","sources":["../../../../src/components/custom/oak4/oak4-device-info.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAK/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAEnD,MAAM,UAAU,2BAA2B,CAAC,KAAkB;IAC5D,QAAQ,KAAK,EAAE,CA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C7B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,4 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const Oak4DeviceModelSchema: z.ZodEnum<["oak4d", "oak4lr", "oak4sr", "oak4s"]>;
3
- export type Oak4DeviceModel = z.infer<typeof Oak4DeviceModelSchema>;
4
- //# sourceMappingURL=oak4-model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oak4-model.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/oak4/oak4-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,mDAAiD,CAAC;AAEpF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { z } from 'zod';
2
- export const Oak4DeviceModelSchema = z.enum(['oak4d', 'oak4lr', 'oak4sr', 'oak4s']);
3
- //# sourceMappingURL=oak4-model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oak4-model.js","sourceRoot":"","sources":["../../../../src/components/custom/oak4/oak4-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC"}