@ikatec/nebula-react 1.9.0 → 1.10.0-beta.1
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/ikatec-nebula-react-1.10.0-beta.1.tgz +0 -0
- package/dist/index.d.mts +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.js +39 -20
- package/dist/index.mjs +38 -19
- package/package.json +1 -1
- package/dist/ikatec-nebula-react-1.9.0.tgz +0 -0
|
Binary file
|
package/dist/index.d.mts
CHANGED
|
@@ -637,21 +637,23 @@ interface CreateStyledSelectProps extends Omit<Props, 'isDisabled'> {
|
|
|
637
637
|
icon?: React.ReactNode;
|
|
638
638
|
disabled?: boolean;
|
|
639
639
|
isError?: boolean;
|
|
640
|
+
size?: 'sm' | 'md';
|
|
641
|
+
hideSelectArrow?: boolean;
|
|
640
642
|
}
|
|
641
643
|
declare const StyledSelect: {
|
|
642
|
-
({ icon, disabled, isError, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
644
|
+
({ icon, disabled, isError, size, hideSelectArrow, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
643
645
|
displayName: string;
|
|
644
646
|
};
|
|
645
647
|
declare const StyledCreatable: {
|
|
646
|
-
({ icon, disabled, isError, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
648
|
+
({ icon, disabled, isError, size, hideSelectArrow, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
647
649
|
displayName: string;
|
|
648
650
|
};
|
|
649
651
|
declare const StyledAsync: {
|
|
650
|
-
({ icon, disabled, isError, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
652
|
+
({ icon, disabled, isError, size, hideSelectArrow, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
651
653
|
displayName: string;
|
|
652
654
|
};
|
|
653
655
|
declare const StyledAsyncCreatable: {
|
|
654
|
-
({ icon, disabled, isError, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
656
|
+
({ icon, disabled, isError, size, hideSelectArrow, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
655
657
|
displayName: string;
|
|
656
658
|
};
|
|
657
659
|
|
|
@@ -1113,8 +1115,10 @@ interface SidebarProps {
|
|
|
1113
1115
|
defaultState?: SidebarState;
|
|
1114
1116
|
open?: boolean;
|
|
1115
1117
|
onOpenChange?: (open: boolean) => void;
|
|
1118
|
+
width?: number;
|
|
1119
|
+
railWidth?: number;
|
|
1116
1120
|
}
|
|
1117
|
-
declare function Sidebar({ children, defaultState, open, onOpenChange, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1121
|
+
declare function Sidebar({ children, defaultState, open, onOpenChange, width, railWidth, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1118
1122
|
declare function SidebarHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1119
1123
|
declare function SidebarContent({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1120
1124
|
declare function SidebarTitle({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -637,21 +637,23 @@ interface CreateStyledSelectProps extends Omit<Props, 'isDisabled'> {
|
|
|
637
637
|
icon?: React.ReactNode;
|
|
638
638
|
disabled?: boolean;
|
|
639
639
|
isError?: boolean;
|
|
640
|
+
size?: 'sm' | 'md';
|
|
641
|
+
hideSelectArrow?: boolean;
|
|
640
642
|
}
|
|
641
643
|
declare const StyledSelect: {
|
|
642
|
-
({ icon, disabled, isError, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
644
|
+
({ icon, disabled, isError, size, hideSelectArrow, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
643
645
|
displayName: string;
|
|
644
646
|
};
|
|
645
647
|
declare const StyledCreatable: {
|
|
646
|
-
({ icon, disabled, isError, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
648
|
+
({ icon, disabled, isError, size, hideSelectArrow, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
647
649
|
displayName: string;
|
|
648
650
|
};
|
|
649
651
|
declare const StyledAsync: {
|
|
650
|
-
({ icon, disabled, isError, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
652
|
+
({ icon, disabled, isError, size, hideSelectArrow, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
651
653
|
displayName: string;
|
|
652
654
|
};
|
|
653
655
|
declare const StyledAsyncCreatable: {
|
|
654
|
-
({ icon, disabled, isError, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
656
|
+
({ icon, disabled, isError, size, hideSelectArrow, ...props }: CreateStyledSelectProps): react_jsx_runtime.JSX.Element;
|
|
655
657
|
displayName: string;
|
|
656
658
|
};
|
|
657
659
|
|
|
@@ -1113,8 +1115,10 @@ interface SidebarProps {
|
|
|
1113
1115
|
defaultState?: SidebarState;
|
|
1114
1116
|
open?: boolean;
|
|
1115
1117
|
onOpenChange?: (open: boolean) => void;
|
|
1118
|
+
width?: number;
|
|
1119
|
+
railWidth?: number;
|
|
1116
1120
|
}
|
|
1117
|
-
declare function Sidebar({ children, defaultState, open, onOpenChange, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1121
|
+
declare function Sidebar({ children, defaultState, open, onOpenChange, width, railWidth, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1118
1122
|
declare function SidebarHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1119
1123
|
declare function SidebarContent({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1120
1124
|
declare function SidebarTitle({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element | null;
|
package/dist/index.js
CHANGED
|
@@ -22,9 +22,9 @@ var LabelPrimitive = require('@radix-ui/react-label');
|
|
|
22
22
|
var RPNInput = require('react-phone-number-input');
|
|
23
23
|
var flags = require('react-phone-number-input/flags');
|
|
24
24
|
var Select = require('react-select');
|
|
25
|
-
var Creatable = require('react-select/creatable');
|
|
26
25
|
var Async = require('react-select/async');
|
|
27
26
|
var AsyncCreatable = require('react-select/async-creatable');
|
|
27
|
+
var Creatable = require('react-select/creatable');
|
|
28
28
|
var core = require('@dnd-kit/core');
|
|
29
29
|
var sortable = require('@dnd-kit/sortable');
|
|
30
30
|
var utilities = require('@dnd-kit/utilities');
|
|
@@ -69,9 +69,9 @@ var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
|
69
69
|
var RPNInput__namespace = /*#__PURE__*/_interopNamespace(RPNInput);
|
|
70
70
|
var flags__default = /*#__PURE__*/_interopDefault(flags);
|
|
71
71
|
var Select__default = /*#__PURE__*/_interopDefault(Select);
|
|
72
|
-
var Creatable__default = /*#__PURE__*/_interopDefault(Creatable);
|
|
73
72
|
var Async__default = /*#__PURE__*/_interopDefault(Async);
|
|
74
73
|
var AsyncCreatable__default = /*#__PURE__*/_interopDefault(AsyncCreatable);
|
|
74
|
+
var Creatable__default = /*#__PURE__*/_interopDefault(Creatable);
|
|
75
75
|
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
76
76
|
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
77
77
|
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
@@ -5812,15 +5812,18 @@ var Option = (props) => {
|
|
|
5812
5812
|
}
|
|
5813
5813
|
);
|
|
5814
5814
|
};
|
|
5815
|
-
var controlStyles = ({ isDisabled, isFocused }, isError) => {
|
|
5815
|
+
var controlStyles = ({ isDisabled, isFocused }, isError, size4) => {
|
|
5816
5816
|
return cn(
|
|
5817
|
-
"flex w-full items-center border bg-inputSelect-default-background rounded-input px-4
|
|
5817
|
+
"flex w-full items-center border bg-inputSelect-default-background rounded-input px-4 transition",
|
|
5818
5818
|
{
|
|
5819
5819
|
"ring-[3px] border-inputSelect-focus-border text-inputSelect-focus-text ring-inputSelect-focus-border": isFocused,
|
|
5820
5820
|
"border-inputSelect-danger-border text-inputSelect-danger-icon": isError,
|
|
5821
5821
|
"border-inputSelect-default-border text-inputSelect-default-text": !isFocused && !isError,
|
|
5822
5822
|
"bg-inputText-background-disabled": isDisabled,
|
|
5823
|
-
"ring-button-danger-border-focus": isError && isFocused
|
|
5823
|
+
"ring-button-danger-border-focus": isError && isFocused,
|
|
5824
|
+
[buttonSizeEnum[size4 ?? "md"]]: true,
|
|
5825
|
+
"!min-h-8": size4 === "sm",
|
|
5826
|
+
"!min-h-10": size4 === "md"
|
|
5824
5827
|
}
|
|
5825
5828
|
);
|
|
5826
5829
|
};
|
|
@@ -5832,6 +5835,7 @@ var multiValueStyles = "border rounded-full items-center gap-1.5 text-xs border-
|
|
|
5832
5835
|
var multiValueLabelStyles = "";
|
|
5833
5836
|
var indicatorsContainerStyles = "";
|
|
5834
5837
|
var clearIndicatorStyles = "text-inputSelect-default-icon mr-2";
|
|
5838
|
+
var clearIndicatorStylesHidden = "text-inputSelect-default-icon mr-0";
|
|
5835
5839
|
var dropdownIndicatorStyles = "text-inputSelect-default-icon";
|
|
5836
5840
|
var menuStyles = `
|
|
5837
5841
|
mt-2
|
|
@@ -5856,6 +5860,8 @@ var createStyledSelect = (BaseSelect, displayName) => {
|
|
|
5856
5860
|
icon = null,
|
|
5857
5861
|
disabled = false,
|
|
5858
5862
|
isError = false,
|
|
5863
|
+
size: size4 = "md",
|
|
5864
|
+
hideSelectArrow = false,
|
|
5859
5865
|
...props
|
|
5860
5866
|
}) => {
|
|
5861
5867
|
const CloneIcon = icon && React25.cloneElement(icon, {
|
|
@@ -5864,7 +5870,7 @@ var createStyledSelect = (BaseSelect, displayName) => {
|
|
|
5864
5870
|
const { messages: messages23 } = useNebulaI18n();
|
|
5865
5871
|
const customClassNames = React25.useMemo(() => {
|
|
5866
5872
|
return {
|
|
5867
|
-
control: (props2) => controlStyles(props2, isError),
|
|
5873
|
+
control: (props2) => controlStyles(props2, isError, size4),
|
|
5868
5874
|
placeholder: () => placeholderStyles,
|
|
5869
5875
|
input: () => selectInputStyles,
|
|
5870
5876
|
valueContainer: () => valueContainerStyles,
|
|
@@ -5872,16 +5878,16 @@ var createStyledSelect = (BaseSelect, displayName) => {
|
|
|
5872
5878
|
multiValue: () => multiValueStyles,
|
|
5873
5879
|
multiValueLabel: () => multiValueLabelStyles,
|
|
5874
5880
|
indicatorsContainer: () => indicatorsContainerStyles,
|
|
5875
|
-
clearIndicator: () => clearIndicatorStyles,
|
|
5881
|
+
clearIndicator: () => hideSelectArrow ? clearIndicatorStylesHidden : clearIndicatorStyles,
|
|
5876
5882
|
dropdownIndicator: () => dropdownIndicatorStyles,
|
|
5877
5883
|
menu: () => menuStyles,
|
|
5878
5884
|
groupHeading: () => groupHeadingStyles,
|
|
5879
5885
|
noOptionsMessage: () => noOptionsMessageStyles
|
|
5880
5886
|
};
|
|
5881
|
-
}, [isError]);
|
|
5887
|
+
}, [hideSelectArrow, isError, size4]);
|
|
5882
5888
|
const customComponents = React25.useMemo(
|
|
5883
5889
|
() => ({
|
|
5884
|
-
DropdownIndicator,
|
|
5890
|
+
DropdownIndicator: hideSelectArrow ? () => null : DropdownIndicator,
|
|
5885
5891
|
ClearIndicator,
|
|
5886
5892
|
MultiValueRemove,
|
|
5887
5893
|
Option,
|
|
@@ -5899,7 +5905,7 @@ var createStyledSelect = (BaseSelect, displayName) => {
|
|
|
5899
5905
|
children
|
|
5900
5906
|
] }) })
|
|
5901
5907
|
}),
|
|
5902
|
-
[icon, isError, CloneIcon]
|
|
5908
|
+
[hideSelectArrow, icon, isError, CloneIcon]
|
|
5903
5909
|
);
|
|
5904
5910
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5905
5911
|
BaseSelect,
|
|
@@ -8914,7 +8920,9 @@ function Sidebar({
|
|
|
8914
8920
|
children,
|
|
8915
8921
|
defaultState = "expanded",
|
|
8916
8922
|
open,
|
|
8917
|
-
onOpenChange
|
|
8923
|
+
onOpenChange,
|
|
8924
|
+
width = 270,
|
|
8925
|
+
railWidth = 72
|
|
8918
8926
|
}) {
|
|
8919
8927
|
const isMobile = useIsMobile();
|
|
8920
8928
|
const isControlled = open !== void 0;
|
|
@@ -8941,7 +8949,7 @@ function Sidebar({
|
|
|
8941
8949
|
{
|
|
8942
8950
|
open: state !== "collapsed",
|
|
8943
8951
|
onOpenChange: (o) => setState(o ? "expanded" : "collapsed"),
|
|
8944
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(DrawerContent, { className: "nebula-ds
|
|
8952
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DrawerContent, { className: "nebula-ds p-0 shadow-xl", style: { width }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds flex h-full flex-col bg-sidebar-background", children }) })
|
|
8945
8953
|
}
|
|
8946
8954
|
) });
|
|
8947
8955
|
}
|
|
@@ -8951,10 +8959,11 @@ function Sidebar({
|
|
|
8951
8959
|
"data-state": state,
|
|
8952
8960
|
className: cn(
|
|
8953
8961
|
"relative hidden md:flex flex-col border-r border-sidebar-border bg-sidebar-background transition-all duration-300 ease-in-out",
|
|
8954
|
-
state === "expanded" && "w-[var(--sidebar-width)]",
|
|
8955
|
-
state === "rail" && "w-[var(--sidebar-rail-width)]",
|
|
8956
8962
|
state === "collapsed" && "w-0 overflow-hidden"
|
|
8957
8963
|
),
|
|
8964
|
+
style: {
|
|
8965
|
+
width: state === "expanded" ? width : state === "rail" ? railWidth : 0
|
|
8966
|
+
},
|
|
8958
8967
|
children
|
|
8959
8968
|
}
|
|
8960
8969
|
) });
|
|
@@ -9175,7 +9184,8 @@ function Combobox({
|
|
|
9175
9184
|
controlShouldRenderValue: false,
|
|
9176
9185
|
hideSelectedOptions: false,
|
|
9177
9186
|
className: "nebula-ds w-full",
|
|
9178
|
-
isClearable: false
|
|
9187
|
+
isClearable: false,
|
|
9188
|
+
hideSelectArrow: true
|
|
9179
9189
|
}
|
|
9180
9190
|
),
|
|
9181
9191
|
selectedValues.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds flex flex-wrap gap-2", children: [
|
|
@@ -9200,11 +9210,20 @@ function Combobox({
|
|
|
9200
9210
|
{
|
|
9201
9211
|
variant: "secondary",
|
|
9202
9212
|
shadow: "none",
|
|
9203
|
-
className: "nebula-ds w-full flex justify-center items-center",
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9213
|
+
className: "nebula-ds w-full flex justify-center items-center rounded-lg dark:bg-neutral-900",
|
|
9214
|
+
paddingSize: "none",
|
|
9215
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9216
|
+
Space,
|
|
9217
|
+
{
|
|
9218
|
+
direction: "column",
|
|
9219
|
+
className: "nebula-ds justify-center items-center p-3 w-full",
|
|
9220
|
+
size: "xs",
|
|
9221
|
+
children: [
|
|
9222
|
+
/* @__PURE__ */ jsxRuntime.jsx(Heading, { level: "6", className: "nebula-ds text-center", children: emptyStateText || messages23.combobox.noItemsSelected }),
|
|
9223
|
+
/* @__PURE__ */ jsxRuntime.jsx(Paragraph, { size: "sm", className: "nebula-ds text-center", children: emptyStateDescription || messages23.combobox.selectAnOption })
|
|
9224
|
+
]
|
|
9225
|
+
}
|
|
9226
|
+
)
|
|
9208
9227
|
}
|
|
9209
9228
|
)
|
|
9210
9229
|
] });
|
package/dist/index.mjs
CHANGED
|
@@ -21,9 +21,9 @@ import * as LabelPrimitive from '@radix-ui/react-label';
|
|
|
21
21
|
import * as RPNInput from 'react-phone-number-input';
|
|
22
22
|
import flags from 'react-phone-number-input/flags';
|
|
23
23
|
import Select, { components } from 'react-select';
|
|
24
|
-
import Creatable from 'react-select/creatable';
|
|
25
24
|
import Async from 'react-select/async';
|
|
26
25
|
import AsyncCreatable from 'react-select/async-creatable';
|
|
26
|
+
import Creatable from 'react-select/creatable';
|
|
27
27
|
import { defaultDropAnimationSideEffects, MeasuringStrategy, useDndContext, useDroppable, useSensors, useSensor, PointerSensor, TouchSensor, KeyboardSensor, pointerWithin, closestCenter, rectIntersection, DndContext, DragOverlay } from '@dnd-kit/core';
|
|
28
28
|
import { useSortable, defaultAnimateLayoutChanges, sortableKeyboardCoordinates, arrayMove, SortableContext, horizontalListSortingStrategy, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
29
29
|
import { CSS } from '@dnd-kit/utilities';
|
|
@@ -5769,15 +5769,18 @@ var Option = (props) => {
|
|
|
5769
5769
|
}
|
|
5770
5770
|
);
|
|
5771
5771
|
};
|
|
5772
|
-
var controlStyles = ({ isDisabled, isFocused }, isError) => {
|
|
5772
|
+
var controlStyles = ({ isDisabled, isFocused }, isError, size4) => {
|
|
5773
5773
|
return cn(
|
|
5774
|
-
"flex w-full items-center border bg-inputSelect-default-background rounded-input px-4
|
|
5774
|
+
"flex w-full items-center border bg-inputSelect-default-background rounded-input px-4 transition",
|
|
5775
5775
|
{
|
|
5776
5776
|
"ring-[3px] border-inputSelect-focus-border text-inputSelect-focus-text ring-inputSelect-focus-border": isFocused,
|
|
5777
5777
|
"border-inputSelect-danger-border text-inputSelect-danger-icon": isError,
|
|
5778
5778
|
"border-inputSelect-default-border text-inputSelect-default-text": !isFocused && !isError,
|
|
5779
5779
|
"bg-inputText-background-disabled": isDisabled,
|
|
5780
|
-
"ring-button-danger-border-focus": isError && isFocused
|
|
5780
|
+
"ring-button-danger-border-focus": isError && isFocused,
|
|
5781
|
+
[buttonSizeEnum[size4 ?? "md"]]: true,
|
|
5782
|
+
"!min-h-8": size4 === "sm",
|
|
5783
|
+
"!min-h-10": size4 === "md"
|
|
5781
5784
|
}
|
|
5782
5785
|
);
|
|
5783
5786
|
};
|
|
@@ -5789,6 +5792,7 @@ var multiValueStyles = "border rounded-full items-center gap-1.5 text-xs border-
|
|
|
5789
5792
|
var multiValueLabelStyles = "";
|
|
5790
5793
|
var indicatorsContainerStyles = "";
|
|
5791
5794
|
var clearIndicatorStyles = "text-inputSelect-default-icon mr-2";
|
|
5795
|
+
var clearIndicatorStylesHidden = "text-inputSelect-default-icon mr-0";
|
|
5792
5796
|
var dropdownIndicatorStyles = "text-inputSelect-default-icon";
|
|
5793
5797
|
var menuStyles = `
|
|
5794
5798
|
mt-2
|
|
@@ -5813,6 +5817,8 @@ var createStyledSelect = (BaseSelect, displayName) => {
|
|
|
5813
5817
|
icon = null,
|
|
5814
5818
|
disabled = false,
|
|
5815
5819
|
isError = false,
|
|
5820
|
+
size: size4 = "md",
|
|
5821
|
+
hideSelectArrow = false,
|
|
5816
5822
|
...props
|
|
5817
5823
|
}) => {
|
|
5818
5824
|
const CloneIcon = icon && cloneElement(icon, {
|
|
@@ -5821,7 +5827,7 @@ var createStyledSelect = (BaseSelect, displayName) => {
|
|
|
5821
5827
|
const { messages: messages23 } = useNebulaI18n();
|
|
5822
5828
|
const customClassNames = useMemo(() => {
|
|
5823
5829
|
return {
|
|
5824
|
-
control: (props2) => controlStyles(props2, isError),
|
|
5830
|
+
control: (props2) => controlStyles(props2, isError, size4),
|
|
5825
5831
|
placeholder: () => placeholderStyles,
|
|
5826
5832
|
input: () => selectInputStyles,
|
|
5827
5833
|
valueContainer: () => valueContainerStyles,
|
|
@@ -5829,16 +5835,16 @@ var createStyledSelect = (BaseSelect, displayName) => {
|
|
|
5829
5835
|
multiValue: () => multiValueStyles,
|
|
5830
5836
|
multiValueLabel: () => multiValueLabelStyles,
|
|
5831
5837
|
indicatorsContainer: () => indicatorsContainerStyles,
|
|
5832
|
-
clearIndicator: () => clearIndicatorStyles,
|
|
5838
|
+
clearIndicator: () => hideSelectArrow ? clearIndicatorStylesHidden : clearIndicatorStyles,
|
|
5833
5839
|
dropdownIndicator: () => dropdownIndicatorStyles,
|
|
5834
5840
|
menu: () => menuStyles,
|
|
5835
5841
|
groupHeading: () => groupHeadingStyles,
|
|
5836
5842
|
noOptionsMessage: () => noOptionsMessageStyles
|
|
5837
5843
|
};
|
|
5838
|
-
}, [isError]);
|
|
5844
|
+
}, [hideSelectArrow, isError, size4]);
|
|
5839
5845
|
const customComponents = useMemo(
|
|
5840
5846
|
() => ({
|
|
5841
|
-
DropdownIndicator,
|
|
5847
|
+
DropdownIndicator: hideSelectArrow ? () => null : DropdownIndicator,
|
|
5842
5848
|
ClearIndicator,
|
|
5843
5849
|
MultiValueRemove,
|
|
5844
5850
|
Option,
|
|
@@ -5856,7 +5862,7 @@ var createStyledSelect = (BaseSelect, displayName) => {
|
|
|
5856
5862
|
children
|
|
5857
5863
|
] }) })
|
|
5858
5864
|
}),
|
|
5859
|
-
[icon, isError, CloneIcon]
|
|
5865
|
+
[hideSelectArrow, icon, isError, CloneIcon]
|
|
5860
5866
|
);
|
|
5861
5867
|
return /* @__PURE__ */ jsx(
|
|
5862
5868
|
BaseSelect,
|
|
@@ -8871,7 +8877,9 @@ function Sidebar({
|
|
|
8871
8877
|
children,
|
|
8872
8878
|
defaultState = "expanded",
|
|
8873
8879
|
open,
|
|
8874
|
-
onOpenChange
|
|
8880
|
+
onOpenChange,
|
|
8881
|
+
width = 270,
|
|
8882
|
+
railWidth = 72
|
|
8875
8883
|
}) {
|
|
8876
8884
|
const isMobile = useIsMobile();
|
|
8877
8885
|
const isControlled = open !== void 0;
|
|
@@ -8898,7 +8906,7 @@ function Sidebar({
|
|
|
8898
8906
|
{
|
|
8899
8907
|
open: state !== "collapsed",
|
|
8900
8908
|
onOpenChange: (o) => setState(o ? "expanded" : "collapsed"),
|
|
8901
|
-
children: /* @__PURE__ */ jsx(DrawerContent, { className: "nebula-ds
|
|
8909
|
+
children: /* @__PURE__ */ jsx(DrawerContent, { className: "nebula-ds p-0 shadow-xl", style: { width }, children: /* @__PURE__ */ jsx("div", { className: "nebula-ds flex h-full flex-col bg-sidebar-background", children }) })
|
|
8902
8910
|
}
|
|
8903
8911
|
) });
|
|
8904
8912
|
}
|
|
@@ -8908,10 +8916,11 @@ function Sidebar({
|
|
|
8908
8916
|
"data-state": state,
|
|
8909
8917
|
className: cn(
|
|
8910
8918
|
"relative hidden md:flex flex-col border-r border-sidebar-border bg-sidebar-background transition-all duration-300 ease-in-out",
|
|
8911
|
-
state === "expanded" && "w-[var(--sidebar-width)]",
|
|
8912
|
-
state === "rail" && "w-[var(--sidebar-rail-width)]",
|
|
8913
8919
|
state === "collapsed" && "w-0 overflow-hidden"
|
|
8914
8920
|
),
|
|
8921
|
+
style: {
|
|
8922
|
+
width: state === "expanded" ? width : state === "rail" ? railWidth : 0
|
|
8923
|
+
},
|
|
8915
8924
|
children
|
|
8916
8925
|
}
|
|
8917
8926
|
) });
|
|
@@ -9132,7 +9141,8 @@ function Combobox({
|
|
|
9132
9141
|
controlShouldRenderValue: false,
|
|
9133
9142
|
hideSelectedOptions: false,
|
|
9134
9143
|
className: "nebula-ds w-full",
|
|
9135
|
-
isClearable: false
|
|
9144
|
+
isClearable: false,
|
|
9145
|
+
hideSelectArrow: true
|
|
9136
9146
|
}
|
|
9137
9147
|
),
|
|
9138
9148
|
selectedValues.length > 0 && /* @__PURE__ */ jsxs("div", { className: "nebula-ds flex flex-wrap gap-2", children: [
|
|
@@ -9157,11 +9167,20 @@ function Combobox({
|
|
|
9157
9167
|
{
|
|
9158
9168
|
variant: "secondary",
|
|
9159
9169
|
shadow: "none",
|
|
9160
|
-
className: "nebula-ds w-full flex justify-center items-center",
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9170
|
+
className: "nebula-ds w-full flex justify-center items-center rounded-lg dark:bg-neutral-900",
|
|
9171
|
+
paddingSize: "none",
|
|
9172
|
+
children: /* @__PURE__ */ jsxs(
|
|
9173
|
+
Space,
|
|
9174
|
+
{
|
|
9175
|
+
direction: "column",
|
|
9176
|
+
className: "nebula-ds justify-center items-center p-3 w-full",
|
|
9177
|
+
size: "xs",
|
|
9178
|
+
children: [
|
|
9179
|
+
/* @__PURE__ */ jsx(Heading, { level: "6", className: "nebula-ds text-center", children: emptyStateText || messages23.combobox.noItemsSelected }),
|
|
9180
|
+
/* @__PURE__ */ jsx(Paragraph, { size: "sm", className: "nebula-ds text-center", children: emptyStateDescription || messages23.combobox.selectAnOption })
|
|
9181
|
+
]
|
|
9182
|
+
}
|
|
9183
|
+
)
|
|
9165
9184
|
}
|
|
9166
9185
|
)
|
|
9167
9186
|
] });
|
package/package.json
CHANGED
|
Binary file
|