@draftbit/core 48.4.9-a58004.2 → 48.4.9
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/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
- package/lib/commonjs/components/IconButton.js +1 -1
- package/lib/commonjs/components/Picker/Picker.js +1 -0
- package/lib/commonjs/components/Picker/PickerComponent.android.js +1 -0
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +1 -0
- package/lib/commonjs/components/Picker/PickerComponent.web.js +1 -0
- package/lib/commonjs/components/Picker/PickerTypes.js +1 -0
- package/lib/commonjs/components/TextField.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/utilities.js +1 -1
- package/lib/typescript/src/components/Checkbox/Checkbox.js +1 -1
- package/lib/typescript/src/components/Checkbox/Checkbox.js.map +1 -1
- package/lib/typescript/src/components/IconButton.js +0 -2
- package/lib/typescript/src/components/IconButton.js.map +1 -1
- package/lib/typescript/src/components/Picker/Picker.d.ts +36 -0
- package/lib/typescript/src/components/Picker/Picker.js +288 -0
- package/lib/typescript/src/components/Picker/Picker.js.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +6 -0
- package/lib/typescript/src/components/Picker/PickerComponent.android.js +70 -0
- package/lib/typescript/src/components/Picker/PickerComponent.android.js.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +7 -0
- package/lib/typescript/src/components/Picker/PickerComponent.ios.js +80 -0
- package/lib/typescript/src/components/Picker/PickerComponent.ios.js.map +1 -0
- package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +6 -0
- package/lib/typescript/src/components/Picker/PickerComponent.web.js +71 -0
- package/lib/typescript/src/components/Picker/PickerComponent.web.js.map +1 -0
- package/lib/typescript/src/components/Picker/PickerTypes.d.ts +18 -0
- package/lib/typescript/src/components/Picker/PickerTypes.js +2 -0
- package/lib/typescript/src/components/Picker/PickerTypes.js.map +1 -0
- package/lib/typescript/src/components/TextField.d.ts +3 -3
- package/lib/typescript/src/components/TextField.js +6 -9
- package/lib/typescript/src/components/TextField.js.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.js +1 -1
- package/lib/typescript/src/index.js.map +1 -1
- package/lib/typescript/src/utilities.d.ts +0 -8
- package/lib/typescript/src/utilities.js +1 -22
- package/lib/typescript/src/utilities.js.map +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -5
- package/src/components/Checkbox/Checkbox.js +1 -1
- package/src/components/Checkbox/Checkbox.js.map +1 -1
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/IconButton.js +0 -2
- package/src/components/IconButton.js.map +1 -1
- package/src/components/IconButton.tsx +0 -2
- package/src/components/Picker/Picker.js +288 -0
- package/src/components/Picker/Picker.js.map +1 -0
- package/src/components/Picker/Picker.tsx +509 -0
- package/src/components/Picker/PickerComponent.android.js +70 -0
- package/src/components/Picker/PickerComponent.android.js.map +1 -0
- package/src/components/Picker/PickerComponent.android.tsx +116 -0
- package/src/components/Picker/PickerComponent.ios.js +80 -0
- package/src/components/Picker/PickerComponent.ios.js.map +1 -0
- package/src/components/Picker/PickerComponent.ios.tsx +142 -0
- package/src/components/Picker/PickerComponent.web.js +71 -0
- package/src/components/Picker/PickerComponent.web.js.map +1 -0
- package/src/components/Picker/PickerComponent.web.tsx +117 -0
- package/src/components/Picker/PickerTypes.js +2 -0
- package/src/components/Picker/PickerTypes.js.map +1 -0
- package/src/components/Picker/PickerTypes.ts +18 -0
- package/src/components/TextField.js +6 -9
- package/src/components/TextField.js.map +1 -1
- package/src/components/TextField.tsx +8 -14
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/index.tsx +1 -1
- package/src/utilities.js +1 -22
- package/src/utilities.js.map +1 -1
- package/src/utilities.ts +1 -33
- package/lib/commonjs/components/Picker/NativePicker.js +0 -1
- package/lib/commonjs/components/Picker/PickerCommon.js +0 -1
- package/lib/commonjs/components/Picker/PickerInputContainer.js +0 -1
- package/lib/commonjs/components/Picker/dropdown/DropDownPicker.js +0 -1
- package/lib/commonjs/components/Picker/dropdown/MultiSelectPicker.js +0 -1
- package/lib/commonjs/components/Picker/index.js +0 -1
- package/lib/typescript/src/components/Picker/NativePicker.d.ts +0 -4
- package/lib/typescript/src/components/Picker/NativePicker.js +0 -92
- package/lib/typescript/src/components/Picker/NativePicker.js.map +0 -1
- package/lib/typescript/src/components/Picker/PickerCommon.d.ts +0 -51
- package/lib/typescript/src/components/Picker/PickerCommon.js +0 -23
- package/lib/typescript/src/components/Picker/PickerCommon.js.map +0 -1
- package/lib/typescript/src/components/Picker/PickerInputContainer.d.ts +0 -10
- package/lib/typescript/src/components/Picker/PickerInputContainer.js +0 -37
- package/lib/typescript/src/components/Picker/PickerInputContainer.js.map +0 -1
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.d.ts +0 -6
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js +0 -44
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js.map +0 -1
- package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.d.ts +0 -6
- package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js +0 -9
- package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js.map +0 -1
- package/lib/typescript/src/components/Picker/index.d.ts +0 -9
- package/lib/typescript/src/components/Picker/index.js +0 -16
- package/lib/typescript/src/components/Picker/index.js.map +0 -1
- package/src/components/Picker/NativePicker.js +0 -92
- package/src/components/Picker/NativePicker.js.map +0 -1
- package/src/components/Picker/NativePicker.tsx +0 -152
- package/src/components/Picker/PickerCommon.js +0 -23
- package/src/components/Picker/PickerCommon.js.map +0 -1
- package/src/components/Picker/PickerCommon.ts +0 -87
- package/src/components/Picker/PickerInputContainer.js +0 -37
- package/src/components/Picker/PickerInputContainer.js.map +0 -1
- package/src/components/Picker/PickerInputContainer.tsx +0 -85
- package/src/components/Picker/dropdown/DropDownPicker.js +0 -44
- package/src/components/Picker/dropdown/DropDownPicker.js.map +0 -1
- package/src/components/Picker/dropdown/DropDownPicker.tsx +0 -122
- package/src/components/Picker/dropdown/MultiSelectPicker.js +0 -9
- package/src/components/Picker/dropdown/MultiSelectPicker.js.map +0 -1
- package/src/components/Picker/dropdown/MultiSelectPicker.tsx +0 -16
- package/src/components/Picker/index.js +0 -16
- package/src/components/Picker/index.js.map +0 -1
- package/src/components/Picker/index.tsx +0 -22
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import DropDownPicker from "./DropDownPicker";
|
|
3
|
-
import { withTheme } from "../../../theming";
|
|
4
|
-
const MultiSelectPicker = ({ value, ...rest }) => {
|
|
5
|
-
//@ts-ignore Ignore theme type issues
|
|
6
|
-
return React.createElement(DropDownPicker, { value: value || [], ...rest });
|
|
7
|
-
};
|
|
8
|
-
export default withTheme(MultiSelectPicker);
|
|
9
|
-
//# sourceMappingURL=MultiSelectPicker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelectPicker.js","sourceRoot":"","sources":["MultiSelectPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,iBAAiB,GAEnB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzB,qCAAqC;IACrC,OAAO,oBAAC,cAAc,IAAC,KAAK,EAAE,KAAK,IAAI,EAAE,KAAM,IAAI,GAAI,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
CommonDropDownPickerProps,
|
|
4
|
-
MultiSelectPickerProps,
|
|
5
|
-
} from "../PickerCommon";
|
|
6
|
-
import DropDownPicker from "./DropDownPicker";
|
|
7
|
-
import { withTheme } from "../../../theming";
|
|
8
|
-
|
|
9
|
-
const MultiSelectPicker: React.FC<
|
|
10
|
-
CommonDropDownPickerProps & MultiSelectPickerProps
|
|
11
|
-
> = ({ value, ...rest }) => {
|
|
12
|
-
//@ts-ignore Ignore theme type issues
|
|
13
|
-
return <DropDownPicker value={value || []} {...rest} />;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default withTheme(MultiSelectPicker);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import NativePicker from "./NativePicker";
|
|
3
|
-
import DropDownPicker from "./dropdown/DropDownPicker";
|
|
4
|
-
import { withTheme } from "../../theming";
|
|
5
|
-
const SinglePicker = ({ mode = "native", ...rest }) => {
|
|
6
|
-
switch (mode) {
|
|
7
|
-
case "native":
|
|
8
|
-
return React.createElement(NativePicker, { ...rest });
|
|
9
|
-
case "dropdown":
|
|
10
|
-
//@ts-ignore Ignore theme type issues
|
|
11
|
-
return React.createElement(DropDownPicker, { ...rest });
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export const Picker = withTheme(SinglePicker);
|
|
15
|
-
export { default as MultiSelectPicker } from "./dropdown/MultiSelectPicker";
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,MAAM,YAAY,GAA0B,CAAC,EAAE,IAAI,GAAG,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC3E,QAAQ,IAAI,EAAE;QACZ,KAAK,QAAQ;YACX,OAAO,oBAAC,YAAY,OAAK,IAAI,GAAI,CAAC;QACpC,KAAK,UAAU;YACb,qCAAqC;YACrC,OAAO,oBAAC,cAAc,OAAK,IAAI,GAAI,CAAC;KACvC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CommonDropDownPickerProps, SinglePickerProps } from "./PickerCommon";
|
|
3
|
-
import NativePicker from "./NativePicker";
|
|
4
|
-
import DropDownPicker from "./dropdown/DropDownPicker";
|
|
5
|
-
import { withTheme } from "../../theming";
|
|
6
|
-
|
|
7
|
-
interface PickerProps extends CommonDropDownPickerProps, SinglePickerProps {
|
|
8
|
-
mode?: "native" | "dropdown";
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const SinglePicker: React.FC<PickerProps> = ({ mode = "native", ...rest }) => {
|
|
12
|
-
switch (mode) {
|
|
13
|
-
case "native":
|
|
14
|
-
return <NativePicker {...rest} />;
|
|
15
|
-
case "dropdown":
|
|
16
|
-
//@ts-ignore Ignore theme type issues
|
|
17
|
-
return <DropDownPicker {...rest} />;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const Picker = withTheme(SinglePicker);
|
|
22
|
-
export { default as MultiSelectPicker } from "./dropdown/MultiSelectPicker";
|