@plasmicpkgs/antd 2.0.64 → 2.0.66

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 (113) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/antd.esm.js +69 -93
  3. package/dist/antd.esm.js.map +1 -1
  4. package/dist/index.js +112 -138
  5. package/dist/index.js.map +1 -1
  6. package/dist/registerButton.d.ts +3 -1
  7. package/dist/registerCarousel.d.ts +3 -1
  8. package/dist/registerCheckbox.d.ts +6 -2
  9. package/dist/registerCollapse.d.ts +2 -1
  10. package/dist/registerDropdown.d.ts +3 -1
  11. package/dist/registerInput.d.ts +8 -1
  12. package/dist/registerMenu.d.ts +9 -3
  13. package/dist/registerOption.d.ts +4 -2
  14. package/dist/registerRate.d.ts +3 -1
  15. package/dist/registerSelect.d.ts +9 -1
  16. package/dist/registerSlider.d.ts +1 -1
  17. package/dist/registerSwitch.d.ts +3 -1
  18. package/dist/registerTabs.d.ts +1 -1
  19. package/package.json +16 -3
  20. package/skinny/customControls-82aa5d0c.esm.js +20 -0
  21. package/skinny/customControls-82aa5d0c.esm.js.map +1 -0
  22. package/skinny/{customControls-fb0b7e5f.js → customControls-fb0b7e5f.cjs.js} +1 -1
  23. package/skinny/customControls-fb0b7e5f.cjs.js.map +1 -0
  24. package/skinny/{registerButton.js → registerButton.cjs.js} +6 -6
  25. package/skinny/registerButton.cjs.js.map +1 -0
  26. package/skinny/registerButton.d.ts +3 -1
  27. package/skinny/registerButton.esm.js +82 -0
  28. package/skinny/registerButton.esm.js.map +1 -0
  29. package/skinny/{registerCarousel.js → registerCarousel.cjs.js} +7 -7
  30. package/skinny/registerCarousel.cjs.js.map +1 -0
  31. package/skinny/registerCarousel.d.ts +3 -1
  32. package/skinny/registerCarousel.esm.js +68 -0
  33. package/skinny/registerCarousel.esm.js.map +1 -0
  34. package/skinny/{registerCheckbox.js → registerCheckbox.cjs.js} +13 -14
  35. package/skinny/registerCheckbox.cjs.js.map +1 -0
  36. package/skinny/registerCheckbox.d.ts +6 -2
  37. package/skinny/registerCheckbox.esm.js +156 -0
  38. package/skinny/registerCheckbox.esm.js.map +1 -0
  39. package/skinny/{registerCollapse.js → registerCollapse.cjs.js} +10 -12
  40. package/skinny/registerCollapse.cjs.js.map +1 -0
  41. package/skinny/registerCollapse.d.ts +2 -1
  42. package/skinny/registerCollapse.esm.js +181 -0
  43. package/skinny/registerCollapse.esm.js.map +1 -0
  44. package/skinny/{registerDropdown.js → registerDropdown.cjs.js} +8 -10
  45. package/skinny/registerDropdown.cjs.js.map +1 -0
  46. package/skinny/registerDropdown.d.ts +3 -1
  47. package/skinny/registerDropdown.esm.js +179 -0
  48. package/skinny/registerDropdown.esm.js.map +1 -0
  49. package/skinny/{registerInput.js → registerInput.cjs.js} +23 -27
  50. package/skinny/registerInput.cjs.js.map +1 -0
  51. package/skinny/registerInput.d.ts +8 -1
  52. package/skinny/registerInput.esm.js +447 -0
  53. package/skinny/registerInput.esm.js.map +1 -0
  54. package/skinny/{registerMenu.js → registerMenu.cjs.js} +30 -29
  55. package/skinny/registerMenu.cjs.js.map +1 -0
  56. package/skinny/registerMenu.d.ts +9 -3
  57. package/skinny/registerMenu.esm.js +278 -0
  58. package/skinny/registerMenu.esm.js.map +1 -0
  59. package/skinny/{registerOption.js → registerOption.cjs.js} +10 -6
  60. package/skinny/registerOption.cjs.js.map +1 -0
  61. package/skinny/registerOption.d.ts +4 -2
  62. package/skinny/registerOption.esm.js +78 -0
  63. package/skinny/registerOption.esm.js.map +1 -0
  64. package/skinny/{registerRate.js → registerRate.cjs.js} +7 -7
  65. package/skinny/registerRate.cjs.js.map +1 -0
  66. package/skinny/registerRate.d.ts +3 -1
  67. package/skinny/registerRate.esm.js +58 -0
  68. package/skinny/registerRate.esm.js.map +1 -0
  69. package/skinny/{registerSelect.js → registerSelect.cjs.js} +10 -10
  70. package/skinny/registerSelect.cjs.js.map +1 -0
  71. package/skinny/registerSelect.d.ts +9 -1
  72. package/skinny/registerSelect.esm.js +151 -0
  73. package/skinny/registerSelect.esm.js.map +1 -0
  74. package/skinny/{registerSlider.js → registerSlider.cjs.js} +3 -4
  75. package/skinny/registerSlider.cjs.js.map +1 -0
  76. package/skinny/registerSlider.d.ts +1 -1
  77. package/skinny/registerSlider.esm.js +134 -0
  78. package/skinny/registerSlider.esm.js.map +1 -0
  79. package/skinny/{registerSwitch.js → registerSwitch.cjs.js} +7 -7
  80. package/skinny/registerSwitch.cjs.js.map +1 -0
  81. package/skinny/registerSwitch.d.ts +3 -1
  82. package/skinny/registerSwitch.esm.js +76 -0
  83. package/skinny/registerSwitch.esm.js.map +1 -0
  84. package/skinny/{registerTable.js → registerTable.cjs.js} +3 -4
  85. package/skinny/registerTable.cjs.js.map +1 -0
  86. package/skinny/registerTable.esm.js +203 -0
  87. package/skinny/registerTable.esm.js.map +1 -0
  88. package/skinny/{registerTabs.js → registerTabs.cjs.js} +6 -14
  89. package/skinny/registerTabs.cjs.js.map +1 -0
  90. package/skinny/registerTabs.d.ts +1 -1
  91. package/skinny/registerTabs.esm.js +358 -0
  92. package/skinny/registerTabs.esm.js.map +1 -0
  93. package/skinny/registerable.cjs.js +3 -0
  94. package/skinny/registerable.cjs.js.map +1 -0
  95. package/skinny/registerable.esm.js +2 -0
  96. package/skinny/registerable.esm.js.map +1 -0
  97. package/skinny/customControls-fb0b7e5f.js.map +0 -1
  98. package/skinny/registerButton.js.map +0 -1
  99. package/skinny/registerCarousel.js.map +0 -1
  100. package/skinny/registerCheckbox.js.map +0 -1
  101. package/skinny/registerCollapse.js.map +0 -1
  102. package/skinny/registerDropdown.js.map +0 -1
  103. package/skinny/registerInput.js.map +0 -1
  104. package/skinny/registerMenu.js.map +0 -1
  105. package/skinny/registerOption.js.map +0 -1
  106. package/skinny/registerRate.js.map +0 -1
  107. package/skinny/registerSelect.js.map +0 -1
  108. package/skinny/registerSlider.js.map +0 -1
  109. package/skinny/registerSwitch.js.map +0 -1
  110. package/skinny/registerTable.js.map +0 -1
  111. package/skinny/registerTabs.js.map +0 -1
  112. package/skinny/registerable.js +0 -3
  113. package/skinny/registerable.js.map +0 -1
@@ -1,5 +1,7 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { ButtonProps } from "antd/lib/button";
2
+ import { Button as AntdButton } from "antd";
3
+ import type { ButtonProps } from "antd/es/button";
3
4
  import { Registerable } from "./registerable";
5
+ export declare const Button: typeof AntdButton;
4
6
  export declare const buttonMeta: ComponentMeta<ButtonProps>;
5
7
  export declare function registerButton(loader?: Registerable, customButtonMeta?: ComponentMeta<ButtonProps>): void;
@@ -1,5 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { CarouselProps } from "antd/lib/carousel";
3
+ import type { CarouselProps } from "antd/es/carousel";
3
4
  import { Registerable } from "./registerable";
5
+ export declare const Carousel: import("react").ForwardRefExoticComponent<import("antd").CarouselProps & import("react").RefAttributes<import("antd/lib/carousel").CarouselRef>>;
4
6
  export declare const carouselMeta: ComponentMeta<CarouselProps>;
5
7
  export declare function registerCarousel(loader?: Registerable, customCarouselMeta?: ComponentMeta<CarouselProps>): void;
@@ -1,7 +1,11 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { CheckboxProps } from "antd/lib/checkbox/Checkbox";
3
- import { CheckboxGroupProps } from "antd/lib/checkbox/Group";
2
+ import { Checkbox as AntdCheckbox } from "antd";
3
+ import type { CheckboxProps } from "antd/es/checkbox/Checkbox";
4
+ import type { CheckboxGroupProps } from "antd/es/checkbox/Group";
5
+ import React from "react";
4
6
  import { Registerable } from "./registerable";
7
+ export declare const Checkbox: typeof AntdCheckbox;
8
+ export declare const CheckboxGroup: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd/lib/checkbox").CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>>;
5
9
  export declare const checkboxHelpers: {
6
10
  states: {
7
11
  value: {
@@ -1,7 +1,8 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { CollapsePanelProps, CollapseProps as AntdCollapseProps } from "antd/lib/collapse";
2
+ import type { CollapsePanelProps, CollapseProps as AntdCollapseProps } from "antd/es/collapse";
3
3
  import React from "react";
4
4
  import { Registerable } from "./registerable";
5
+ export declare const CollapsePanel: React.FC<import("antd").CollapsePanelProps>;
5
6
  export declare const collapstePanelMeta: ComponentMeta<CollapsePanelProps>;
6
7
  export declare function registerCollapsePanel(loader?: Registerable, customCollapsePanelMeta?: ComponentMeta<CollapsePanelProps>): void;
7
8
  type CollapseProps = {
@@ -1,7 +1,9 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { DropdownButtonProps, DropDownProps } from "antd/lib/dropdown";
2
+ import { Dropdown as AntdDropdown } from "antd";
3
+ import type { DropdownButtonProps, DropDownProps } from "antd/es/dropdown";
3
4
  import React from "react";
4
5
  import { Registerable } from "./registerable";
6
+ export declare const DropdownButton: typeof AntdDropdown.Button;
5
7
  export declare class Dropdown extends React.Component<DropDownProps> {
6
8
  render(): JSX.Element;
7
9
  }
@@ -1,6 +1,13 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { GroupProps, InputProps, PasswordProps, SearchProps, TextAreaProps } from "antd/lib/input";
3
+ import { Input as AntdInput } from "antd";
4
+ import type { GroupProps, InputProps, PasswordProps, SearchProps, TextAreaProps } from "antd/es/input";
3
5
  import { Registerable } from "./registerable";
6
+ export declare const Input: typeof AntdInput;
7
+ export declare const InputGroup: import("react").FC<import("antd/lib/input").GroupProps>;
8
+ export declare const Password: import("react").ForwardRefExoticComponent<import("antd/lib/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef>>;
9
+ export declare const Search: import("react").ForwardRefExoticComponent<import("antd/lib/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
10
+ export declare const TextArea: import("react").ForwardRefExoticComponent<import("antd/lib/input").TextAreaProps & import("react").RefAttributes<import("antd/lib/input/TextArea").TextAreaRef>>;
4
11
  export declare const inputHelpers: {
5
12
  states: {
6
13
  value: {
@@ -1,8 +1,14 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { MenuItemProps, MenuProps, SubMenuProps } from "antd/lib/menu";
3
- import { MenuDividerProps } from "antd/lib/menu";
4
- import { MenuItemGroupProps } from "rc-menu";
3
+ import type { MenuItemProps, MenuProps, SubMenuProps, MenuDividerProps } from "antd/es/menu";
4
+ import { Menu as AntdMenu } from "antd";
5
+ import type { MenuItemGroupProps } from "rc-menu";
5
6
  import { Registerable } from "./registerable";
7
+ export declare const Menu: typeof AntdMenu;
8
+ export declare const MenuDivider: import("react").FC<import("antd/lib/menu").MenuDividerProps>;
9
+ export declare const MenuItemGroup: typeof import("rc-menu").MenuItemGroup;
10
+ export declare const MenuItem: typeof import("antd/lib/menu/MenuItem").default;
11
+ export declare const SubMenu: typeof import("antd/lib/menu/SubMenu").default;
6
12
  export declare const menuDividerMeta: ComponentMeta<MenuDividerProps>;
7
13
  export declare function registerMenuDivider(loader?: Registerable, customMenuDividerMeta?: ComponentMeta<MenuDividerProps>): void;
8
14
  export declare const menuItemMeta: ComponentMeta<MenuItemProps>;
@@ -1,6 +1,8 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { OptGroupProps } from "rc-select/lib/OptGroup";
3
- import { OptionProps } from "rc-select/lib/Option";
2
+ export declare const Option: import("rc-select/lib/Option").OptionFC;
3
+ export declare const OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
4
+ import type { OptGroupProps } from "rc-select/es/OptGroup";
5
+ import type { OptionProps } from "rc-select/es/Option";
4
6
  import { Registerable } from "./registerable";
5
7
  export declare const optionMeta: ComponentMeta<OptionProps>;
6
8
  export declare function registerOption(loader?: Registerable, customOptionMeta?: ComponentMeta<OptionProps>): void;
@@ -1,5 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { RateProps } from "antd/lib/rate";
3
+ import type { RateProps } from "antd/es/rate";
3
4
  import { Registerable } from "./registerable";
5
+ export declare const Rate: import("react").ForwardRefExoticComponent<import("antd").RateProps & import("react").RefAttributes<unknown>>;
4
6
  export declare const rateMeta: ComponentMeta<RateProps>;
5
7
  export declare function registerRate(loader?: Registerable, customRateMeta?: ComponentMeta<RateProps>): void;
@@ -1,7 +1,15 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import Select from "antd/lib/select";
3
2
  import React from "react";
4
3
  import { Registerable } from "./registerable";
4
+ export declare const Select: (<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: import("antd").SelectProps<ValueType, OptionType> & {
5
+ children?: React.ReactNode;
6
+ } & {
7
+ ref?: React.Ref<import("antd").RefSelectProps> | undefined;
8
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
9
+ SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
10
+ Option: import("rc-select/lib/Option").OptionFC;
11
+ OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
12
+ };
5
13
  type SelectProps = React.ComponentProps<typeof Select>;
6
14
  export declare const selectMeta: ComponentMeta<SelectProps>;
7
15
  export declare function registerSelect(loader?: Registerable, customSelectMeta?: ComponentMeta<SelectProps>): void;
@@ -1,5 +1,5 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import type { SliderRangeProps, SliderSingleProps } from "antd/lib/slider";
2
+ import type { SliderRangeProps, SliderSingleProps } from "antd/es/slider";
3
3
  import React from "react";
4
4
  import { Registerable } from "./registerable";
5
5
  type SliderProps = Omit<SliderSingleProps | SliderRangeProps, "value" | "defaultValue"> & {
@@ -1,5 +1,7 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { SwitchProps } from "antd/lib/switch";
2
+ import { Switch as AntdSwitch } from "antd";
3
+ import type { SwitchProps } from "antd/es/switch";
3
4
  import { Registerable } from "./registerable";
5
+ export declare const Switch: typeof AntdSwitch;
4
6
  export declare const switchMeta: ComponentMeta<SwitchProps>;
5
7
  export declare function registerSwitch(loader?: Registerable, customSwitchMeta?: ComponentMeta<SwitchProps>): void;
@@ -1,5 +1,5 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { TabPaneProps, TabsProps as AntdTabsProps } from "antd/lib/tabs";
2
+ import type { TabPaneProps, TabsProps as AntdTabsProps } from "antd/es/tabs";
3
3
  import React from "react";
4
4
  import { Registerable } from "./registerable";
5
5
  export declare const TabPane: React.FC<TabPaneProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/antd",
3
- "version": "2.0.64",
3
+ "version": "2.0.66",
4
4
  "description": "Plasmic registration calls for antd components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,6 +20,19 @@
20
20
  }
21
21
  }
22
22
  },
23
+ "exports": {
24
+ ".": {
25
+ "require": "./dist/index.js",
26
+ "import": "./dist/antd.esm.js",
27
+ "types": "./dist/index.d.ts"
28
+ },
29
+ "./dist/antd.css": "./dist/antd.css",
30
+ "./skinny/*": {
31
+ "require": "./skinny/*.cjs.js",
32
+ "import": "./skinny/*.esm.js",
33
+ "types": "./skinny/*.d.ts"
34
+ }
35
+ },
23
36
  "files": [
24
37
  "dist",
25
38
  "skinny"
@@ -46,7 +59,7 @@
46
59
  "antd": "^4.19.5"
47
60
  },
48
61
  "devDependencies": {
49
- "@plasmicapp/host": "1.0.147",
62
+ "@plasmicapp/host": "1.0.148",
50
63
  "@size-limit/preset-small-lib": "^4.11.0",
51
64
  "@types/node": "^14.0.26",
52
65
  "react": "^18.2.0",
@@ -60,5 +73,5 @@
60
73
  "@plasmicapp/host": ">=1.0.0",
61
74
  "react": ">=16.8.0"
62
75
  },
63
- "gitHead": "596857aecc29c48046f82c0de3e913063322e8ec"
76
+ "gitHead": "e1ac02c80fb803a000eceb41621f2bccdbe14035"
64
77
  }
@@ -0,0 +1,20 @@
1
+ function traverseReactEltTree(children, callback) {
2
+ const rec = (elts) => {
3
+ (Array.isArray(elts) ? elts : [elts]).forEach((elt) => {
4
+ var _a;
5
+ if (elt) {
6
+ callback(elt);
7
+ if (elt.children) {
8
+ rec(elt.children);
9
+ }
10
+ if (((_a = elt.props) == null ? void 0 : _a.children) && elt.props.children !== elt.children) {
11
+ rec(elt.props.children);
12
+ }
13
+ }
14
+ });
15
+ };
16
+ rec(children);
17
+ }
18
+
19
+ export { traverseReactEltTree as t };
20
+ //# sourceMappingURL=customControls-82aa5d0c.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customControls-82aa5d0c.esm.js","sources":["../src/customControls.ts"],"sourcesContent":["import type React from \"react\";\n\ntype ReactElt = {\n children: ReactElt | ReactElt[];\n props: {\n children: ReactElt | ReactElt[];\n [prop: string]: any;\n } | null;\n type: React.ComponentType<any> | null;\n key: string | null;\n} | null;\n\n/**\n * Traverses the tree of elements from a `React.createElement`. Notice we can't\n * traverse elements created within the children's render function since this is\n * the tree before rendering.\n */\nexport function traverseReactEltTree(\n children: React.ReactNode,\n callback: (elt: ReactElt) => void\n) {\n const rec = (elts: ReactElt | ReactElt[] | null) => {\n (Array.isArray(elts) ? elts : [elts]).forEach((elt) => {\n if (elt) {\n callback(elt);\n if (elt.children) {\n rec(elt.children);\n }\n if (elt.props?.children && elt.props.children !== elt.children) {\n rec(elt.props.children);\n }\n }\n });\n };\n rec(children as any);\n}\n"],"names":[],"mappings":"AAiBgB,SAAA,oBAAA,CACd,UACA,QACA,EAAA;AACA,EAAM,MAAA,GAAA,GAAM,CAAC,IAAuC,KAAA;AAClD,IAAC,CAAA,KAAA,CAAM,OAAQ,CAAA,IAAI,CAAI,GAAA,IAAA,GAAO,CAAC,IAAI,CAAA,EAAG,OAAQ,CAAA,CAAC,GAAQ,KAAA;AAtB3D,MAAA,IAAA,EAAA,CAAA;AAuBM,MAAA,IAAI,GAAK,EAAA;AACP,QAAA,QAAA,CAAS,GAAG,CAAA,CAAA;AACZ,QAAA,IAAI,IAAI,QAAU,EAAA;AAChB,UAAA,GAAA,CAAI,IAAI,QAAQ,CAAA,CAAA;AAAA,SAClB;AACA,QAAI,IAAA,CAAA,CAAA,EAAA,GAAA,GAAA,CAAI,UAAJ,IAAW,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA,KAAY,IAAI,KAAM,CAAA,QAAA,KAAa,IAAI,QAAU,EAAA;AAC9D,UAAI,GAAA,CAAA,GAAA,CAAI,MAAM,QAAQ,CAAA,CAAA;AAAA,SACxB;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH,CAAA;AACA,EAAA,GAAA,CAAI,QAAe,CAAA,CAAA;AACrB;;;;"}
@@ -19,4 +19,4 @@ function traverseReactEltTree(children, callback) {
19
19
  }
20
20
 
21
21
  exports.traverseReactEltTree = traverseReactEltTree;
22
- //# sourceMappingURL=customControls-fb0b7e5f.js.map
22
+ //# sourceMappingURL=customControls-fb0b7e5f.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customControls-fb0b7e5f.cjs.js","sources":["../src/customControls.ts"],"sourcesContent":["import type React from \"react\";\n\ntype ReactElt = {\n children: ReactElt | ReactElt[];\n props: {\n children: ReactElt | ReactElt[];\n [prop: string]: any;\n } | null;\n type: React.ComponentType<any> | null;\n key: string | null;\n} | null;\n\n/**\n * Traverses the tree of elements from a `React.createElement`. Notice we can't\n * traverse elements created within the children's render function since this is\n * the tree before rendering.\n */\nexport function traverseReactEltTree(\n children: React.ReactNode,\n callback: (elt: ReactElt) => void\n) {\n const rec = (elts: ReactElt | ReactElt[] | null) => {\n (Array.isArray(elts) ? elts : [elts]).forEach((elt) => {\n if (elt) {\n callback(elt);\n if (elt.children) {\n rec(elt.children);\n }\n if (elt.props?.children && elt.props.children !== elt.children) {\n rec(elt.props.children);\n }\n }\n });\n };\n rec(children as any);\n}\n"],"names":[],"mappings":";;AAiBgB,SAAA,oBAAA,CACd,UACA,QACA,EAAA;AACA,EAAM,MAAA,GAAA,GAAM,CAAC,IAAuC,KAAA;AAClD,IAAC,CAAA,KAAA,CAAM,OAAQ,CAAA,IAAI,CAAI,GAAA,IAAA,GAAO,CAAC,IAAI,CAAA,EAAG,OAAQ,CAAA,CAAC,GAAQ,KAAA;AAtB3D,MAAA,IAAA,EAAA,CAAA;AAuBM,MAAA,IAAI,GAAK,EAAA;AACP,QAAA,QAAA,CAAS,GAAG,CAAA,CAAA;AACZ,QAAA,IAAI,IAAI,QAAU,EAAA;AAChB,UAAA,GAAA,CAAI,IAAI,QAAQ,CAAA,CAAA;AAAA,SAClB;AACA,QAAI,IAAA,CAAA,CAAA,EAAA,GAAA,GAAA,CAAI,UAAJ,IAAW,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA,KAAY,IAAI,KAAM,CAAA,QAAA,KAAa,IAAI,QAAU,EAAA;AAC9D,UAAI,GAAA,CAAA,GAAA,CAAI,MAAM,QAAQ,CAAA,CAAA;AAAA,SACxB;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH,CAAA;AACA,EAAA,GAAA,CAAI,QAAe,CAAA,CAAA;AACrB;;;;"}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var registerComponent = require('@plasmicapp/host/registerComponent');
4
- var Button = require('antd/lib/button');
4
+ var antd = require('antd');
5
5
 
6
6
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
7
 
8
8
  var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
9
- var Button__default = /*#__PURE__*/_interopDefault(Button);
10
9
 
10
+ const Button = antd.Button;
11
11
  const buttonMeta = {
12
12
  name: "AntdButton",
13
13
  displayName: "Antd Button",
@@ -76,15 +76,15 @@ const buttonMeta = {
76
76
  ]
77
77
  }
78
78
  },
79
- importPath: "antd/lib/button",
80
- isDefaultExport: true,
79
+ importPath: "@plasmicpkgs/antd/skinny/registerButton",
81
80
  importName: "Button"
82
81
  };
83
82
  function registerButton(loader, customButtonMeta) {
84
83
  const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
85
- doRegisterComponent(Button__default.default, customButtonMeta != null ? customButtonMeta : buttonMeta);
84
+ doRegisterComponent(antd.Button, customButtonMeta != null ? customButtonMeta : buttonMeta);
86
85
  }
87
86
 
87
+ exports.Button = Button;
88
88
  exports.buttonMeta = buttonMeta;
89
89
  exports.registerButton = registerButton;
90
- //# sourceMappingURL=registerButton.js.map
90
+ //# sourceMappingURL=registerButton.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerButton.cjs.js","sources":["../src/registerButton.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport { Button as AntdButton } from \"antd\";\nimport type { ButtonProps } from \"antd/es/button\";\nimport { Registerable } from \"./registerable\";\n\nexport const Button: typeof AntdButton = AntdButton;\n\nexport const buttonMeta: ComponentMeta<ButtonProps> = {\n name: \"AntdButton\",\n displayName: \"Antd Button\",\n props: {\n type: {\n type: \"choice\",\n options: [\"default\", \"primary\", \"ghost\", \"dashed\", \"link\", \"text\"],\n description: \"Can be set to primary, ghost, dashed, link, text, default\",\n defaultValueHint: \"default\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"medium\", \"large\"],\n description: \"Set the size of button\",\n defaultValueHint: \"medium\",\n },\n shape: {\n type: \"choice\",\n options: [\"default\", \"circle\", \"round\"],\n description: \"Can be set button shape\",\n defaultValueHint: \"default\",\n },\n disabled: {\n type: \"boolean\",\n description: \"Disabled state of button\",\n defaultValueHint: false,\n },\n ghost: {\n type: \"boolean\",\n description:\n \"Make background transparent and invert text and border colors\",\n defaultValueHint: false,\n },\n danger: {\n type: \"boolean\",\n description: \"Set the danger status of button\",\n defaultValueHint: false,\n },\n block: {\n type: \"boolean\",\n description: \"Option to fit button width to its parent width\",\n defaultValueHint: false,\n },\n loading: {\n type: \"boolean\",\n description: \"Set the loading status of button\",\n defaultValueHint: false,\n },\n href: {\n type: \"string\",\n description: \"Redirect url of link button\",\n },\n target: {\n type: \"choice\",\n options: [\"_blank\", \"_self\", \"_parent\", \"_top\"],\n description:\n \"Same as target attribute of a, works when href is specified\",\n hidden: (props) => !props.href,\n defaultValueHint: \"_self\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Button\",\n },\n ],\n },\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerButton\",\n importName: \"Button\",\n};\n\nexport function registerButton(\n loader?: Registerable,\n customButtonMeta?: ComponentMeta<ButtonProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(AntdButton, customButtonMeta ?? buttonMeta);\n}\n"],"names":["AntdButton","registerComponent"],"mappings":";;;;;;;;;AAOO,MAAM,MAA4B,GAAAA,YAAA;AAElC,MAAM,UAAyC,GAAA;AAAA,EACpD,IAAM,EAAA,YAAA;AAAA,EACN,WAAa,EAAA,aAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,IAAM,EAAA,QAAA;AAAA,MACN,SAAS,CAAC,SAAA,EAAW,WAAW,OAAS,EAAA,QAAA,EAAU,QAAQ,MAAM,CAAA;AAAA,MACjE,WAAa,EAAA,2DAAA;AAAA,MACb,gBAAkB,EAAA,SAAA;AAAA,KACpB;AAAA,IACA,IAAM,EAAA;AAAA,MACJ,IAAM,EAAA,QAAA;AAAA,MACN,OAAS,EAAA,CAAC,OAAS,EAAA,QAAA,EAAU,OAAO,CAAA;AAAA,MACpC,WAAa,EAAA,wBAAA;AAAA,MACb,gBAAkB,EAAA,QAAA;AAAA,KACpB;AAAA,IACA,KAAO,EAAA;AAAA,MACL,IAAM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UACE,IAAM,EAAA,MAAA;AAAA,UACN,KAAO,EAAA,QAAA;AAAA,SACT;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,yCAAA;AAAA,EACZ,UAAY,EAAA,QAAA;AACd,EAAA;AAEgB,SAAA,cAAA,CACd,QACA,gBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAIC,kCAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAAD,WAAA,EAAY,8CAAoB,UAAU,CAAA,CAAA;AAChE;;;;;;"}
@@ -1,5 +1,7 @@
1
1
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { ButtonProps } from "antd/lib/button";
2
+ import { Button as AntdButton } from "antd";
3
+ import type { ButtonProps } from "antd/es/button";
3
4
  import { Registerable } from "./registerable";
5
+ export declare const Button: typeof AntdButton;
4
6
  export declare const buttonMeta: ComponentMeta<ButtonProps>;
5
7
  export declare function registerButton(loader?: Registerable, customButtonMeta?: ComponentMeta<ButtonProps>): void;
@@ -0,0 +1,82 @@
1
+ import registerComponent from '@plasmicapp/host/registerComponent';
2
+ import { Button as Button$1 } from 'antd';
3
+
4
+ const Button = Button$1;
5
+ const buttonMeta = {
6
+ name: "AntdButton",
7
+ displayName: "Antd Button",
8
+ props: {
9
+ type: {
10
+ type: "choice",
11
+ options: ["default", "primary", "ghost", "dashed", "link", "text"],
12
+ description: "Can be set to primary, ghost, dashed, link, text, default",
13
+ defaultValueHint: "default"
14
+ },
15
+ size: {
16
+ type: "choice",
17
+ options: ["small", "medium", "large"],
18
+ description: "Set the size of button",
19
+ defaultValueHint: "medium"
20
+ },
21
+ shape: {
22
+ type: "choice",
23
+ options: ["default", "circle", "round"],
24
+ description: "Can be set button shape",
25
+ defaultValueHint: "default"
26
+ },
27
+ disabled: {
28
+ type: "boolean",
29
+ description: "Disabled state of button",
30
+ defaultValueHint: false
31
+ },
32
+ ghost: {
33
+ type: "boolean",
34
+ description: "Make background transparent and invert text and border colors",
35
+ defaultValueHint: false
36
+ },
37
+ danger: {
38
+ type: "boolean",
39
+ description: "Set the danger status of button",
40
+ defaultValueHint: false
41
+ },
42
+ block: {
43
+ type: "boolean",
44
+ description: "Option to fit button width to its parent width",
45
+ defaultValueHint: false
46
+ },
47
+ loading: {
48
+ type: "boolean",
49
+ description: "Set the loading status of button",
50
+ defaultValueHint: false
51
+ },
52
+ href: {
53
+ type: "string",
54
+ description: "Redirect url of link button"
55
+ },
56
+ target: {
57
+ type: "choice",
58
+ options: ["_blank", "_self", "_parent", "_top"],
59
+ description: "Same as target attribute of a, works when href is specified",
60
+ hidden: (props) => !props.href,
61
+ defaultValueHint: "_self"
62
+ },
63
+ children: {
64
+ type: "slot",
65
+ defaultValue: [
66
+ {
67
+ type: "text",
68
+ value: "Button"
69
+ }
70
+ ]
71
+ }
72
+ },
73
+ importPath: "@plasmicpkgs/antd/skinny/registerButton",
74
+ importName: "Button"
75
+ };
76
+ function registerButton(loader, customButtonMeta) {
77
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
78
+ doRegisterComponent(Button$1, customButtonMeta != null ? customButtonMeta : buttonMeta);
79
+ }
80
+
81
+ export { Button, buttonMeta, registerButton };
82
+ //# sourceMappingURL=registerButton.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerButton.esm.js","sources":["../src/registerButton.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport { Button as AntdButton } from \"antd\";\nimport type { ButtonProps } from \"antd/es/button\";\nimport { Registerable } from \"./registerable\";\n\nexport const Button: typeof AntdButton = AntdButton;\n\nexport const buttonMeta: ComponentMeta<ButtonProps> = {\n name: \"AntdButton\",\n displayName: \"Antd Button\",\n props: {\n type: {\n type: \"choice\",\n options: [\"default\", \"primary\", \"ghost\", \"dashed\", \"link\", \"text\"],\n description: \"Can be set to primary, ghost, dashed, link, text, default\",\n defaultValueHint: \"default\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"medium\", \"large\"],\n description: \"Set the size of button\",\n defaultValueHint: \"medium\",\n },\n shape: {\n type: \"choice\",\n options: [\"default\", \"circle\", \"round\"],\n description: \"Can be set button shape\",\n defaultValueHint: \"default\",\n },\n disabled: {\n type: \"boolean\",\n description: \"Disabled state of button\",\n defaultValueHint: false,\n },\n ghost: {\n type: \"boolean\",\n description:\n \"Make background transparent and invert text and border colors\",\n defaultValueHint: false,\n },\n danger: {\n type: \"boolean\",\n description: \"Set the danger status of button\",\n defaultValueHint: false,\n },\n block: {\n type: \"boolean\",\n description: \"Option to fit button width to its parent width\",\n defaultValueHint: false,\n },\n loading: {\n type: \"boolean\",\n description: \"Set the loading status of button\",\n defaultValueHint: false,\n },\n href: {\n type: \"string\",\n description: \"Redirect url of link button\",\n },\n target: {\n type: \"choice\",\n options: [\"_blank\", \"_self\", \"_parent\", \"_top\"],\n description:\n \"Same as target attribute of a, works when href is specified\",\n hidden: (props) => !props.href,\n defaultValueHint: \"_self\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Button\",\n },\n ],\n },\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerButton\",\n importName: \"Button\",\n};\n\nexport function registerButton(\n loader?: Registerable,\n customButtonMeta?: ComponentMeta<ButtonProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(AntdButton, customButtonMeta ?? buttonMeta);\n}\n"],"names":["AntdButton"],"mappings":";;;AAOO,MAAM,MAA4B,GAAAA,SAAA;AAElC,MAAM,UAAyC,GAAA;AAAA,EACpD,IAAM,EAAA,YAAA;AAAA,EACN,WAAa,EAAA,aAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,IAAM,EAAA;AAAA,M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EAAA,QAAA;AAAA,MACN,WAAa,EAAA,6BAAA;AAAA,KACf;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,IAAM,EAAA,QAAA;AAAA,MACN,OAAS,EAAA,CAAC,QAAU,EAAA,OAAA,EAAS,WAAW,MAAM,CAAA;AAAA,MAC9C,WACE,EAAA,6DAAA;AAAA,MACF,MAAQ,EAAA,CAAC,KAAU,KAAA,CAAC,KAAM,CAAA,IAAA;AAAA,MAC1B,gBAAkB,EAAA,OAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,MAAA;AAAA,MACN,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,KAAO,EAAA,QAAA;AAAA,SACT;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,yCAAA;AAAA,EACZ,UAAY,EAAA,QAAA;AACd,EAAA;AAEgB,SAAA,cAAA,CACd,QACA,gBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAI,iBAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAAA,QAAA,EAAY,8CAAoB,UAAU,CAAA,CAAA;AAChE;;;;"}
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var registerComponent = require('@plasmicapp/host/registerComponent');
4
- var Carousel = require('antd/lib/carousel');
4
+ var antd = require('antd');
5
5
 
6
6
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
7
 
8
8
  var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
9
- var Carousel__default = /*#__PURE__*/_interopDefault(Carousel);
10
9
 
10
+ const Carousel = antd.Carousel;
11
11
  const contentStyle = {
12
12
  height: "160px",
13
13
  color: "#fff",
@@ -62,15 +62,15 @@ const carouselMeta = {
62
62
  ]
63
63
  }
64
64
  },
65
- importPath: "antd/lib/carousel",
66
- importName: "Carousel",
67
- isDefaultExport: true
65
+ importPath: "@plasmicpkgs/antd/skinny/registerCarousel",
66
+ importName: "Carousel"
68
67
  };
69
68
  function registerCarousel(loader, customCarouselMeta) {
70
69
  const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
71
- doRegisterComponent(Carousel__default.default, customCarouselMeta != null ? customCarouselMeta : carouselMeta);
70
+ doRegisterComponent(Carousel, customCarouselMeta != null ? customCarouselMeta : carouselMeta);
72
71
  }
73
72
 
73
+ exports.Carousel = Carousel;
74
74
  exports.carouselMeta = carouselMeta;
75
75
  exports.registerCarousel = registerCarousel;
76
- //# sourceMappingURL=registerCarousel.js.map
76
+ //# sourceMappingURL=registerCarousel.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerCarousel.cjs.js","sources":["../src/registerCarousel.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport { Carousel as AntdCarousel } from \"antd\";\nimport type { CarouselProps } from \"antd/es/carousel\";\nimport { CSSProperties } from \"react\";\nimport { Registerable } from \"./registerable\";\n\nexport const Carousel = AntdCarousel;\n\nconst contentStyle: CSSProperties = {\n height: \"160px\",\n color: \"#fff\",\n lineHeight: \"160px\",\n textAlign: \"center\",\n backgroundColor: \"#364d79\",\n};\n\nexport const carouselMeta: ComponentMeta<CarouselProps> = {\n name: \"AntdCarousel\",\n displayName: \"Antd Carousel\",\n props: {\n autoplay: {\n type: \"boolean\",\n description: \"Whether to scroll automatically\",\n defaultValueHint: false,\n },\n dotPosition: {\n type: \"choice\",\n options: [\"top\", \"bottom\", \"left\", \"right\"],\n description: \"The position of the dots\",\n defaultValueHint: \"bottom\",\n },\n dots: {\n type: \"boolean\",\n description: \"Whether to show the dots at the bottom of the gallery\",\n defaultValueHint: true,\n },\n effect: {\n type: \"choice\",\n options: [\"scrollx\", \"fade\"],\n defaultValueHint: \"scrollx\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"vbox\",\n children: {\n type: \"text\",\n value: \"1\",\n styles: contentStyle,\n },\n },\n {\n type: \"vbox\",\n children: {\n type: \"text\",\n value: \"2\",\n styles: contentStyle,\n },\n },\n ],\n },\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerCarousel\",\n importName: \"Carousel\",\n};\n\nexport function registerCarousel(\n loader?: Registerable,\n customCarouselMeta?: ComponentMeta<CarouselProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Carousel, customCarouselMeta ?? carouselMeta);\n}\n"],"names":["AntdCarousel","registerComponent"],"mappings":";;;;;;;;;AAQO,MAAM,QAAW,GAAAA,cAAA;AAExB,MAAM,YAA8B,GAAA;AAAA,EAClC,MAAQ,EAAA,OAAA;AAAA,EACR,KAAO,EAAA,MAAA;AAAA,EACP,UAAY,EAAA,OAAA;AAAA,EACZ,SAAW,EAAA,QAAA;AAAA,EACX,eAAiB,EAAA,SAAA;AACnB,CAAA,CAAA;AAEO,MAAM,YAA6C,GAAA;AAAA,EACxD,IAAM,EAAA,cAAA;AAAA,EACN,WAAa,EAAA,eAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,iCAAA;AAAA,MACb,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,WAAa,EAAA;AAAA,MACX,IAAM,EAAA,QAAA;AAAA,MACN,OAAS,EAAA,CAAC,KAAO,EAAA,QAAA,EAAU,QAAQ,OAAO,CAAA;AAAA,MAC1C,WAAa,EAAA,0BAAA;AAAA,MACb,gBAAkB,EAAA,QAAA;AAAA,KACpB;AAAA,IACA,IAAM,EAAA;AAAA,MACJ,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,uDAAA;AAAA,MACb,gBAAkB,EAAA,IAAA;AAAA,KACpB;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,IAAM,EAAA,QAAA;AAAA,MACN,OAAA,EAAS,CAAC,SAAA,EAAW,MAAM,CAAA;AAAA,MAC3B,gBAAkB,EAAA,SAAA;AAAA,KACpB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,MAAA;AAAA,MACN,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,QAAU,EAAA;AAAA,YACR,IAAM,EAAA,MAAA;AAAA,YACN,KAAO,EAAA,GAAA;AAAA,YACP,MAAQ,EAAA,YAAA;AAAA,WACV;AAAA,SACF;AAAA,QACA;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,QAAU,EAAA;AAAA,YACR,IAAM,EAAA,MAAA;AAAA,YACN,KAAO,EAAA,GAAA;AAAA,YACP,MAAQ,EAAA,YAAA;AAAA,WACV;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,2CAAA;AAAA,EACZ,UAAY,EAAA,UAAA;AACd,EAAA;AAEgB,SAAA,gBAAA,CACd,QACA,kBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAIC,kCAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAA,QAAA,EAAU,kDAAsB,YAAY,CAAA,CAAA;AAClE;;;;;;"}
@@ -1,5 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
- import { CarouselProps } from "antd/lib/carousel";
3
+ import type { CarouselProps } from "antd/es/carousel";
3
4
  import { Registerable } from "./registerable";
5
+ export declare const Carousel: import("react").ForwardRefExoticComponent<import("antd").CarouselProps & import("react").RefAttributes<import("antd/lib/carousel").CarouselRef>>;
4
6
  export declare const carouselMeta: ComponentMeta<CarouselProps>;
5
7
  export declare function registerCarousel(loader?: Registerable, customCarouselMeta?: ComponentMeta<CarouselProps>): void;
@@ -0,0 +1,68 @@
1
+ import registerComponent from '@plasmicapp/host/registerComponent';
2
+ import { Carousel as Carousel$1 } from 'antd';
3
+
4
+ const Carousel = Carousel$1;
5
+ const contentStyle = {
6
+ height: "160px",
7
+ color: "#fff",
8
+ lineHeight: "160px",
9
+ textAlign: "center",
10
+ backgroundColor: "#364d79"
11
+ };
12
+ const carouselMeta = {
13
+ name: "AntdCarousel",
14
+ displayName: "Antd Carousel",
15
+ props: {
16
+ autoplay: {
17
+ type: "boolean",
18
+ description: "Whether to scroll automatically",
19
+ defaultValueHint: false
20
+ },
21
+ dotPosition: {
22
+ type: "choice",
23
+ options: ["top", "bottom", "left", "right"],
24
+ description: "The position of the dots",
25
+ defaultValueHint: "bottom"
26
+ },
27
+ dots: {
28
+ type: "boolean",
29
+ description: "Whether to show the dots at the bottom of the gallery",
30
+ defaultValueHint: true
31
+ },
32
+ effect: {
33
+ type: "choice",
34
+ options: ["scrollx", "fade"],
35
+ defaultValueHint: "scrollx"
36
+ },
37
+ children: {
38
+ type: "slot",
39
+ defaultValue: [
40
+ {
41
+ type: "vbox",
42
+ children: {
43
+ type: "text",
44
+ value: "1",
45
+ styles: contentStyle
46
+ }
47
+ },
48
+ {
49
+ type: "vbox",
50
+ children: {
51
+ type: "text",
52
+ value: "2",
53
+ styles: contentStyle
54
+ }
55
+ }
56
+ ]
57
+ }
58
+ },
59
+ importPath: "@plasmicpkgs/antd/skinny/registerCarousel",
60
+ importName: "Carousel"
61
+ };
62
+ function registerCarousel(loader, customCarouselMeta) {
63
+ const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
64
+ doRegisterComponent(Carousel, customCarouselMeta != null ? customCarouselMeta : carouselMeta);
65
+ }
66
+
67
+ export { Carousel, carouselMeta, registerCarousel };
68
+ //# sourceMappingURL=registerCarousel.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registerCarousel.esm.js","sources":["../src/registerCarousel.ts"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport { Carousel as AntdCarousel } from \"antd\";\nimport type { CarouselProps } from \"antd/es/carousel\";\nimport { CSSProperties } from \"react\";\nimport { Registerable } from \"./registerable\";\n\nexport const Carousel = AntdCarousel;\n\nconst contentStyle: CSSProperties = {\n height: \"160px\",\n color: \"#fff\",\n lineHeight: \"160px\",\n textAlign: \"center\",\n backgroundColor: \"#364d79\",\n};\n\nexport const carouselMeta: ComponentMeta<CarouselProps> = {\n name: \"AntdCarousel\",\n displayName: \"Antd Carousel\",\n props: {\n autoplay: {\n type: \"boolean\",\n description: \"Whether to scroll automatically\",\n defaultValueHint: false,\n },\n dotPosition: {\n type: \"choice\",\n options: [\"top\", \"bottom\", \"left\", \"right\"],\n description: \"The position of the dots\",\n defaultValueHint: \"bottom\",\n },\n dots: {\n type: \"boolean\",\n description: \"Whether to show the dots at the bottom of the gallery\",\n defaultValueHint: true,\n },\n effect: {\n type: \"choice\",\n options: [\"scrollx\", \"fade\"],\n defaultValueHint: \"scrollx\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"vbox\",\n children: {\n type: \"text\",\n value: \"1\",\n styles: contentStyle,\n },\n },\n {\n type: \"vbox\",\n children: {\n type: \"text\",\n value: \"2\",\n styles: contentStyle,\n },\n },\n ],\n },\n },\n importPath: \"@plasmicpkgs/antd/skinny/registerCarousel\",\n importName: \"Carousel\",\n};\n\nexport function registerCarousel(\n loader?: Registerable,\n customCarouselMeta?: ComponentMeta<CarouselProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Carousel, customCarouselMeta ?? carouselMeta);\n}\n"],"names":["AntdCarousel"],"mappings":";;;AAQO,MAAM,QAAW,GAAAA,WAAA;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AA,MAAA;AAAA,YACN,KAAO,EAAA,GAAA;AAAA,YACP,MAAQ,EAAA,YAAA;AAAA,WACV;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAAA,GACF;AAAA,EACA,UAAY,EAAA,2CAAA;AAAA,EACZ,UAAY,EAAA,UAAA;AACd,EAAA;AAEgB,SAAA,gBAAA,CACd,QACA,kBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAI,iBAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAA,QAAA,EAAU,kDAAsB,YAAY,CAAA,CAAA;AAClE;;;;"}
@@ -1,16 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var registerComponent = require('@plasmicapp/host/registerComponent');
4
- var Checkbox = require('antd/lib/checkbox/Checkbox');
5
- var CheckboxGroup = require('antd/lib/checkbox/Group');
4
+ var antd = require('antd');
6
5
  var React = require('react');
7
- var customControls = require('./customControls-fb0b7e5f.js');
6
+ var customControls = require('./customControls-fb0b7e5f.cjs.js');
8
7
 
9
8
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
9
 
11
10
  var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
12
- var Checkbox__default = /*#__PURE__*/_interopDefault(Checkbox);
13
- var CheckboxGroup__default = /*#__PURE__*/_interopDefault(CheckboxGroup);
14
11
  var React__default = /*#__PURE__*/_interopDefault(React);
15
12
 
16
13
  var __defProp = Object.defineProperty;
@@ -29,9 +26,11 @@ var __spreadValues = (a, b) => {
29
26
  }
30
27
  return a;
31
28
  };
29
+ const Checkbox = antd.Checkbox;
30
+ const CheckboxGroup = Checkbox.Group;
32
31
  class CheckboxWrapper extends React__default.default.Component {
33
32
  render() {
34
- return /* @__PURE__ */ React__default.default.createElement(Checkbox__default.default, __spreadValues({}, this.props));
33
+ return /* @__PURE__ */ React__default.default.createElement(Checkbox, __spreadValues({}, this.props));
35
34
  }
36
35
  }
37
36
  const checkboxHelpers = {
@@ -101,12 +100,11 @@ const checkboxMeta = {
101
100
  importName: "checkboxHelpers",
102
101
  importPath: "@plasmicpkgs/antd/skinny/registerCheckbox"
103
102
  },
104
- importPath: "antd/lib/checkbox/Checkbox",
103
+ importPath: "@plasmicpkgs/antd/skinny/registerCheckbox",
105
104
  importName: "Checkbox",
106
105
  defaultStyles: {
107
106
  marginLeft: 0
108
- },
109
- isDefaultExport: true
107
+ }
110
108
  };
111
109
  function registerCheckbox(loader, customCheckboxMeta) {
112
110
  const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
@@ -149,22 +147,23 @@ const checkboxGroupMeta = {
149
147
  ]
150
148
  }
151
149
  },
152
- importPath: "antd/lib/checkbox/Group",
150
+ importPath: "@plasmicpkgs/antd/skinny/registerCheckbox",
153
151
  importName: "CheckboxGroup",
154
- parentComponentName: "AntdCheckbox",
155
- isDefaultExport: true
152
+ parentComponentName: "AntdCheckbox"
156
153
  };
157
154
  function registerCheckboxGroup(loader, customCheckboxGroupMeta) {
158
155
  const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
159
156
  doRegisterComponent(
160
- CheckboxGroup__default.default,
157
+ CheckboxGroup,
161
158
  customCheckboxGroupMeta != null ? customCheckboxGroupMeta : checkboxGroupMeta
162
159
  );
163
160
  }
164
161
 
162
+ exports.Checkbox = Checkbox;
163
+ exports.CheckboxGroup = CheckboxGroup;
165
164
  exports.checkboxGroupMeta = checkboxGroupMeta;
166
165
  exports.checkboxHelpers = checkboxHelpers;
167
166
  exports.checkboxMeta = checkboxMeta;
168
167
  exports.registerCheckbox = registerCheckbox;
169
168
  exports.registerCheckboxGroup = registerCheckboxGroup;
170
- //# sourceMappingURL=registerCheckbox.js.map
169
+ //# sourceMappingURL=registerCheckbox.cjs.js.map