@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.
Files changed (112) hide show
  1. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  2. package/lib/commonjs/components/IconButton.js +1 -1
  3. package/lib/commonjs/components/Picker/Picker.js +1 -0
  4. package/lib/commonjs/components/Picker/PickerComponent.android.js +1 -0
  5. package/lib/commonjs/components/Picker/PickerComponent.ios.js +1 -0
  6. package/lib/commonjs/components/Picker/PickerComponent.web.js +1 -0
  7. package/lib/commonjs/components/Picker/PickerTypes.js +1 -0
  8. package/lib/commonjs/components/TextField.js +1 -1
  9. package/lib/commonjs/index.js +1 -1
  10. package/lib/commonjs/utilities.js +1 -1
  11. package/lib/typescript/src/components/Checkbox/Checkbox.js +1 -1
  12. package/lib/typescript/src/components/Checkbox/Checkbox.js.map +1 -1
  13. package/lib/typescript/src/components/IconButton.js +0 -2
  14. package/lib/typescript/src/components/IconButton.js.map +1 -1
  15. package/lib/typescript/src/components/Picker/Picker.d.ts +36 -0
  16. package/lib/typescript/src/components/Picker/Picker.js +288 -0
  17. package/lib/typescript/src/components/Picker/Picker.js.map +1 -0
  18. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +6 -0
  19. package/lib/typescript/src/components/Picker/PickerComponent.android.js +70 -0
  20. package/lib/typescript/src/components/Picker/PickerComponent.android.js.map +1 -0
  21. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +7 -0
  22. package/lib/typescript/src/components/Picker/PickerComponent.ios.js +80 -0
  23. package/lib/typescript/src/components/Picker/PickerComponent.ios.js.map +1 -0
  24. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +6 -0
  25. package/lib/typescript/src/components/Picker/PickerComponent.web.js +71 -0
  26. package/lib/typescript/src/components/Picker/PickerComponent.web.js.map +1 -0
  27. package/lib/typescript/src/components/Picker/PickerTypes.d.ts +18 -0
  28. package/lib/typescript/src/components/Picker/PickerTypes.js +2 -0
  29. package/lib/typescript/src/components/Picker/PickerTypes.js.map +1 -0
  30. package/lib/typescript/src/components/TextField.d.ts +3 -3
  31. package/lib/typescript/src/components/TextField.js +6 -9
  32. package/lib/typescript/src/components/TextField.js.map +1 -1
  33. package/lib/typescript/src/index.d.ts +1 -1
  34. package/lib/typescript/src/index.js +1 -1
  35. package/lib/typescript/src/index.js.map +1 -1
  36. package/lib/typescript/src/utilities.d.ts +0 -8
  37. package/lib/typescript/src/utilities.js +1 -22
  38. package/lib/typescript/src/utilities.js.map +1 -1
  39. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  40. package/package.json +3 -5
  41. package/src/components/Checkbox/Checkbox.js +1 -1
  42. package/src/components/Checkbox/Checkbox.js.map +1 -1
  43. package/src/components/Checkbox/Checkbox.tsx +1 -1
  44. package/src/components/IconButton.js +0 -2
  45. package/src/components/IconButton.js.map +1 -1
  46. package/src/components/IconButton.tsx +0 -2
  47. package/src/components/Picker/Picker.js +288 -0
  48. package/src/components/Picker/Picker.js.map +1 -0
  49. package/src/components/Picker/Picker.tsx +509 -0
  50. package/src/components/Picker/PickerComponent.android.js +70 -0
  51. package/src/components/Picker/PickerComponent.android.js.map +1 -0
  52. package/src/components/Picker/PickerComponent.android.tsx +116 -0
  53. package/src/components/Picker/PickerComponent.ios.js +80 -0
  54. package/src/components/Picker/PickerComponent.ios.js.map +1 -0
  55. package/src/components/Picker/PickerComponent.ios.tsx +142 -0
  56. package/src/components/Picker/PickerComponent.web.js +71 -0
  57. package/src/components/Picker/PickerComponent.web.js.map +1 -0
  58. package/src/components/Picker/PickerComponent.web.tsx +117 -0
  59. package/src/components/Picker/PickerTypes.js +2 -0
  60. package/src/components/Picker/PickerTypes.js.map +1 -0
  61. package/src/components/Picker/PickerTypes.ts +18 -0
  62. package/src/components/TextField.js +6 -9
  63. package/src/components/TextField.js.map +1 -1
  64. package/src/components/TextField.tsx +8 -14
  65. package/src/index.js +1 -1
  66. package/src/index.js.map +1 -1
  67. package/src/index.tsx +1 -1
  68. package/src/utilities.js +1 -22
  69. package/src/utilities.js.map +1 -1
  70. package/src/utilities.ts +1 -33
  71. package/lib/commonjs/components/Picker/NativePicker.js +0 -1
  72. package/lib/commonjs/components/Picker/PickerCommon.js +0 -1
  73. package/lib/commonjs/components/Picker/PickerInputContainer.js +0 -1
  74. package/lib/commonjs/components/Picker/dropdown/DropDownPicker.js +0 -1
  75. package/lib/commonjs/components/Picker/dropdown/MultiSelectPicker.js +0 -1
  76. package/lib/commonjs/components/Picker/index.js +0 -1
  77. package/lib/typescript/src/components/Picker/NativePicker.d.ts +0 -4
  78. package/lib/typescript/src/components/Picker/NativePicker.js +0 -92
  79. package/lib/typescript/src/components/Picker/NativePicker.js.map +0 -1
  80. package/lib/typescript/src/components/Picker/PickerCommon.d.ts +0 -51
  81. package/lib/typescript/src/components/Picker/PickerCommon.js +0 -23
  82. package/lib/typescript/src/components/Picker/PickerCommon.js.map +0 -1
  83. package/lib/typescript/src/components/Picker/PickerInputContainer.d.ts +0 -10
  84. package/lib/typescript/src/components/Picker/PickerInputContainer.js +0 -37
  85. package/lib/typescript/src/components/Picker/PickerInputContainer.js.map +0 -1
  86. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.d.ts +0 -6
  87. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js +0 -44
  88. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js.map +0 -1
  89. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.d.ts +0 -6
  90. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js +0 -9
  91. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js.map +0 -1
  92. package/lib/typescript/src/components/Picker/index.d.ts +0 -9
  93. package/lib/typescript/src/components/Picker/index.js +0 -16
  94. package/lib/typescript/src/components/Picker/index.js.map +0 -1
  95. package/src/components/Picker/NativePicker.js +0 -92
  96. package/src/components/Picker/NativePicker.js.map +0 -1
  97. package/src/components/Picker/NativePicker.tsx +0 -152
  98. package/src/components/Picker/PickerCommon.js +0 -23
  99. package/src/components/Picker/PickerCommon.js.map +0 -1
  100. package/src/components/Picker/PickerCommon.ts +0 -87
  101. package/src/components/Picker/PickerInputContainer.js +0 -37
  102. package/src/components/Picker/PickerInputContainer.js.map +0 -1
  103. package/src/components/Picker/PickerInputContainer.tsx +0 -85
  104. package/src/components/Picker/dropdown/DropDownPicker.js +0 -44
  105. package/src/components/Picker/dropdown/DropDownPicker.js.map +0 -1
  106. package/src/components/Picker/dropdown/DropDownPicker.tsx +0 -122
  107. package/src/components/Picker/dropdown/MultiSelectPicker.js +0 -9
  108. package/src/components/Picker/dropdown/MultiSelectPicker.js.map +0 -1
  109. package/src/components/Picker/dropdown/MultiSelectPicker.tsx +0 -16
  110. package/src/components/Picker/index.js +0 -16
  111. package/src/components/Picker/index.js.map +0 -1
  112. 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";