@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,71 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const DEVICE_ID = ['RAE', 'OAK4-D', 'OAK4-D-PRO', 'OAK4-S', 'OAK4-LR', 'OAK4-SR'];
|
|
3
|
+
// RVC2 devices - NOTE: This is subject to change. Used the values from Product Database which may or may not be the same with DAI values
|
|
4
|
+
export const RVC2_DEVICES = [
|
|
5
|
+
'OAK-D S2 AF',
|
|
6
|
+
'OAK-D S2 FF',
|
|
7
|
+
'OAK-D-W',
|
|
8
|
+
'OAK-D-W-97',
|
|
9
|
+
'OAK-D Pro AF',
|
|
10
|
+
'OAK-D Pro FF',
|
|
11
|
+
'OAK-D Pro FF 97',
|
|
12
|
+
'OAK-D Pro W',
|
|
13
|
+
'OAK-D Pro W 97',
|
|
14
|
+
'OAK-D-Lite AF',
|
|
15
|
+
'OAK-D-Lite FF',
|
|
16
|
+
'OAK-D',
|
|
17
|
+
'OAK-D-S2 PoE AF',
|
|
18
|
+
'OAK-D-S2 PoE FF',
|
|
19
|
+
'OAK-D W PoE',
|
|
20
|
+
'OAK-D-W PoE 97',
|
|
21
|
+
'OAK-D-Pro PoE AF',
|
|
22
|
+
'OAK-D-Pro PoE FF',
|
|
23
|
+
'OAK-D-Pro PoE FF 97',
|
|
24
|
+
'OAK-D-Pro W PoE',
|
|
25
|
+
'OAK-D-Pro W PoE 97',
|
|
26
|
+
'OAK-D-PoE',
|
|
27
|
+
'OAK-1-PoE AF',
|
|
28
|
+
'OAK-1-PoE FF',
|
|
29
|
+
'OAK-1 W PoE',
|
|
30
|
+
'OAK-1 W PoE 97',
|
|
31
|
+
'OAK-1 AF',
|
|
32
|
+
'OAK-1 FF',
|
|
33
|
+
'OAK-1 FF 97',
|
|
34
|
+
'OAK-1 W',
|
|
35
|
+
'OAK-1 W 97',
|
|
36
|
+
'OAK-1 MAX',
|
|
37
|
+
'OAK-1-Lite AF',
|
|
38
|
+
'OAK-1-Lite FF',
|
|
39
|
+
'OAK-1-Lite W',
|
|
40
|
+
'OAK-D CM4',
|
|
41
|
+
'OAK-D CM4 PoE',
|
|
42
|
+
'OAK-D LR',
|
|
43
|
+
'OAK-D SR',
|
|
44
|
+
'OAK-D SR PoE',
|
|
45
|
+
];
|
|
46
|
+
// RVC3 devices
|
|
47
|
+
export const RVC3_DEVICES = ['RAE'];
|
|
48
|
+
// RVC4 devices
|
|
49
|
+
export const RVC4_DEVICES = [
|
|
50
|
+
'OAK4-D',
|
|
51
|
+
'OAK4-D-AF',
|
|
52
|
+
'OAK4-D-FF',
|
|
53
|
+
'OAK4-D-W',
|
|
54
|
+
'OAK4-D-PRO',
|
|
55
|
+
'OAK4-D-PRO-AF',
|
|
56
|
+
'OAK4-D-PRO-FF',
|
|
57
|
+
'OAK4-D-PRO-W',
|
|
58
|
+
'OAK4-S',
|
|
59
|
+
'OAK4-S-AF',
|
|
60
|
+
'OAK4-S-FF',
|
|
61
|
+
'OAK4-S-W',
|
|
62
|
+
'OAK4-LR',
|
|
63
|
+
'OAK4-SR',
|
|
64
|
+
];
|
|
65
|
+
export const devicesList = [...RVC2_DEVICES, ...RVC3_DEVICES, ...RVC4_DEVICES];
|
|
66
|
+
export const RVC2DevicesSchema = z.enum(RVC2_DEVICES);
|
|
67
|
+
export const RVC3DevicesSchema = z.enum(RVC3_DEVICES);
|
|
68
|
+
export const RVC4DevicesSchema = z.enum(RVC4_DEVICES);
|
|
69
|
+
export const DeviceIDSchema = z.enum(DEVICE_ID);
|
|
70
|
+
export const DeviceListSchema = z.enum(devicesList);
|
|
71
|
+
//# sourceMappingURL=devices-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices-list.js","sourceRoot":"","sources":["../../../../src/components/custom/devices/devices-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,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AC,IAAI,CAAC,YAAY,CAAC,CAAC;AAGtD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAGhD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DeviceID, DeviceList } from './devices-list.js';
|
|
2
|
+
import { type DeviceFamily } from './devices-family.js';
|
|
3
|
+
export type DeviceInformation = {
|
|
4
|
+
info: DeviceFamily;
|
|
5
|
+
deviceName: string;
|
|
6
|
+
deviceImageName: string;
|
|
7
|
+
setupSteps: (string | JSX.Element)[];
|
|
8
|
+
};
|
|
9
|
+
export declare function getDeviceInformationByModel(device: DeviceList): DeviceInformation;
|
|
10
|
+
export declare const getDeviceNameByModel: (base: DeviceID) => string;
|
|
11
|
+
export declare const getSetupSteps: (base: DeviceID) => (string | React.JSX.Element)[];
|
|
12
|
+
//# sourceMappingURL=devices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/devices/devices.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAgC,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGtF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,YAAY,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;AAEF,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,UAAU,GAAG,iBAAiB,CA4BjF;AAED,eAAO,MAAM,oBAAoB,SAAU,QAAQ,KAAG,MAsBrD,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,QAAQ,KAAG,CAAC,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,EAyB1E,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { log } from '@luxonis/common-fe-utils';
|
|
2
|
+
import { getProductToDeviceProperties } from './devices-family.js';
|
|
3
|
+
import { DEVICE_IMAGE_PATH, DEVICE_IMAGES_LINK, emptyDeviceInformation } from './devices-constants.js';
|
|
4
|
+
export function getDeviceInformationByModel(device) {
|
|
5
|
+
const info = getProductToDeviceProperties(device);
|
|
6
|
+
switch (info.id) {
|
|
7
|
+
case 'OAK4-S':
|
|
8
|
+
case 'OAK4-D':
|
|
9
|
+
case 'OAK4-LR':
|
|
10
|
+
case 'OAK4-SR':
|
|
11
|
+
case 'OAK4-D-PRO': {
|
|
12
|
+
return {
|
|
13
|
+
info,
|
|
14
|
+
deviceName: getDeviceNameByModel(info.id),
|
|
15
|
+
deviceImageName: `${DEVICE_IMAGES_LINK}/${info.id}.webp`,
|
|
16
|
+
setupSteps: getSetupSteps(info.id),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
case 'RAE': {
|
|
20
|
+
return {
|
|
21
|
+
info,
|
|
22
|
+
deviceName: getDeviceNameByModel(info.id),
|
|
23
|
+
deviceImageName: `${DEVICE_IMAGE_PATH}/rae.webp`,
|
|
24
|
+
setupSteps: getSetupSteps(info.id),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
default: {
|
|
28
|
+
log.error(`Device context received unsupported model: ${info.id}`);
|
|
29
|
+
return emptyDeviceInformation;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export const getDeviceNameByModel = (base) => {
|
|
34
|
+
switch (base) {
|
|
35
|
+
case 'RAE': {
|
|
36
|
+
return 'Rae Robot';
|
|
37
|
+
}
|
|
38
|
+
case 'OAK4-S': {
|
|
39
|
+
return 'OAK 4 S';
|
|
40
|
+
}
|
|
41
|
+
case 'OAK4-D': {
|
|
42
|
+
return 'OAK 4 D Pro';
|
|
43
|
+
}
|
|
44
|
+
case 'OAK4-LR': {
|
|
45
|
+
return 'OAK 4 LR';
|
|
46
|
+
}
|
|
47
|
+
case 'OAK4-SR': {
|
|
48
|
+
return 'OAK 4 SR';
|
|
49
|
+
}
|
|
50
|
+
default: {
|
|
51
|
+
log.error(`Unknown device model: ${base}`);
|
|
52
|
+
return 'Unknown device';
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export const getSetupSteps = (base) => {
|
|
57
|
+
switch (base) {
|
|
58
|
+
case 'OAK4-S':
|
|
59
|
+
case 'OAK4-D':
|
|
60
|
+
case 'OAK4-LR':
|
|
61
|
+
case 'OAK4-SR':
|
|
62
|
+
case 'OAK4-D-PRO': {
|
|
63
|
+
return [
|
|
64
|
+
`Connect the PoE/ETH cable to power up the ${getDeviceNameByModel(base)}`,
|
|
65
|
+
`Scan the QR code.`,
|
|
66
|
+
'Scanning the QR code will take a few seconds. Try keeping the camera steady without moving your hands.',
|
|
67
|
+
];
|
|
68
|
+
}
|
|
69
|
+
case 'RAE': {
|
|
70
|
+
return [
|
|
71
|
+
`Press and hold the power button on the ${getDeviceNameByModel(base)} for 10 seconds to activate it. You will know it is fully powered up when the robot emits a purple-orange light.`,
|
|
72
|
+
`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).`,
|
|
73
|
+
`Once the Rae Robot starts blinking with a vivid green color, click the 'Continue' button to proceed.`,
|
|
74
|
+
];
|
|
75
|
+
}
|
|
76
|
+
default: {
|
|
77
|
+
log.error(`Unknown device model: ${base}`);
|
|
78
|
+
return [];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=devices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../../../src/components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,CAAC;YACX,OAAO,WAAW,CAAC;QACrB,CAAC;QACD,KAAK,QAAQ,CAAC,CAAC,CAAC;YACd,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,KAAK,QAAQ,CAAC,CAAC,CAAC;YACd,OAAO,aAAa,CAAC;QACvB,CAAC;QACD,KAAK,SAAS,CAAC,CAAC,CAAC;YACf,OAAO,UAAU,CAAC;QACpB,CAAC;QACD,KAAK,SAAS,CAAC,CAAC,CAAC;YACf,OAAO,UAAU,CAAC;QACpB,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;YACR,GAAG,CAAC,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;YAC3C,OAAO,gBAAgB,CAAC;QAC1B,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAc,EAAkC,EAAE;IAC9E,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS,CAAC;QACf,KAAK,SAAS,CAAC;QACf,KAAK,YAAY,CAAC,CAAC,CAAC;YAClB,OAAO;gBACL,6CAA6C,oBAAoB,CAAC,IAAI,CAAC,EAAE;gBACzE,mBAAmB;gBACnB,wGAAwG;aACzG,CAAC;QACJ,CAAC;QACD,KAAK,KAAK,CAAC,CAAC,CAAC;YACX,OAAO;gBACL,0CAA0C,oBAAoB,CAAC,IAAI,CAAC,kHAAkH;gBACtL,yLAAyL;gBACzL,sGAAsG;aACvG,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;YACR,GAAG,CAAC,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;YAC3C,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/devices/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,cAAc,mBAAmB,CAAC;AAElC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/custom/devices/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,cAAc,mBAAmB,CAAC;AAElC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,wBAAwB,CAAC"}
|
|
@@ -8,6 +8,7 @@ export * from './LabelledProgress.js';
|
|
|
8
8
|
export * from './Card.js';
|
|
9
9
|
export * from './Badge.js';
|
|
10
10
|
export * from './BadgeLine.js';
|
|
11
|
+
export * from './BadgeButton.js';
|
|
11
12
|
export * from './CardList.js';
|
|
12
13
|
export * from './SourceCode.js';
|
|
13
14
|
export * from './Grid.js';
|
|
@@ -41,6 +42,5 @@ export * from './Input.js';
|
|
|
41
42
|
export * from './FilterDropdown.js';
|
|
42
43
|
export * from './Command.js';
|
|
43
44
|
export * from './oak4/Oak4DeviceCard.js';
|
|
44
|
-
export * from './
|
|
45
|
-
export * from './oak4/device-info.js';
|
|
45
|
+
export * from './devices/index.js';
|
|
46
46
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/custom/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAE3B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,mBAAmB,CAAC;AAElC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AAEtC,cAAc,WAAW,CAAC;AAE1B,cAAc,YAAY,CAAC;AAE3B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,eAAe,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,WA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c,WAAW,CAAC;AAE1B,cAAc,eAAe,CAAC;AAE9B,cAAc,eAAe,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,aAAa,CAAC;AAE5B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,WAAW,CAAC;AAE1B,cAAc,kBAAkB,CAAC;AAEjC,cAAc,cAAc,CAAC;AAE7B,cAAc,sBAAsB,CAAC;AAErC,cAAc,cAAc,CAAC;AAE7B,cAAc,aAAa,CAAC;AAE5B,cAAc,WAAW,CAAC;AAE1B,cAAc,WAAW,CAAC;AAE1B,cAAc,aAAa,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,aAAa,CAAC;AAE5B,cAAc,YAAY,CAAC;AAE3B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,aAAa,CAAC;AAE5B,cAAc,mBAAmB,CAAC;AAElC,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,YAAY,CAAC;AAE3B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,cAAc,CAAC;AAE7B,cAAc,0BAA0B,CAAC;AAMzC,cAAc,oBAAoB,CAAC"}
|
|
@@ -8,6 +8,7 @@ export * from './LabelledProgress.js';
|
|
|
8
8
|
export * from './Card.js';
|
|
9
9
|
export * from './Badge.js';
|
|
10
10
|
export * from './BadgeLine.js';
|
|
11
|
+
export * from './BadgeButton.js';
|
|
11
12
|
export * from './CardList.js';
|
|
12
13
|
export * from './SourceCode.js';
|
|
13
14
|
export * from './Grid.js';
|
|
@@ -41,6 +42,7 @@ export * from './Input.js';
|
|
|
41
42
|
export * from './FilterDropdown.js';
|
|
42
43
|
export * from './Command.js';
|
|
43
44
|
export * from './oak4/Oak4DeviceCard.js';
|
|
44
|
-
export * from './oak4/device-model.js';
|
|
45
|
-
export * from './oak4/device-info.js';
|
|
45
|
+
// export * from './oak4/device-model.js';
|
|
46
|
+
// export * from './oak4/device-info.js';
|
|
47
|
+
export * from './devices/index.js';
|
|
46
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/custom/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAE3B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,mBAAmB,CAAC;AAElC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AAEtC,cAAc,WAAW,CAAC;AAE1B,cAAc,YAAY,CAAC;AAE3B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,eAAe,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,WAAW,CAAC;AAE1B,cAAc,eAAe,CAAC;AAE9B,cAAc,eAAe,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,aAAa,CAAC;AAE5B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,WAAW,CAAC;AAE1B,cAAc,kBAAkB,CAAC;AAEjC,cAAc,cAAc,CAAC;AAE7B,cAAc,sBAAsB,CAAC;AAErC,cAAc,cAAc,CAAC;AAE7B,cAAc,aAAa,CAAC;AAE5B,cAAc,WAAW,CAAC;AAE1B,cAAc,WAAW,CAAC;AAE1B,cAAc,aAAa,CAAC;AAE5B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,aAAa,CAAC;AAE5B,cAAc,YAAY,CAAC;AAE3B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,aAAa,CAAC;AAE5B,cAAc,mBAAmB,CAAC;AAElC,cAAc,eAAe,CAA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AAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,YAAY,CAAC;AAE3B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,cAAc,CAAC;AAE7B,cAAc,0BAA0B,CAAC;AAEzC,0CAA0C;AAE1C,yCAAyC;AAEzC,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DeviceID } from '../devices/devices-list.js';
|
|
2
2
|
type Oak4DeviceCardProps = {
|
|
3
|
-
device:
|
|
4
|
-
onClick: (device:
|
|
3
|
+
device: DeviceID;
|
|
4
|
+
onClick: (device: DeviceID) => void;
|
|
5
5
|
isSelected: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare function Oak4DeviceCard(props: Readonly<Oak4DeviceCardProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Oak4DeviceCard.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/oak4/Oak4DeviceCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Oak4DeviceCard.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/oak4/Oak4DeviceCard.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAM3D,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,mBAAmB,CAAC,2CAclE"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { getDeviceInformationByModel } from '../devices/devices.js';
|
|
2
4
|
import { NormalText } from '../Text';
|
|
3
|
-
import { Card } from '../Card';
|
|
4
|
-
import { getDeviceInformationByModel } from './device-info';
|
|
5
5
|
import { Circle } from '../Circle';
|
|
6
|
+
import { Card } from '../Card';
|
|
6
7
|
import { Wrap } from '../../../styled-system/jsx/wrap.mjs';
|
|
7
8
|
export function Oak4DeviceCard(props) {
|
|
8
9
|
const { device, onClick, isSelected } = props;
|
|
9
|
-
const deviceInfo = getDeviceInformationByModel(device);
|
|
10
|
+
const deviceInfo = React.useMemo(() => getDeviceInformationByModel(device), [device]);
|
|
10
11
|
return (_jsx(Card, { onClick: () => onClick(device), withHoverEffect: true, fullWidth: true, colorVariant: isSelected ? 'active' : 'white', children: _jsxs(Wrap, { align: "center", children: [_jsx(Circle, { variant: "icon", children: _jsx("img", { src: deviceInfo.deviceImageName, alt: deviceInfo.deviceName }) }), _jsx(NormalText, { text: deviceInfo.deviceName })] }) }));
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=Oak4DeviceCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Oak4DeviceCard.js","sourceRoot":"","sources":["../../../../src/components/custom/oak4/Oak4DeviceCard.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Oak4DeviceCard.js","sourceRoot":"","sources":["../../../../src/components/custom/oak4/Oak4DeviceCard.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAQ3D,MAAM,UAAU,cAAc,CAAC,KAAoC;IACjE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC9C,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEtF,OAAO,CACL,KAAC,IAAI,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,eAAe,QAAC,SAAS,QAAC,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,YAC3G,MAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,aAClB,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,YACpB,cAAK,GAAG,EAAE,UAAU,CAAC,eAAe,EAAE,GAAG,EAAE,UAAU,CAAC,UAAU,GAAI,GAC7D,EACT,KAAC,UAAU,IAAC,IAAI,EAAE,UAAU,CAAC,UAAU,GAAI,IACtC,GACF,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
import type { DeviceModel } from './device-model';
|
|
2
|
-
export declare const DEVICE_IMAGE_PATH = "/images/devices";
|
|
3
|
-
export declare function getDeviceInformationByModel(model: DeviceModel): DeviceInformation;
|
|
4
|
-
export declare function getDeviceNameByModel(model: DeviceModel): string;
|
|
5
|
-
export type DeviceInformation = {
|
|
6
|
-
model: DeviceModel;
|
|
7
|
-
deviceName: string;
|
|
8
|
-
deviceImageName: string;
|
|
9
|
-
setupSteps: (string | JSX.Element)[];
|
|
10
|
-
};
|
|
11
1
|
//# sourceMappingURL=device-info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-info.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/oak4/device-info.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"device-info.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/oak4/device-info.ts"],"names":[],"mappings":""}
|
|
@@ -1,91 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// import type React from 'react';
|
|
3
|
+
// import { log } from '@luxonis/common-fe-utils';
|
|
4
|
+
// import type { DeviceModel } from './device-model';
|
|
5
|
+
// export const DEVICE_IMAGE_PATH = '/images/devices';
|
|
6
|
+
// export function getDeviceInformationByModel(model: DeviceModel): DeviceInformation {
|
|
7
|
+
// switch (model) {
|
|
8
|
+
// case 'rae': {
|
|
9
|
+
// return {
|
|
10
|
+
// model,
|
|
11
|
+
// deviceName: getDeviceNameByModel(model),
|
|
12
|
+
// deviceImageName: `${DEVICE_IMAGE_PATH}/rae.webp`,
|
|
13
|
+
// setupSteps: [
|
|
14
|
+
// `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.`,
|
|
15
|
+
// `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).`,
|
|
16
|
+
// `Once the Rae Robot starts blinking with a vivid green color, click the 'Continue' button to proceed.`,
|
|
17
|
+
// ],
|
|
18
|
+
// };
|
|
19
|
+
// }
|
|
20
|
+
// case 'oak4s': {
|
|
21
|
+
// return {
|
|
22
|
+
// model,
|
|
23
|
+
// deviceName: getDeviceNameByModel(model),
|
|
24
|
+
// deviceImageName: 'https://static.luxonis.com/images/cameras/OAK4-S.webp',
|
|
25
|
+
// setupSteps: getOak4SetupSteps(model),
|
|
26
|
+
// };
|
|
27
|
+
// }
|
|
28
|
+
// case 'oak4d': {
|
|
29
|
+
// return {
|
|
30
|
+
// model,
|
|
31
|
+
// deviceName: getDeviceNameByModel(model),
|
|
32
|
+
// deviceImageName: 'https://static.luxonis.com/images/cameras/OAK4-D.webp',
|
|
33
|
+
// setupSteps: getOak4SetupSteps(model),
|
|
34
|
+
// };
|
|
35
|
+
// }
|
|
36
|
+
// case 'oak4lr': {
|
|
37
|
+
// return {
|
|
38
|
+
// model,
|
|
39
|
+
// deviceName: getDeviceNameByModel(model),
|
|
40
|
+
// deviceImageName: 'https://static.luxonis.com/images/cameras/OAK4-LR.webp',
|
|
41
|
+
// setupSteps: getOak4SetupSteps(model),
|
|
42
|
+
// };
|
|
43
|
+
// }
|
|
44
|
+
// case 'oak4sr': {
|
|
45
|
+
// return {
|
|
46
|
+
// model,
|
|
47
|
+
// deviceName: getDeviceNameByModel(model),
|
|
48
|
+
// deviceImageName: `${DEVICE_IMAGE_PATH}/oak4-d-sr.webp`,
|
|
49
|
+
// setupSteps: getOak4SetupSteps(model),
|
|
50
|
+
// };
|
|
51
|
+
// }
|
|
52
|
+
// default: {
|
|
53
|
+
// log.error(`Device context received unsupported model: ${model}`);
|
|
54
|
+
// return emptyDeviceInformation;
|
|
55
|
+
// }
|
|
56
|
+
// }
|
|
57
|
+
// }
|
|
58
|
+
// function getOak4SetupSteps(model: DeviceModel): (string | React.JSX.Element)[] {
|
|
59
|
+
// return [
|
|
60
|
+
// `Connect the PoE/ETH cable to power up the ${getDeviceNameByModel(model)}`,
|
|
61
|
+
// `Scan the QR code.`,
|
|
62
|
+
// 'Scanning the QR code will take a few seconds. Try keeping the camera steady without moving your hands.',
|
|
63
|
+
// ];
|
|
64
|
+
// }
|
|
65
|
+
// export function getDeviceNameByModel(model: DeviceModel): string {
|
|
66
|
+
// switch (model) {
|
|
67
|
+
// case 'rae': {
|
|
68
|
+
// return 'Rae Robot';
|
|
69
|
+
// }
|
|
70
|
+
// case 'oak4s': {
|
|
71
|
+
// return 'OAK 4 S';
|
|
72
|
+
// }
|
|
73
|
+
// case 'oak4d': {
|
|
74
|
+
// return 'OAK 4 D Pro';
|
|
75
|
+
// }
|
|
76
|
+
// case 'oak4lr': {
|
|
77
|
+
// return 'OAK 4 LR';
|
|
78
|
+
// }
|
|
79
|
+
// case 'oak4sr': {
|
|
80
|
+
// return 'OAK 4 SR';
|
|
81
|
+
// }
|
|
82
|
+
// default: {
|
|
83
|
+
// log.error(`Unknown device model: ${model}`);
|
|
84
|
+
// return 'Unknown device';
|
|
85
|
+
// }
|
|
86
|
+
// }
|
|
87
|
+
// }
|
|
88
|
+
// export type DeviceInformation = {
|
|
89
|
+
// model: DeviceModel;
|
|
90
|
+
// deviceName: string;
|
|
91
|
+
// deviceImageName: string;
|
|
92
|
+
// setupSteps: (string | JSX.Element)[];
|
|
93
|
+
// };
|
|
94
|
+
// const emptyDeviceInformation: DeviceInformation = {
|
|
95
|
+
// deviceName: '',
|
|
96
|
+
// deviceImageName: '',
|
|
97
|
+
// setupSteps: [],
|
|
98
|
+
// model: 'rae',
|
|
99
|
+
// };
|
|
91
100
|
//# sourceMappingURL=device-info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-info.js","sourceRoot":"","sources":["../../../../src/components/custom/oak4/device-info.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"device-info.js","sourceRoot":"","sources":["../../../../src/components/custom/oak4/device-info.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,kDAAkD;AAElD,qDAAqD;AAErD,sDAAsD;AAEtD,uFAAuF;AACvF,qBAAqB;AACrB,oBAAoB;AACpB,iBAAiB;AACjB,iBAAiB;AACjB,mDAAmD;AACnD,4DAA4D;AAC5D,wBAAwB;AACxB,qMAAqM;AACrM,uMAAuM;AACvM,oHAAoH;AACpH,aAAa;AACb,WAAW;AACX,QAAQ;AACR,sBAAsB;AACtB,iBAAiB;AACjB,iBAAiB;AACjB,mDAAmD;AACnD,oFAAoF;AACpF,gDAAgD;AAChD,WAAW;AACX,QAAQ;AACR,sBAAsB;AACtB,iBAAiB;AACjB,iBAAiB;AACjB,mDAAmD;AACnD,oFAAoF;AACpF,gDAAgD;AAChD,WAAW;AACX,QAAQ;AACR,uBAAuB;AACvB,iBAAiB;AACjB,iBAAiB;AACjB,mDAAmD;AACnD,qFAAqF;AACrF,gDAAgD;AAChD,WAAW;AACX,QAAQ;AACR,uBAAuB;AACvB,iBAAiB;AACjB,iBAAiB;AACjB,mDAAmD;AACnD,kEAAkE;AAClE,gDAAgD;AAChD,WAAW;AACX,QAAQ;AACR,iBAAiB;AACjB,0EAA0E;AAC1E,uCAAuC;AACvC,QAAQ;AACR,MAAM;AACN,IAAI;AAEJ,mFAAmF;AACnF,aAAa;AACb,kFAAkF;AAClF,2BAA2B;AAC3B,gHAAgH;AAChH,OAAO;AACP,IAAI;AAEJ,qEAAqE;AACrE,qBAAqB;AACrB,oBAAoB;AACpB,4BAA4B;AAC5B,QAAQ;AACR,sBAAsB;AACtB,0BAA0B;AAC1B,QAAQ;AACR,sBAAsB;AACtB,8BAA8B;AAC9B,QAAQ;AACR,uBAAuB;AACvB,2BAA2B;AAC3B,QAAQ;AACR,uBAAuB;AACvB,2BAA2B;AAC3B,QAAQ;AACR,iBAAiB;AACjB,qDAAqD;AACrD,iCAAiC;AACjC,QAAQ;AACR,MAAM;AACN,IAAI;AAEJ,oCAAoC;AACpC,wBAAwB;AACxB,wBAAwB;AACxB,6BAA6B;AAC7B,0CAA0C;AAC1C,KAAK;AAEL,sDAAsD;AACtD,oBAAoB;AACpB,yBAAyB;AACzB,oBAAoB;AACpB,kBAAkB;AAClB,KAAK"}
|
|
@@ -1,6 +1 @@
|
|
|
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
|
-
export declare const DeviceModelSchema: z.ZodEnum<["rae", "oak4d", "oak4lr", "oak4sr", "oak4s"]>;
|
|
5
|
-
export type DeviceModel = z.infer<typeof DeviceModelSchema>;
|
|
6
1
|
//# sourceMappingURL=device-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-model.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/oak4/device-model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"device-model.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/oak4/device-model.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export const
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { z } from 'zod';
|
|
3
|
+
// const Oak4Models = ['oak4d', 'oak4lr', 'oak4sr', 'oak4s'] as const;
|
|
4
|
+
// export const Oak4DeviceModelSchema = z.enum(Oak4Models);
|
|
5
|
+
// export type Oak4DeviceModel = z.infer<typeof Oak4DeviceModelSchema>;
|
|
6
|
+
// export const DeviceModelSchema = z.enum(['rae', ...Oak4Models]);
|
|
7
|
+
// export type DeviceModel = z.infer<typeof DeviceModelSchema>;
|
|
5
8
|
//# sourceMappingURL=device-model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-model.js","sourceRoot":"","sources":["../../../../src/components/custom/oak4/device-model.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"device-model.js","sourceRoot":"","sources":["../../../../src/components/custom/oak4/device-model.ts"],"names":[],"mappings":";AAAA,2BAA2B;AAE3B,sEAAsE;AAEtE,2DAA2D;AAE3D,uEAAuE;AAEvE,mEAAmE;AAEnE,+DAA+D"}
|
|
@@ -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" |
|
|
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
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
66
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "onSelect" | "disabled"> & {
|
|
67
67
|
disabled?: boolean;
|
|
68
68
|
onSelect?: (value: string) => void;
|
|
69
69
|
value?: string;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
3
3
|
export declare const _Slider: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
4
4
|
showLabels?: boolean;
|
|
5
|
+
thumbSize?: "sm" | "lg";
|
|
5
6
|
} & React.RefAttributes<HTMLSpanElement>>, {}>;
|
|
6
7
|
export declare const _DoubleSlider: import("../../styled-system/types/jsx.mjs").StyledComponent<React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
7
8
|
showLabels?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_Slider.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/_Slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"_Slider.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-panda/_Slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAyD1D,eAAO,MAAM,OAAO;iBA7C6D,OAAO;gBAAc,IAAI,GAAG,IAAI;8CA6CxE,CAAC;AAyC1C,eAAO,MAAM,aAAa;iBAnCT,OAAO;mBACL,MAAM;mBACN,MAAM;uBACF,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM;8CAgCP,CAAA"}
|