@max-ts/kit 1.4.1 → 1.5.0
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/lib/components/Calendar/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/PeriodPicker/YearsDropdown/YearsDropdown.d.ts.map +1 -1
- package/lib/components/Select/Select.d.ts +15 -26
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/styles.css.d.ts +0 -1
- package/lib/components/Select/styles.css.d.ts.map +1 -1
- package/lib/components/Select/types.d.ts +23 -0
- package/lib/components/Select/types.d.ts.map +1 -0
- package/lib/index.mjs +75 -37
- package/lib/stories/Select.stories.d.ts +12 -4
- package/lib/stories/Select.stories.d.ts.map +1 -1
- package/lib/styles.css +23 -23
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,wBAAgB,QAAQ,CACvB,KAAK,EAAE;IACN,OAAO,CAAC,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC;CACvC,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,+BA6C7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YearsDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/PeriodPicker/YearsDropdown/YearsDropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"YearsDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/PeriodPicker/YearsDropdown/YearsDropdown.tsx"],"names":[],"mappings":"AAEA,KAAK,kBAAkB,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;CACd,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC7B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,GACP,EAAE,kBAAkB,+BA8BpB"}
|
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export type
|
|
15
|
-
|
|
16
|
-
export type SelectContentProps = SelectPrimitive.Popup.Props & Pick<SelectPositioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'> & {
|
|
17
|
-
position?: 'popper' | 'item-aligned';
|
|
18
|
-
};
|
|
19
|
-
declare const SelectContent: ({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, position, ...props }: SelectContentProps) => import("react").JSX.Element;
|
|
20
|
-
export type SelectLabelProps = SelectPrimitive.GroupLabel.Props;
|
|
21
|
-
declare const SelectLabel: ({ className, ...props }: SelectLabelProps) => import("react").JSX.Element;
|
|
22
|
-
export type SelectItemProps = SelectPrimitive.Item.Props;
|
|
23
|
-
declare const SelectItem: ({ className, children, ...props }: SelectItemProps) => import("react").JSX.Element;
|
|
24
|
-
export type SelectSeparatorProps = SelectPrimitive.Separator.Props;
|
|
25
|
-
declare const SelectSeparator: ({ className, ...props }: SelectSeparatorProps) => import("react").JSX.Element;
|
|
26
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
1
|
+
import type { SelectProps } from './types';
|
|
2
|
+
declare function Select<Value = string, Multiple extends boolean | undefined = false>({ onValueChange, ...props }: SelectProps.Root<Value, Multiple>): import("react").JSX.Element;
|
|
3
|
+
declare namespace Select {
|
|
4
|
+
var Trigger: ({ className, children, size, ...props }: SelectProps.Trigger) => import("react").JSX.Element;
|
|
5
|
+
var Value: ({ ...props }: SelectProps.Value) => import("react").JSX.Element;
|
|
6
|
+
var Content: ({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, position, ...props }: SelectProps.Content) => import("react").JSX.Element;
|
|
7
|
+
var Group: ({ ...props }: SelectProps.Group) => import("react").JSX.Element;
|
|
8
|
+
var Label: ({ className, ...props }: SelectProps.Label) => import("react").JSX.Element;
|
|
9
|
+
var Item: ({ className, children, ...props }: SelectProps.Item) => import("react").JSX.Element;
|
|
10
|
+
var ScrollDownButton: ({ className, ...props }: SelectProps.ScrollDownButton) => import("react").JSX.Element;
|
|
11
|
+
var ScrollUpButton: ({ className, ...props }: SelectProps.ScrollUpButton) => import("react").JSX.Element;
|
|
12
|
+
var Separator: ({ className, ...props }: SelectProps.Separator) => import("react").JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export type { SelectProps };
|
|
15
|
+
export { Select };
|
|
27
16
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,iBAAS,MAAM,CAAC,KAAK,GAAG,MAAM,EAAE,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,EAAE,EAC7E,aAAa,EACb,GAAG,KAAK,EACR,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,+BAYnC;kBAfQ,MAAM;2DA8BZ,WAAW,CAAC,OAAO;8BATO,WAAW,CAAC,KAAK;2HA+D3C,WAAW,CAAC,OAAO;8BAnEO,WAAW,CAAC,KAAK;yCAoGN,WAAW,CAAC,KAAK;kDAUR,WAAW,CAAC,IAAI;oDAjE9D,WAAW,CAAC,gBAAgB;kDAfkB,WAAW,CAAC,cAAc;6CAoG/B,WAAW,CAAC,SAAS;;AAoBjE,YAAY,EAAE,WAAW,EAAE,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.css.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,OAAO,QAwClB,CAAC;AAQH,eAAO,MAAM,YAAY,QAMvB,CAAC;AAEH,eAAO,MAAM,UAAU,QAGrB,CAAC;AAEH,eAAO,MAAM,OAAO,QAgClB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAInB,CAAC;AAEH,eAAO,MAAM,KAAK,QAIhB,CAAC;AAEH,eAAO,MAAM,IAAI,QAsBf,CAAC;AAEH,eAAO,MAAM,oBAAoB,QAQ/B,CAAC;AAEH,eAAO,MAAM,SAAS,QAIpB,CAAC;AAEH,eAAO,MAAM,IAAI,QAGf,CAAC;AAEH,eAAO,MAAM,OAAO,QAIlB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Select as SelectPrimitive } from '@base-ui/react/select';
|
|
2
|
+
export type SelectSize = 'small' | 'medium' | 'large';
|
|
3
|
+
type SelectValue<Value, Multiple extends boolean | undefined> = Multiple extends true ? Value[] : Value;
|
|
4
|
+
export declare namespace SelectProps {
|
|
5
|
+
type Root<Value = string, Multiple extends boolean | undefined = false> = Omit<SelectPrimitive.Root.Props<Value, Multiple>, 'onValueChange'> & {
|
|
6
|
+
onValueChange?: (value: SelectValue<Value, Multiple>, eventDetails: SelectPrimitive.Root.ChangeEventDetails) => void;
|
|
7
|
+
};
|
|
8
|
+
type Trigger = SelectPrimitive.Trigger.Props & {
|
|
9
|
+
size?: SelectSize;
|
|
10
|
+
};
|
|
11
|
+
type ScrollUpButton = SelectPrimitive.ScrollUpArrow.Props;
|
|
12
|
+
type ScrollDownButton = SelectPrimitive.ScrollDownArrow.Props;
|
|
13
|
+
type Content = SelectPrimitive.Popup.Props & Pick<SelectPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'> & {
|
|
14
|
+
position?: 'popper' | 'item-aligned';
|
|
15
|
+
};
|
|
16
|
+
type Group = SelectPrimitive.Group.Props;
|
|
17
|
+
type Value = SelectPrimitive.Value.Props;
|
|
18
|
+
type Label = SelectPrimitive.GroupLabel.Props;
|
|
19
|
+
type Item = SelectPrimitive.Item.Props;
|
|
20
|
+
type Separator = SelectPrimitive.Separator.Props;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEvE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD,KAAK,WAAW,CACf,KAAK,EACL,QAAQ,SAAS,OAAO,GAAG,SAAS,IACjC,QAAQ,SAAS,IAAI,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;AAE5C,yBAAiB,WAAW,CAAC;IAC5B,KAAY,IAAI,CACf,KAAK,GAAG,MAAM,EACd,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,KAAK,IACzC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,eAAe,CAAC,GAAG;QACxE,aAAa,CAAC,EAAE,CACf,KAAK,EAAE,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,EACnC,YAAY,EAAE,eAAe,CAAC,IAAI,CAAC,kBAAkB,KACjD,IAAI,CAAC;KACV,CAAC;IAEF,KAAY,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,KAAK,GAAG;QACrD,IAAI,CAAC,EAAE,UAAU,CAAC;KAClB,CAAC;IAEF,KAAY,cAAc,GAAG,eAAe,CAAC,aAAa,CAAC,KAAK,CAAC;IAEjE,KAAY,gBAAgB,GAAG,eAAe,CAAC,eAAe,CAAC,KAAK,CAAC;IAErE,KAAY,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,KAAK,GAChD,IAAI,CACH,eAAe,CAAC,UAAU,CAAC,KAAK,EAChC,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,sBAAsB,CACxE,GAAG;QACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAC;KACrC,CAAC;IAEH,KAAY,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC;IAEhD,KAAY,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC;IAEhD,KAAY,KAAK,GAAG,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC;IAErD,KAAY,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC;IAE9C,KAAY,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC;CACxD"}
|
package/lib/index.mjs
CHANGED
|
@@ -1025,14 +1025,14 @@ function Dropdown(props) {
|
|
|
1025
1025
|
onValueChange: handleChange,
|
|
1026
1026
|
items: items,
|
|
1027
1027
|
children: [
|
|
1028
|
-
/*#__PURE__*/ jsx(
|
|
1028
|
+
/*#__PURE__*/ jsx(Select_Select.Trigger, {
|
|
1029
1029
|
className: Dropdown_styles_css_trigger,
|
|
1030
|
-
children: /*#__PURE__*/ jsx(
|
|
1030
|
+
children: /*#__PURE__*/ jsx(Select_Select.Value, {
|
|
1031
1031
|
placeholder: selectedOption?.label
|
|
1032
1032
|
})
|
|
1033
1033
|
}),
|
|
1034
|
-
/*#__PURE__*/ jsx(
|
|
1035
|
-
children: options?.map(({ value, label, disabled })=>/*#__PURE__*/ jsx(
|
|
1034
|
+
/*#__PURE__*/ jsx(Select_Select.Content, {
|
|
1035
|
+
children: options?.map(({ value, label, disabled })=>/*#__PURE__*/ jsx(Select_Select.Item, {
|
|
1036
1036
|
value: value.toString(),
|
|
1037
1037
|
disabled: disabled,
|
|
1038
1038
|
children: /*#__PURE__*/ jsx(Typography, {
|
|
@@ -3917,13 +3917,13 @@ function YearsDropdown({ year, onSelect, minDate, maxDate }) {
|
|
|
3917
3917
|
onValueChange: onChange,
|
|
3918
3918
|
value: year.toString(),
|
|
3919
3919
|
children: [
|
|
3920
|
-
/*#__PURE__*/ jsx(
|
|
3921
|
-
children: /*#__PURE__*/ jsx(
|
|
3920
|
+
/*#__PURE__*/ jsx(Select_Select.Trigger, {
|
|
3921
|
+
children: /*#__PURE__*/ jsx(Select_Select.Value, {
|
|
3922
3922
|
placeholder: year.toString()
|
|
3923
3923
|
})
|
|
3924
3924
|
}),
|
|
3925
|
-
/*#__PURE__*/ jsx(
|
|
3926
|
-
children: years.map((value)=>/*#__PURE__*/ jsx(
|
|
3925
|
+
/*#__PURE__*/ jsx(Select_Select.Content, {
|
|
3926
|
+
children: years.map((value)=>/*#__PURE__*/ jsx(Select_Select.Item, {
|
|
3927
3927
|
value: value.toString(),
|
|
3928
3928
|
children: /*#__PURE__*/ jsx(Typography, {
|
|
3929
3929
|
align: "center",
|
|
@@ -4274,44 +4274,57 @@ function ScrollTopButton({ onClick, variant = 'outline', ...props }) {
|
|
|
4274
4274
|
children: /*#__PURE__*/ jsx(ChevronUp, {})
|
|
4275
4275
|
});
|
|
4276
4276
|
}
|
|
4277
|
-
var chevron = '
|
|
4278
|
-
var Select_styles_css_content = '
|
|
4279
|
-
var Select_styles_css_icon = '
|
|
4280
|
-
var Select_styles_css_item = '
|
|
4281
|
-
var itemIndicatorWrapper = '
|
|
4282
|
-
var Select_styles_css_label = '
|
|
4283
|
-
var Select_styles_css_positioner = '
|
|
4284
|
-
var scrollButton = '
|
|
4285
|
-
var Select_styles_css_separator = '
|
|
4286
|
-
var Select_styles_css_sizes = {
|
|
4287
|
-
small: 'small__5ilg7o3',
|
|
4288
|
-
medium: 'medium__5ilg7o4',
|
|
4289
|
-
large: 'large__5ilg7o5'
|
|
4290
|
-
};
|
|
4277
|
+
var chevron = 'style__5ilg7oc';
|
|
4278
|
+
var Select_styles_css_content = 'style__5ilg7o5';
|
|
4279
|
+
var Select_styles_css_icon = 'style__5ilg7ob';
|
|
4280
|
+
var Select_styles_css_item = 'style__5ilg7o8';
|
|
4281
|
+
var itemIndicatorWrapper = 'style__5ilg7o9';
|
|
4282
|
+
var Select_styles_css_label = 'style__5ilg7o7';
|
|
4283
|
+
var Select_styles_css_positioner = 'style__5ilg7o4';
|
|
4284
|
+
var scrollButton = 'style__5ilg7o3';
|
|
4285
|
+
var Select_styles_css_separator = 'style__5ilg7oa';
|
|
4291
4286
|
var Select_styles_css_trigger = 'style__5ilg7o2';
|
|
4292
|
-
var Select_styles_css_viewport = '
|
|
4293
|
-
|
|
4287
|
+
var Select_styles_css_viewport = 'style__5ilg7o6';
|
|
4288
|
+
function Select_Select({ onValueChange, ...props }) {
|
|
4289
|
+
return /*#__PURE__*/ jsx(Select.Root, {
|
|
4290
|
+
"data-slot": "select",
|
|
4294
4291
|
...props,
|
|
4295
4292
|
onValueChange: (value, eventDetails)=>{
|
|
4296
4293
|
if (null !== value) onValueChange?.(value, eventDetails);
|
|
4297
4294
|
}
|
|
4298
4295
|
});
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4296
|
+
}
|
|
4297
|
+
function Select_Group({ ...props }) {
|
|
4298
|
+
return /*#__PURE__*/ jsx(Select.Group, {
|
|
4299
|
+
"data-slot": "select-group",
|
|
4300
|
+
...props
|
|
4301
|
+
});
|
|
4302
|
+
}
|
|
4303
|
+
function Select_Value({ ...props }) {
|
|
4304
|
+
return /*#__PURE__*/ jsx(Select.Value, {
|
|
4305
|
+
"data-slot": "select-value",
|
|
4306
|
+
...props
|
|
4307
|
+
});
|
|
4308
|
+
}
|
|
4309
|
+
function Select_Trigger({ className, children, size = 'medium', ...props }) {
|
|
4310
|
+
return /*#__PURE__*/ jsxs(Select.Trigger, {
|
|
4302
4311
|
"data-slot": "select-trigger",
|
|
4303
|
-
|
|
4312
|
+
"data-size": size,
|
|
4313
|
+
className: clsx(Select_styles_css_trigger, className),
|
|
4304
4314
|
...props,
|
|
4305
4315
|
children: [
|
|
4306
4316
|
children,
|
|
4307
4317
|
/*#__PURE__*/ jsx(Select.Icon, {
|
|
4318
|
+
"data-slot": "select-icon",
|
|
4308
4319
|
render: /*#__PURE__*/ jsx(ChevronDown, {
|
|
4309
4320
|
className: chevron
|
|
4310
4321
|
})
|
|
4311
4322
|
})
|
|
4312
4323
|
]
|
|
4313
4324
|
});
|
|
4314
|
-
|
|
4325
|
+
}
|
|
4326
|
+
function ScrollUpButton({ className, ...props }) {
|
|
4327
|
+
return /*#__PURE__*/ jsx(Select.ScrollUpArrow, {
|
|
4315
4328
|
"data-slot": "select-scroll-up-button",
|
|
4316
4329
|
className: clsx(scrollButton, className),
|
|
4317
4330
|
...props,
|
|
@@ -4319,7 +4332,9 @@ const SelectScrollUpButton = ({ className, ...props })=>/*#__PURE__*/ jsx(Select
|
|
|
4319
4332
|
className: Select_styles_css_icon
|
|
4320
4333
|
})
|
|
4321
4334
|
});
|
|
4322
|
-
|
|
4335
|
+
}
|
|
4336
|
+
function ScrollDownButton({ className, ...props }) {
|
|
4337
|
+
return /*#__PURE__*/ jsx(Select.ScrollDownArrow, {
|
|
4323
4338
|
"data-slot": "select-scroll-down-button",
|
|
4324
4339
|
className: clsx(scrollButton, className),
|
|
4325
4340
|
...props,
|
|
@@ -4327,8 +4342,12 @@ const SelectScrollDownButton = ({ className, ...props })=>/*#__PURE__*/ jsx(Sele
|
|
|
4327
4342
|
className: Select_styles_css_icon
|
|
4328
4343
|
})
|
|
4329
4344
|
});
|
|
4330
|
-
|
|
4345
|
+
}
|
|
4346
|
+
function Select_Content({ className, children, side = 'bottom', sideOffset = 4, align = 'center', alignOffset = 0, alignItemWithTrigger, position = 'popper', ...props }) {
|
|
4347
|
+
return /*#__PURE__*/ jsx(Select.Portal, {
|
|
4348
|
+
"data-slot": "select-portal",
|
|
4331
4349
|
children: /*#__PURE__*/ jsx(Select.Positioner, {
|
|
4350
|
+
"data-slot": "select-positioner",
|
|
4332
4351
|
side: side,
|
|
4333
4352
|
sideOffset: sideOffset,
|
|
4334
4353
|
align: align,
|
|
@@ -4340,42 +4359,61 @@ const SelectContent = ({ className, children, side = 'bottom', sideOffset = 4, a
|
|
|
4340
4359
|
className: clsx(Select_styles_css_content, className),
|
|
4341
4360
|
...props,
|
|
4342
4361
|
children: [
|
|
4343
|
-
/*#__PURE__*/ jsx(
|
|
4362
|
+
/*#__PURE__*/ jsx(ScrollUpButton, {}),
|
|
4344
4363
|
/*#__PURE__*/ jsx(Select.List, {
|
|
4364
|
+
"data-slot": "select-list",
|
|
4345
4365
|
className: Select_styles_css_viewport,
|
|
4346
4366
|
children: children
|
|
4347
4367
|
}),
|
|
4348
|
-
/*#__PURE__*/ jsx(
|
|
4368
|
+
/*#__PURE__*/ jsx(ScrollDownButton, {})
|
|
4349
4369
|
]
|
|
4350
4370
|
})
|
|
4351
4371
|
})
|
|
4352
4372
|
});
|
|
4353
|
-
|
|
4373
|
+
}
|
|
4374
|
+
function Select_Label({ className, ...props }) {
|
|
4375
|
+
return /*#__PURE__*/ jsx(Select.GroupLabel, {
|
|
4354
4376
|
"data-slot": "select-label",
|
|
4355
4377
|
className: clsx(Select_styles_css_label, className),
|
|
4356
4378
|
...props
|
|
4357
4379
|
});
|
|
4358
|
-
|
|
4380
|
+
}
|
|
4381
|
+
function Select_Item({ className, children, ...props }) {
|
|
4382
|
+
return /*#__PURE__*/ jsxs(Select.Item, {
|
|
4359
4383
|
"data-slot": "select-item",
|
|
4360
4384
|
className: clsx(Select_styles_css_item, className),
|
|
4361
4385
|
...props,
|
|
4362
4386
|
children: [
|
|
4363
4387
|
/*#__PURE__*/ jsx(Select.ItemIndicator, {
|
|
4388
|
+
"data-slot": "select-item-indicator",
|
|
4364
4389
|
className: itemIndicatorWrapper,
|
|
4365
4390
|
children: /*#__PURE__*/ jsx(Check, {
|
|
4366
4391
|
className: Select_styles_css_icon
|
|
4367
4392
|
})
|
|
4368
4393
|
}),
|
|
4369
4394
|
/*#__PURE__*/ jsx(Select.ItemText, {
|
|
4395
|
+
"data-slot": "select-item-text",
|
|
4370
4396
|
children: children
|
|
4371
4397
|
})
|
|
4372
4398
|
]
|
|
4373
4399
|
});
|
|
4374
|
-
|
|
4400
|
+
}
|
|
4401
|
+
function Select_Separator({ className, ...props }) {
|
|
4402
|
+
return /*#__PURE__*/ jsx(Select.Separator, {
|
|
4375
4403
|
"data-slot": "select-separator",
|
|
4376
4404
|
className: clsx(Select_styles_css_separator, className),
|
|
4377
4405
|
...props
|
|
4378
4406
|
});
|
|
4407
|
+
}
|
|
4408
|
+
Select_Select.Trigger = Select_Trigger;
|
|
4409
|
+
Select_Select.Value = Select_Value;
|
|
4410
|
+
Select_Select.Content = Select_Content;
|
|
4411
|
+
Select_Select.Group = Select_Group;
|
|
4412
|
+
Select_Select.Label = Select_Label;
|
|
4413
|
+
Select_Select.Item = Select_Item;
|
|
4414
|
+
Select_Select.ScrollDownButton = ScrollDownButton;
|
|
4415
|
+
Select_Select.ScrollUpButton = ScrollUpButton;
|
|
4416
|
+
Select_Select.Separator = Select_Separator;
|
|
4379
4417
|
var Sheet_styles_css_closeButton = 'style__5dkj2fc';
|
|
4380
4418
|
var styles_css_closeText = 'style__5dkj2fd';
|
|
4381
4419
|
var Sheet_styles_css_content = 'style__5dkj2fb';
|
|
@@ -5023,4 +5061,4 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
|
|
|
5023
5061
|
]
|
|
5024
5062
|
});
|
|
5025
5063
|
};
|
|
5026
|
-
export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Autocomplete, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, Combobox_Combobox as Combobox, ConfirmAction, ContentState, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty_Empty as Empty, ImageCarousel, Image_Image as Image, InputGroup, InputOTP, Input_Input as Input, Label, MaskField, NOTIFICATION_POSITIONS, NOTIFY_CLASSNAME, Notification, NotificationContainer, OverflowTypography, PageLayout, Pagination, PeriodPicker, Placeholder, Popover_Popover as Popover, RadioGroupItem, RadioGroup_RadioGroup as RadioGroup, RangeInput, ScrollTopButton,
|
|
5064
|
+
export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Autocomplete, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, Combobox_Combobox as Combobox, ConfirmAction, ContentState, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty_Empty as Empty, ImageCarousel, Image_Image as Image, InputGroup, InputOTP, Input_Input as Input, Label, MaskField, NOTIFICATION_POSITIONS, NOTIFY_CLASSNAME, Notification, NotificationContainer, OverflowTypography, PageLayout, Pagination, PeriodPicker, Placeholder, Popover_Popover as Popover, RadioGroupItem, RadioGroup_RadioGroup as RadioGroup, RangeInput, ScrollTopButton, Select_Select as Select, Sheet, Sidebar_Sidebar as Sidebar, Slider_Slider as Slider, Tabs_Tabs as Tabs, TextField, Textarea_Textarea as Textarea, ToggleGroup, Tooltip_Tooltip as Tooltip, Typography, alignments, badgeVariants, calculateSize, constants_NotificationVariantTypes as NotificationVariantTypes, createHandle, displays, negativeSpacing, notification, spacing, styles_css_colors as colors, styles_css_variants as variants, theme, transforms, useComboboxAnchor, useDashboard, useIsMobile, useOverflowed, useSidebar, weights };
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import type { Meta } from 'storybook-react-rsbuild';
|
|
2
1
|
import { Select } from '../components/index.ts';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: typeof Select;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
};
|
|
4
10
|
export default _default;
|
|
5
|
-
export declare function
|
|
11
|
+
export declare function Demo(): import("react").JSX.Element;
|
|
6
12
|
export declare function Sizes(): import("react").JSX.Element;
|
|
7
|
-
export declare function
|
|
13
|
+
export declare function Multiple(): import("react").JSX.Element;
|
|
14
|
+
export declare function MultipleControlled(): import("react").JSX.Element;
|
|
15
|
+
export declare function Scrollable(): import("react").JSX.Element;
|
|
8
16
|
//# sourceMappingURL=Select.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Select.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Select.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;;;;;;;;;AAsBtC,wBAOgC;AAehC,wBAAgB,IAAI,gCAWnB;AAED,wBAAgB,KAAK,gCAepB;AAED,wBAAgB,QAAQ,gCAiBvB;AAED,wBAAgB,kBAAkB,gCA4BjC;AAED,wBAAgB,UAAU,gCAgEzB"}
|
package/lib/styles.css
CHANGED
|
@@ -4267,20 +4267,20 @@ a.outline__1af895x4:hover {
|
|
|
4267
4267
|
opacity: .5;
|
|
4268
4268
|
}
|
|
4269
4269
|
|
|
4270
|
-
.
|
|
4271
|
-
height:
|
|
4270
|
+
.style__5ilg7o2[data-size="small"] {
|
|
4271
|
+
height: calc(var(--spacing-6) + var(--spacing-1));
|
|
4272
4272
|
font-size: var(--fontSize-sm);
|
|
4273
4273
|
padding: var(--spacing-1) var(--spacing-2);
|
|
4274
4274
|
}
|
|
4275
4275
|
|
|
4276
|
-
.
|
|
4276
|
+
.style__5ilg7o2[data-size="medium"] {
|
|
4277
4277
|
height: var(--spacing-8);
|
|
4278
4278
|
font-size: var(--fontSize-base);
|
|
4279
4279
|
padding: var(--spacing-2) var(--spacing-2);
|
|
4280
4280
|
}
|
|
4281
4281
|
|
|
4282
|
-
.
|
|
4283
|
-
height:
|
|
4282
|
+
.style__5ilg7o2[data-size="large"] {
|
|
4283
|
+
height: calc(var(--spacing-8) + var(--spacing-1));
|
|
4284
4284
|
font-size: var(--fontSize-base);
|
|
4285
4285
|
padding: var(--spacing-2) var(--spacing-2);
|
|
4286
4286
|
}
|
|
@@ -4291,7 +4291,7 @@ a.outline__1af895x4:hover {
|
|
|
4291
4291
|
overflow: hidden;
|
|
4292
4292
|
}
|
|
4293
4293
|
|
|
4294
|
-
.
|
|
4294
|
+
.style__5ilg7o3 {
|
|
4295
4295
|
cursor: default;
|
|
4296
4296
|
padding: var(--spacing-1) 0;
|
|
4297
4297
|
justify-content: center;
|
|
@@ -4299,12 +4299,12 @@ a.outline__1af895x4:hover {
|
|
|
4299
4299
|
display: flex;
|
|
4300
4300
|
}
|
|
4301
4301
|
|
|
4302
|
-
.
|
|
4302
|
+
.style__5ilg7o4 {
|
|
4303
4303
|
isolation: isolate;
|
|
4304
4304
|
z-index: 5000;
|
|
4305
4305
|
}
|
|
4306
4306
|
|
|
4307
|
-
.
|
|
4307
|
+
.style__5ilg7o5 {
|
|
4308
4308
|
z-index: 5000;
|
|
4309
4309
|
max-height: var(--available-height, 24rem);
|
|
4310
4310
|
border-radius: var(--borderRadius-md);
|
|
@@ -4317,43 +4317,43 @@ a.outline__1af895x4:hover {
|
|
|
4317
4317
|
box-shadow: 0 2px 4px #0000001a;
|
|
4318
4318
|
}
|
|
4319
4319
|
|
|
4320
|
-
.
|
|
4320
|
+
.style__5ilg7o5[data-open] {
|
|
4321
4321
|
animation: .15s ease-out style__5ilg7o0;
|
|
4322
4322
|
}
|
|
4323
4323
|
|
|
4324
|
-
.
|
|
4324
|
+
.style__5ilg7o5[data-closed] {
|
|
4325
4325
|
animation: .15s ease-in style__5ilg7o1;
|
|
4326
4326
|
}
|
|
4327
4327
|
|
|
4328
|
-
.
|
|
4328
|
+
.style__5ilg7o5[data-side="bottom"] {
|
|
4329
4329
|
transform: translateY(4px);
|
|
4330
4330
|
}
|
|
4331
4331
|
|
|
4332
|
-
.
|
|
4332
|
+
.style__5ilg7o5[data-side="top"] {
|
|
4333
4333
|
transform: translateY(-4px);
|
|
4334
4334
|
}
|
|
4335
4335
|
|
|
4336
|
-
.
|
|
4336
|
+
.style__5ilg7o5[data-side="left"] {
|
|
4337
4337
|
transform: translateX(-4px);
|
|
4338
4338
|
}
|
|
4339
4339
|
|
|
4340
|
-
.
|
|
4340
|
+
.style__5ilg7o5[data-side="right"] {
|
|
4341
4341
|
transform: translateX(4px);
|
|
4342
4342
|
}
|
|
4343
4343
|
|
|
4344
|
-
.
|
|
4344
|
+
.style__5ilg7o6 {
|
|
4345
4345
|
padding: var(--spacing-1);
|
|
4346
4346
|
width: 100%;
|
|
4347
4347
|
min-width: var(--anchor-width, 100%);
|
|
4348
4348
|
}
|
|
4349
4349
|
|
|
4350
|
-
.
|
|
4350
|
+
.style__5ilg7o7 {
|
|
4351
4351
|
padding: var(--spacing-1) var(--spacing-2) var(--spacing-1) var(--spacing-8);
|
|
4352
4352
|
font-size: var(--fontSize-sm);
|
|
4353
4353
|
font-weight: var(--fontWeight-semibold);
|
|
4354
4354
|
}
|
|
4355
4355
|
|
|
4356
|
-
.
|
|
4356
|
+
.style__5ilg7o8 {
|
|
4357
4357
|
cursor: default;
|
|
4358
4358
|
-webkit-user-select: none;
|
|
4359
4359
|
user-select: none;
|
|
@@ -4367,17 +4367,17 @@ a.outline__1af895x4:hover {
|
|
|
4367
4367
|
position: relative;
|
|
4368
4368
|
}
|
|
4369
4369
|
|
|
4370
|
-
.
|
|
4370
|
+
.style__5ilg7o8[data-highlighted] {
|
|
4371
4371
|
background-color: var(--colors-background-elementHover);
|
|
4372
4372
|
color: var(--colors-text-primary);
|
|
4373
4373
|
}
|
|
4374
4374
|
|
|
4375
|
-
.
|
|
4375
|
+
.style__5ilg7o8[data-disabled] {
|
|
4376
4376
|
pointer-events: none;
|
|
4377
4377
|
opacity: .5;
|
|
4378
4378
|
}
|
|
4379
4379
|
|
|
4380
|
-
.
|
|
4380
|
+
.style__5ilg7o9 {
|
|
4381
4381
|
left: var(--spacing-2);
|
|
4382
4382
|
justify-content: center;
|
|
4383
4383
|
align-items: center;
|
|
@@ -4387,18 +4387,18 @@ a.outline__1af895x4:hover {
|
|
|
4387
4387
|
position: absolute;
|
|
4388
4388
|
}
|
|
4389
4389
|
|
|
4390
|
-
.
|
|
4390
|
+
.style__5ilg7oa {
|
|
4391
4391
|
margin: var(--spacing-1) calc(-1 * var(--spacing-1));
|
|
4392
4392
|
background-color: var(--colors-background-element);
|
|
4393
4393
|
height: 1px;
|
|
4394
4394
|
}
|
|
4395
4395
|
|
|
4396
|
-
.
|
|
4396
|
+
.style__5ilg7ob {
|
|
4397
4397
|
width: 1rem;
|
|
4398
4398
|
height: 1rem;
|
|
4399
4399
|
}
|
|
4400
4400
|
|
|
4401
|
-
.
|
|
4401
|
+
.style__5ilg7oc {
|
|
4402
4402
|
opacity: .5;
|
|
4403
4403
|
width: 1rem;
|
|
4404
4404
|
height: 1rem;
|