@clickhouse/click-ui 0.0.160 → 0.0.161
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/click-ui.es.js +13 -2
- package/dist/click-ui.umd.js +13 -2
- package/dist/components/Select/SingleSelect.d.ts +2 -0
- package/dist/components/Select/common/InternalSelect.d.ts +1 -1
- package/dist/components/Select/common/SelectStyled.d.ts +5 -2
- package/dist/components/Select/common/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/click-ui.es.js
CHANGED
|
@@ -33339,7 +33339,16 @@ const StyledSelectTrigger = styled($cb5cc270b50c6fcd$export$41fb9f06171c75f4).wi
|
|
|
33339
33339
|
`);
|
|
33340
33340
|
const SelectPopoverContent = styled($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2).withConfig({
|
|
33341
33341
|
componentId: "sc-oudbwg-3"
|
|
33342
|
-
})(["width:var(--radix-popover-trigger-width);max-height:var(--radix-popover-content-available-height);border-radius:0.25rem;pointer-events:auto;", " overflow:hidden;display:flex;padding:0.5rem 0rem;align-items:flex-start;gap:0.625rem;"], ({
|
|
33342
|
+
})(["width:var(--radix-popover-trigger-width);max-height:var(--radix-popover-content-available-height);border-radius:0.25rem;pointer-events:auto;", " ", " overflow:hidden;display:flex;padding:0.5rem 0rem;align-items:flex-start;gap:0.625rem;"], ({
|
|
33343
|
+
$useFullWidthItems,
|
|
33344
|
+
$itemCharacterLimit
|
|
33345
|
+
}) => `
|
|
33346
|
+
${$useFullWidthItems ? `
|
|
33347
|
+
max-width: ${$itemCharacterLimit};
|
|
33348
|
+
min-width: var(--radix-popover-trigger-width);
|
|
33349
|
+
width: 100%;
|
|
33350
|
+
` : "width: var(--radix-popover-trigger-width)"};
|
|
33351
|
+
`, ({
|
|
33343
33352
|
theme: theme2
|
|
33344
33353
|
}) => `
|
|
33345
33354
|
border: 1px solid ${theme2.click.genericMenu.item.color.stroke.default};
|
|
@@ -36878,6 +36887,8 @@ const InternalSelect = ({
|
|
|
36878
36887
|
selectLabel,
|
|
36879
36888
|
showSearch = false,
|
|
36880
36889
|
container,
|
|
36890
|
+
useFullWidthItems = false,
|
|
36891
|
+
itemCharacterLimit = "64ch",
|
|
36881
36892
|
...props
|
|
36882
36893
|
}) => {
|
|
36883
36894
|
const defaultId = useId();
|
|
@@ -37053,7 +37064,7 @@ const InternalSelect = ({
|
|
|
37053
37064
|
onUpdateSearch("");
|
|
37054
37065
|
}, onOpenAutoFocus: () => {
|
|
37055
37066
|
setHighlighted(visibleList.current[0]);
|
|
37056
|
-
}, align: "start", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectList, { children: [
|
|
37067
|
+
}, align: "start", $useFullWidthItems: useFullWidthItems, $itemCharacterLimit: itemCharacterLimit, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectList, { children: [
|
|
37057
37068
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SearchBarContainer, { $showSearch: showSearch, children: [
|
|
37058
37069
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchBar, { ref: inputRef, value: search, onChange: (e) => onUpdateSearch(e.target.value), "data-testid": "select-search-input", onKeyDown, $showSearch: showSearch }),
|
|
37059
37070
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchClose, { as: IconButton$1, icon: "cross", onClick: clearSearch, "data-testid": "select-search-close", $showClose: search.length > 0, size: "xs" })
|
package/dist/click-ui.umd.js
CHANGED
|
@@ -33356,7 +33356,16 @@ var __publicField = (obj, key, value) => {
|
|
|
33356
33356
|
`);
|
|
33357
33357
|
const SelectPopoverContent = styled($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2).withConfig({
|
|
33358
33358
|
componentId: "sc-oudbwg-3"
|
|
33359
|
-
})(["width:var(--radix-popover-trigger-width);max-height:var(--radix-popover-content-available-height);border-radius:0.25rem;pointer-events:auto;", " overflow:hidden;display:flex;padding:0.5rem 0rem;align-items:flex-start;gap:0.625rem;"], ({
|
|
33359
|
+
})(["width:var(--radix-popover-trigger-width);max-height:var(--radix-popover-content-available-height);border-radius:0.25rem;pointer-events:auto;", " ", " overflow:hidden;display:flex;padding:0.5rem 0rem;align-items:flex-start;gap:0.625rem;"], ({
|
|
33360
|
+
$useFullWidthItems,
|
|
33361
|
+
$itemCharacterLimit
|
|
33362
|
+
}) => `
|
|
33363
|
+
${$useFullWidthItems ? `
|
|
33364
|
+
max-width: ${$itemCharacterLimit};
|
|
33365
|
+
min-width: var(--radix-popover-trigger-width);
|
|
33366
|
+
width: 100%;
|
|
33367
|
+
` : "width: var(--radix-popover-trigger-width)"};
|
|
33368
|
+
`, ({
|
|
33360
33369
|
theme: theme2
|
|
33361
33370
|
}) => `
|
|
33362
33371
|
border: 1px solid ${theme2.click.genericMenu.item.color.stroke.default};
|
|
@@ -36895,6 +36904,8 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
36895
36904
|
selectLabel,
|
|
36896
36905
|
showSearch = false,
|
|
36897
36906
|
container,
|
|
36907
|
+
useFullWidthItems = false,
|
|
36908
|
+
itemCharacterLimit = "64ch",
|
|
36898
36909
|
...props
|
|
36899
36910
|
}) => {
|
|
36900
36911
|
const defaultId = React.useId();
|
|
@@ -37070,7 +37081,7 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
|
|
|
37070
37081
|
onUpdateSearch("");
|
|
37071
37082
|
}, onOpenAutoFocus: () => {
|
|
37072
37083
|
setHighlighted(visibleList.current[0]);
|
|
37073
|
-
}, align: "start", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectList, { children: [
|
|
37084
|
+
}, align: "start", $useFullWidthItems: useFullWidthItems, $itemCharacterLimit: itemCharacterLimit, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SelectList, { children: [
|
|
37074
37085
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SearchBarContainer, { $showSearch: showSearch, children: [
|
|
37075
37086
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchBar, { ref: inputRef, value: search, onChange: (e) => onUpdateSearch(e.target.value), "data-testid": "select-search-input", onKeyDown, $showSearch: showSearch }),
|
|
37076
37087
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchClose, { as: IconButton$1, icon: "cross", onClick: clearSearch, "data-testid": "select-search-close", $showClose: search.length > 0, size: "xs" })
|
|
@@ -6,6 +6,8 @@ export interface SelectProps extends Omit<SelectContainerProps, "onChange" | "va
|
|
|
6
6
|
value?: string;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
onOpenChange?: (open: boolean) => void;
|
|
9
|
+
useFullWidthItems?: boolean;
|
|
10
|
+
itemCharacterLimit?: string;
|
|
9
11
|
}
|
|
10
12
|
export declare const Select: {
|
|
11
13
|
({ value: valueProp, defaultValue, onSelect: onSelectProp, options, children, onOpenChange: onOpenChangeProp, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectContainerProps, SelectGroupProps, SelectItemProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const InternalSelect: ({ label, children, orientation, dir, disabled, id, error, value: selectedValues, onChange, onSelect, open, onOpenChange, name, form, allowCreateOption, customText, options, sortable, placeholder, multiple, checkbox, selectLabel, showSearch, container, ...props }: SelectContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const InternalSelect: ({ label, children, orientation, dir, disabled, id, error, value: selectedValues, onChange, onSelect, open, onOpenChange, name, form, allowCreateOption, customText, options, sortable, placeholder, multiple, checkbox, selectLabel, showSearch, container, useFullWidthItems, itemCharacterLimit, ...props }: SelectContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const SelectGroup: import('react').ForwardRefExoticComponent<SelectGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export declare const SelectItem: import('react').ForwardRefExoticComponent<SelectItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export declare const MultiSelectCheckboxItem: import('react').ForwardRefExoticComponent<SelectItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -5,9 +5,12 @@ export declare const StyledSelectTrigger: import('styled-components/dist/types')
|
|
|
5
5
|
}, {
|
|
6
6
|
$error: boolean;
|
|
7
7
|
}>> & string & Omit<import('react').ForwardRefExoticComponent<import('@radix-ui/react-popover').PopoverTriggerProps & import('react').RefAttributes<HTMLButtonElement>>, keyof import('react').Component<any, {}, any>>;
|
|
8
|
-
export declare const SelectPopoverContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').
|
|
8
|
+
export declare const SelectPopoverContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('@radix-ui/react-popover').PopoverContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
9
|
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
},
|
|
10
|
+
}, {
|
|
11
|
+
$useFullWidthItems: boolean;
|
|
12
|
+
$itemCharacterLimit?: string;
|
|
13
|
+
}>> & string & Omit<import('react').ForwardRefExoticComponent<import('@radix-ui/react-popover').PopoverContentProps & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
11
14
|
export declare const SearchBarContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
12
15
|
$showSearch: boolean;
|
|
13
16
|
}>> & string;
|
|
@@ -67,6 +67,8 @@ interface InternalSelectProps extends PopoverProps, Omit<HTMLAttributes<HTMLDivE
|
|
|
67
67
|
showSearch?: boolean;
|
|
68
68
|
customText?: string;
|
|
69
69
|
container?: HTMLElement;
|
|
70
|
+
useFullWidthItems?: boolean;
|
|
71
|
+
itemCharacterLimit?: string;
|
|
70
72
|
}
|
|
71
73
|
export type SelectOptionProp = SelectOptionType | SelectChildrenType;
|
|
72
74
|
export type SelectContainerProps = SelectOptionProp & InternalSelectProps;
|