@cloudtower/eagle 0.31.16 → 0.31.17

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 (35) hide show
  1. package/dist/cjs/core/Fields/FieldsEnum/index.js +1 -1
  2. package/dist/cjs/core/LegacySelect/index.js +185 -0
  3. package/dist/cjs/core/LegacySelect/select.style.js +5 -0
  4. package/dist/cjs/core/Select/index.js +106 -117
  5. package/dist/cjs/core/Select/select.style.js +11 -0
  6. package/dist/cjs/core/Select/select.widgets.js +63 -0
  7. package/dist/cjs/core/TimeZoneSelect/index.js +1 -1
  8. package/dist/cjs/core/index.js +9 -9
  9. package/dist/cjs/index.js +185 -181
  10. package/dist/cjs/legacy-antd.js +137 -135
  11. package/dist/cjs/stats1.html +1 -1
  12. package/dist/components.css +1582 -1399
  13. package/dist/esm/core/Fields/FieldsEnum/index.js +4 -4
  14. package/dist/esm/core/LegacySelect/index.js +177 -0
  15. package/dist/esm/core/LegacySelect/select.style.js +3 -0
  16. package/dist/esm/core/Select/index.js +104 -116
  17. package/dist/esm/core/Select/select.style.js +6 -0
  18. package/dist/esm/core/Select/select.widgets.js +57 -0
  19. package/dist/esm/core/TimeZoneSelect/index.js +2 -2
  20. package/dist/esm/index.js +5 -3
  21. package/dist/esm/legacy-antd.js +2 -0
  22. package/dist/esm/stats1.html +1 -1
  23. package/dist/src/core/LegacySelect/index.d.ts +4 -0
  24. package/dist/src/core/LegacySelect/select.style.d.ts +1 -0
  25. package/dist/src/core/LegacySelect/select.type.d.ts +31 -0
  26. package/dist/src/core/Select/index.d.ts +1 -0
  27. package/dist/src/core/Select/select.style.d.ts +4 -0
  28. package/dist/src/core/Select/select.type.d.ts +6 -30
  29. package/dist/src/core/Select/select.widgets.d.ts +7 -0
  30. package/dist/src/core/index.d.ts +4 -2
  31. package/dist/src/spec/base.d.ts +2 -1
  32. package/dist/stories/docs/core/{Select.Simple.stories.d.ts → LegacySelect.Simple.stories.d.ts} +3 -3
  33. package/dist/stories/docs/core/LegacySelect.stories.d.ts +16 -0
  34. package/dist/style.css +1358 -1206
  35. package/package.json +4 -4
@@ -0,0 +1,4 @@
1
+ import { LegacySelectComponentType } from "./select.type";
2
+ declare const LegacySelect: LegacySelectComponentType<any, HTMLElement>;
3
+ export default LegacySelect;
4
+ export * from "./select.type";
@@ -0,0 +1 @@
1
+ export declare const SelectStyle: import("@linaria/core").LinariaClassName;
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { SelectProps as AntdSelectProps } from "antd/lib/select";
3
+ import { FieldRenderProps } from "../Fields/fields.type";
4
+ export type KitLegacySelectProps = {
5
+ defaultValue?: string;
6
+ error?: unknown | React.ReactNode;
7
+ danger?: boolean;
8
+ multiple?: boolean;
9
+ scrollBottomBuffer?: number;
10
+ onScrollBottom?: () => void;
11
+ selectLimit?: number;
12
+ } & AntdSelectProps<string>;
13
+ export interface LooseFieldRenderProps<V, T extends HTMLElement> {
14
+ input: {
15
+ name?: FieldRenderProps<V, T>["input"]["name"];
16
+ value?: FieldRenderProps<V, T>["input"]["value"];
17
+ onBlur?: FieldRenderProps<V, T>["input"]["onBlur"];
18
+ onChange?: (value: string | string[], option: {
19
+ object: V;
20
+ } | Array<{
21
+ object: V;
22
+ }>) => void;
23
+ onFocus?: FieldRenderProps<V, T>["input"]["onFocus"];
24
+ type?: FieldRenderProps<V, T>["input"]["type"];
25
+ checked?: FieldRenderProps<V, T>["input"]["checked"];
26
+ multiple?: FieldRenderProps<V, T>["input"]["multiple"];
27
+ };
28
+ meta?: FieldRenderProps<V, T>["meta"];
29
+ focusIndicator?: boolean;
30
+ }
31
+ export type LegacySelectComponentType<V = any, T extends HTMLElement = HTMLElement> = React.FunctionComponent<LooseFieldRenderProps<V, T> & KitLegacySelectProps>;
@@ -2,3 +2,4 @@ import { SelectComponentType } from "./select.type";
2
2
  declare const Select: SelectComponentType<any, HTMLElement>;
3
3
  export default Select;
4
4
  export * from "./select.type";
5
+ export * from "./select.widgets";
@@ -0,0 +1,4 @@
1
+ export declare const SelectStyle: import("@linaria/core").LinariaClassName;
2
+ export declare const SelectIconStyle: import("@linaria/core").LinariaClassName;
3
+ export declare const SelectSizeStyle: import("@linaria/core").LinariaClassName;
4
+ export declare const PlaceholderTextStyle: import("@linaria/core").LinariaClassName;
@@ -1,32 +1,8 @@
1
- /// <reference types="react" />
2
- import { SelectProps as AntdSelectProps } from "antd/lib/select";
3
- import { FieldRenderProps } from "../Fields/fields.type";
4
- export type KitSelectProps = {
5
- defaultValue?: string;
6
- error?: unknown | React.ReactNode;
7
- danger?: boolean;
8
- multiple?: boolean;
9
- scrollBottomBuffer?: number;
10
- onScrollBottom?: () => void;
11
- selectLimit?: number;
12
- } & AntdSelectProps<string>;
13
- interface LooseFieldRenderProps<V, T extends HTMLElement> {
14
- input: {
15
- name?: FieldRenderProps<V, T>["input"]["name"];
16
- value?: FieldRenderProps<V, T>["input"]["value"];
17
- onBlur?: FieldRenderProps<V, T>["input"]["onBlur"];
18
- onChange?: (value: string | string[], option: {
19
- object: V;
20
- } | Array<{
21
- object: V;
22
- }>) => void;
23
- onFocus?: FieldRenderProps<V, T>["input"]["onFocus"];
24
- type?: FieldRenderProps<V, T>["input"]["type"];
25
- checked?: FieldRenderProps<V, T>["input"]["checked"];
26
- multiple?: FieldRenderProps<V, T>["input"]["multiple"];
27
- };
28
- meta?: FieldRenderProps<V, T>["meta"];
29
- focusIndicator?: boolean;
30
- }
1
+ import { KitLegacySelectProps, LooseFieldRenderProps } from "../../core/LegacySelect";
2
+ import React from "react";
3
+ type KitSelectProps = KitLegacySelectProps & {
4
+ /** 是否正在加载 Select 组件的值 */
5
+ isLoadingValue?: boolean;
6
+ };
31
7
  export type SelectComponentType<V = any, T extends HTMLElement = HTMLElement> = React.FunctionComponent<LooseFieldRenderProps<V, T> & KitSelectProps>;
32
8
  export {};
@@ -0,0 +1,7 @@
1
+ import { OptionProps as AntdOptionProps } from "antd/lib/select";
2
+ import React from "react";
3
+ export type OptionProps = AntdOptionProps & {
4
+ prefix?: React.ReactNode;
5
+ suffix?: React.ReactNode;
6
+ };
7
+ export declare function getOptions(options: OptionProps[]): React.JSX.Element[];
@@ -20,6 +20,7 @@ export * from "./Calendar";
20
20
  export * from "./Card";
21
21
  export * from "./Cascader";
22
22
  export * from "./Checkbox";
23
+ export * from "./ConfigProvider";
23
24
  export * from "./DeprecatedProgress";
24
25
  export * from "./DetailCard";
25
26
  export * from "./DonutChart";
@@ -40,6 +41,7 @@ export * from "./InputNumber";
40
41
  export * from "./InputPassword";
41
42
  export * from "./InputTagItem";
42
43
  export * from "./KitStoreProvider";
44
+ export * from "./LegacySelect";
43
45
  export * from "./Link";
44
46
  export * from "./Loading";
45
47
  export * from "./message";
@@ -64,6 +66,7 @@ export * from "./SegmentControl";
64
66
  export * from "./Select";
65
67
  export * from "./SidebarMenu";
66
68
  export * from "./SimplePagination";
69
+ export * from "./Skeleton";
67
70
  export * from "./Space";
68
71
  export * from "./Speed";
69
72
  export * from "./StatusCapsule";
@@ -86,8 +89,6 @@ export * from "./Tooltip";
86
89
  export * from "./Truncate";
87
90
  export * from "./Typo";
88
91
  export * from "./Units";
89
- export * from "./ConfigProvider";
90
- export * from "./Skeleton";
91
92
  export declare const units: {
92
93
  Percent: import("./Units").PercentFn;
93
94
  Byte: import("./Units").UnitFn;
@@ -138,6 +139,7 @@ export { default as InputNumber } from "./InputNumber";
138
139
  export { default as InputPassword } from "./InputPassword";
139
140
  export { default as InputTagItem } from "./InputTagItem";
140
141
  export { default as KitStoreProvider } from "./KitStoreProvider";
142
+ export { default as LegacySelect } from "./LegacySelect";
141
143
  export { default as Link } from "./Link";
142
144
  export { default as Loading } from "./Loading";
143
145
  export { default as message } from "./message";
@@ -1,4 +1,4 @@
1
- import type { AlertComponentType, ArchComponentType, BadgeComponentType, BaseEnumProps, ButtonGroupType, ButtonProps, CalendarComponentType, CardProps, CloseButtonProps, FieldBaseProps, FieldRenderProps, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, IDetailCardProps, IDonutChartProps, IDropdownMenuProps, InputGroupComponentType, InputSize, IntFieldProps, ISegmentedControlProps, ISimplePaginationProps, ISpaceProps, IStepsProps, ITimeProps, ITimeZoneSelectProps, LinkComponentType, LoadingComponentType, MessageApi, ModalProps, PaginationProps, PercentFn, RadioButtonProps, RadioProps, SearchInputProps, SelectComponentType, StatusCapsuleComponentType, StringProps, SwitchProps, TableComponent, TableFormHandle, TableFormProps, TagComponentType, TextAreaProps, TokenComponentType, TooltipProps, TruncatePropTypes, UnitFn } from "../core";
1
+ import type { AlertComponentType, ArchComponentType, BadgeComponentType, BaseEnumProps, ButtonGroupType, ButtonProps, CalendarComponentType, CardProps, CloseButtonProps, FieldBaseProps, FieldRenderProps, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, IDetailCardProps, IDonutChartProps, IDropdownMenuProps, InputGroupComponentType, InputSize, IntFieldProps, ISegmentedControlProps, ISimplePaginationProps, ISpaceProps, IStepsProps, ITimeProps, ITimeZoneSelectProps, LegacySelectComponentType, LinkComponentType, LoadingComponentType, MessageApi, ModalProps, PaginationProps, PercentFn, RadioButtonProps, RadioProps, SearchInputProps, SelectComponentType, StatusCapsuleComponentType, StringProps, SwitchProps, TableComponent, TableFormHandle, TableFormProps, TagComponentType, TextAreaProps, TokenComponentType, TooltipProps, TruncatePropTypes, UnitFn } from "../core";
2
2
  import type { CronCalendarProps, CronPlanProps, DateRangePickerProps, DeprecatedIDonutChartProps, DropdownTransitionProps, GoBackButtonType, I18nNameTagType, IBatchOperation, IChartWithUnitProps, ICountingProps, ICWTProps, IUnitWithChartProps, NamesTooltipType, OverflowTooltipProps, SidebarSubtitleComponentType, SortableListComponentType, SummaryTableComponentType, SwitchWithTextProps } from "../coreX";
3
3
  import { AutoCompleteProps } from "antd/lib/auto-complete";
4
4
  import { BadgeProps } from "antd/lib/badge";
@@ -101,6 +101,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
101
101
  error: unknown;
102
102
  }>;
103
103
  pagination: React.FC<PaginationProps>;
104
+ legacySelect: LegacySelectComponentType<V, T>;
104
105
  select: SelectComponentType<V, T>;
105
106
  option: OptionComponentType;
106
107
  selectOptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
@@ -1,8 +1,8 @@
1
- import Select from "../../../src/core/Select";
1
+ import LegacySelect from "../../../src/core/LegacySelect";
2
2
  import { Meta, StoryObj } from "@storybook/react";
3
- declare const meta: Meta<typeof Select>;
3
+ declare const meta: Meta<typeof LegacySelect>;
4
4
  export default meta;
5
- type Story = StoryObj<typeof Select>;
5
+ type Story = StoryObj<typeof LegacySelect>;
6
6
  export declare const Simple: Story;
7
7
  export declare const Multiple: Story;
8
8
  export declare const MultipleWithSearch: Story;
@@ -0,0 +1,16 @@
1
+ import { Meta } from "@storybook/react";
2
+ import React from "react";
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ export declare const Basic: {
6
+ (): React.JSX.Element;
7
+ story: {
8
+ name: string;
9
+ parameters: {
10
+ design: {
11
+ type: string;
12
+ url: string;
13
+ };
14
+ };
15
+ };
16
+ };