@liner-fe/prism 1.12.17 → 1.12.19
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/Select/index.d.ts +23 -0
- package/lib/components/Slider/index.d.ts +15 -0
- package/lib/components/_Label/index.d.ts +1 -0
- package/lib/hooks/media.d.ts +1 -0
- package/lib/index.css +401 -28
- package/lib/index.css.map +3 -3
- package/lib/index.d.ts +2 -0
- package/lib/index.mjs +260 -35
- package/lib/index.mjs.map +4 -4
- package/package.json +4 -2
package/lib/index.mjs
CHANGED
|
@@ -7385,24 +7385,26 @@ import clsx11 from "clsx";
|
|
|
7385
7385
|
|
|
7386
7386
|
// src/components/_Label/style.module.scss
|
|
7387
7387
|
var style_module_default9 = {
|
|
7388
|
-
"label": "
|
|
7389
|
-
"
|
|
7390
|
-
"
|
|
7391
|
-
"
|
|
7392
|
-
"
|
|
7393
|
-
"
|
|
7394
|
-
"
|
|
7395
|
-
"offset-
|
|
7396
|
-
"offset-
|
|
7397
|
-
"
|
|
7398
|
-
"
|
|
7399
|
-
"
|
|
7400
|
-
"
|
|
7388
|
+
"label-wrapper": "_label-wrapper_ayib1_1",
|
|
7389
|
+
"label": "_label_ayib1_1",
|
|
7390
|
+
"error": "_error_ayib1_21",
|
|
7391
|
+
"primary": "_primary_ayib1_25",
|
|
7392
|
+
"secondary": "_secondary_ayib1_36",
|
|
7393
|
+
"top": "_top_ayib1_47",
|
|
7394
|
+
"l": "_l_ayib1_1",
|
|
7395
|
+
"offset-high": "_offset-high_ayib1_50",
|
|
7396
|
+
"offset-medium": "_offset-medium_ayib1_53",
|
|
7397
|
+
"offset-low": "_offset-low_ayib1_56",
|
|
7398
|
+
"m": "_m_ayib1_59",
|
|
7399
|
+
"s": "_s_ayib1_36",
|
|
7400
|
+
"right": "_right_ayib1_78",
|
|
7401
|
+
"disabled": "_disabled_ayib1_100",
|
|
7402
|
+
"label-chip": "_label-chip_ayib1_105"
|
|
7401
7403
|
};
|
|
7402
7404
|
|
|
7403
7405
|
// src/components/_Label/index.tsx
|
|
7404
7406
|
import { cva as cva7 } from "class-variance-authority";
|
|
7405
|
-
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
7407
|
+
import { jsx as jsx147, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
7406
7408
|
var defaultLabelVariants = cva7(["lp-sys-typo-paragraph2-normal-medium", style_module_default9.label], {
|
|
7407
7409
|
variants: {
|
|
7408
7410
|
level: {
|
|
@@ -7440,25 +7442,29 @@ var Label = forwardRef5(
|
|
|
7440
7442
|
offset = "medium",
|
|
7441
7443
|
disabled = false,
|
|
7442
7444
|
error = false,
|
|
7445
|
+
chip,
|
|
7443
7446
|
...props
|
|
7444
7447
|
}, ref) => {
|
|
7445
|
-
return /* @__PURE__ */
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7448
|
+
return /* @__PURE__ */ jsxs102("div", { className: style_module_default9["label-wrapper"], children: [
|
|
7449
|
+
/* @__PURE__ */ jsx147(
|
|
7450
|
+
LabelPrimitive.Root,
|
|
7451
|
+
{
|
|
7452
|
+
ref,
|
|
7453
|
+
className: clsx11(defaultLabelVariants({ level, position, size, offset, disabled, error }), className),
|
|
7454
|
+
...props
|
|
7455
|
+
}
|
|
7456
|
+
),
|
|
7457
|
+
chip && /* @__PURE__ */ jsx147(Caption, { size: 2, type: "normal", weight: "medium", className: style_module_default9["label-chip"], children: chip })
|
|
7458
|
+
] });
|
|
7453
7459
|
}
|
|
7454
7460
|
);
|
|
7455
7461
|
|
|
7456
7462
|
// src/components/CheckBox/index.tsx
|
|
7457
|
-
import { Fragment as Fragment3, jsx as jsx148, jsxs as
|
|
7463
|
+
import { Fragment as Fragment3, jsx as jsx148, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
7458
7464
|
var Checkbox = forwardRef6(
|
|
7459
7465
|
({ className, label, description, ...props }, ref) => {
|
|
7460
|
-
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */
|
|
7461
|
-
/* @__PURE__ */
|
|
7466
|
+
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs103(Label, { position: "right", htmlFor: props.id, children: [
|
|
7467
|
+
/* @__PURE__ */ jsxs103("div", { className: style_module_default8["label-wrapper"], children: [
|
|
7462
7468
|
label,
|
|
7463
7469
|
/* @__PURE__ */ jsx148(Paragraph, { className: style_module_default8.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
7464
7470
|
] }),
|
|
@@ -7483,13 +7489,13 @@ var style_module_default10 = {
|
|
|
7483
7489
|
};
|
|
7484
7490
|
|
|
7485
7491
|
// src/components/Radio/index.tsx
|
|
7486
|
-
import { Fragment as Fragment4, jsx as jsx149, jsxs as
|
|
7492
|
+
import { Fragment as Fragment4, jsx as jsx149, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
7487
7493
|
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx149("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ jsx149("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
|
|
7488
7494
|
var RadioRoot = forwardRef7(({ className, ...props }, ref) => /* @__PURE__ */ jsx149(RadioGroupPrimitive.Root, { className: clsx13(style_module_default10.radio, className), ...props }));
|
|
7489
7495
|
var RadioItem = forwardRef7(
|
|
7490
7496
|
({ className, label, description, ...props }, ref) => {
|
|
7491
|
-
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */
|
|
7492
|
-
/* @__PURE__ */
|
|
7497
|
+
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs104(Label, { position: "right", htmlFor: props.id, children: [
|
|
7498
|
+
/* @__PURE__ */ jsxs104("div", { className: style_module_default10["label-wrapper"], children: [
|
|
7493
7499
|
label,
|
|
7494
7500
|
/* @__PURE__ */ jsx149(Paragraph, { className: style_module_default10.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
7495
7501
|
] }),
|
|
@@ -7536,7 +7542,7 @@ var style_module_default11 = {
|
|
|
7536
7542
|
// src/components/Textfield/index.tsx
|
|
7537
7543
|
import { cva as cva8 } from "class-variance-authority";
|
|
7538
7544
|
import clsx14 from "clsx";
|
|
7539
|
-
import { Fragment as Fragment5, jsx as jsx150, jsxs as
|
|
7545
|
+
import { Fragment as Fragment5, jsx as jsx150, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
7540
7546
|
var defaultTextfieldVariants = cva8(style_module_default11.textfield, {
|
|
7541
7547
|
variants: {
|
|
7542
7548
|
color: {
|
|
@@ -7595,7 +7601,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7595
7601
|
}
|
|
7596
7602
|
}, "handleDeidentify");
|
|
7597
7603
|
useImperativeHandle(ref, () => inputRef.current);
|
|
7598
|
-
return /* @__PURE__ */
|
|
7604
|
+
return /* @__PURE__ */ jsxs105("div", { className: style_module_default11["textfield-container"], children: [
|
|
7599
7605
|
/* @__PURE__ */ jsx150(
|
|
7600
7606
|
"div",
|
|
7601
7607
|
{
|
|
@@ -7604,7 +7610,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7604
7610
|
[style_module_default11["label-out-textfield"]]: labelType === "out"
|
|
7605
7611
|
}),
|
|
7606
7612
|
onClick: handleTextfieldClick,
|
|
7607
|
-
children: /* @__PURE__ */
|
|
7613
|
+
children: /* @__PURE__ */ jsxs105("div", { className: style_module_default11["input-wrapper"], children: [
|
|
7608
7614
|
/* @__PURE__ */ jsx150(
|
|
7609
7615
|
"input",
|
|
7610
7616
|
{
|
|
@@ -7632,7 +7638,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7632
7638
|
children: labelText
|
|
7633
7639
|
}
|
|
7634
7640
|
),
|
|
7635
|
-
/* @__PURE__ */
|
|
7641
|
+
/* @__PURE__ */ jsxs105("div", { className: style_module_default11["input-action-buttons"], children: [
|
|
7636
7642
|
textfieldValue && !disabled && /* @__PURE__ */ jsx150(
|
|
7637
7643
|
IconButton,
|
|
7638
7644
|
{
|
|
@@ -7664,12 +7670,12 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7664
7670
|
] })
|
|
7665
7671
|
}
|
|
7666
7672
|
),
|
|
7667
|
-
displayFooter && /* @__PURE__ */
|
|
7668
|
-
/* @__PURE__ */ jsx150("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */
|
|
7673
|
+
displayFooter && /* @__PURE__ */ jsxs105("div", { className: style_module_default11.footer, children: [
|
|
7674
|
+
/* @__PURE__ */ jsx150("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */ jsxs105(Fragment5, { children: [
|
|
7669
7675
|
/* @__PURE__ */ jsx150(Icon, { name: "exclamationmark-fill", fill: true, thick: true, size: "xs", type: "function-label-negative" }),
|
|
7670
7676
|
/* @__PURE__ */ jsx150(Caption, { size: 3, type: "normal", weight: "regular", className: style_module_default11["error-message"], children: error })
|
|
7671
7677
|
] }) }),
|
|
7672
|
-
maxCharacter && /* @__PURE__ */
|
|
7678
|
+
maxCharacter && /* @__PURE__ */ jsxs105(Caption, { className: style_module_default11.character, size: 3, type: "normal", weight: "regular", children: [
|
|
7673
7679
|
isControlled ? controlledValue.length : value.length,
|
|
7674
7680
|
"/",
|
|
7675
7681
|
maxCharacter
|
|
@@ -7677,6 +7683,223 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7677
7683
|
] })
|
|
7678
7684
|
] });
|
|
7679
7685
|
});
|
|
7686
|
+
|
|
7687
|
+
// src/components/Slider/index.tsx
|
|
7688
|
+
import { forwardRef as forwardRef9 } from "react";
|
|
7689
|
+
|
|
7690
|
+
// src/components/Slider/style.module.scss
|
|
7691
|
+
var style_module_default12 = {
|
|
7692
|
+
"label": "_label_b1fp2_1",
|
|
7693
|
+
"optionText": "_optionText_b1fp2_6",
|
|
7694
|
+
"slider-wrapper": "_slider-wrapper_b1fp2_10",
|
|
7695
|
+
"slider-option-wrapper": "_slider-option-wrapper_b1fp2_16",
|
|
7696
|
+
"slider-root": "_slider-root_b1fp2_22",
|
|
7697
|
+
"slider-track": "_slider-track_b1fp2_33",
|
|
7698
|
+
"slider-range": "_slider-range_b1fp2_46",
|
|
7699
|
+
"slider-thumb": "_slider-thumb_b1fp2_53",
|
|
7700
|
+
"slider-step": "_slider-step_b1fp2_71"
|
|
7701
|
+
};
|
|
7702
|
+
|
|
7703
|
+
// src/components/Slider/index.tsx
|
|
7704
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
7705
|
+
import { Fragment as Fragment6, jsx as jsx151, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
7706
|
+
var SliderRoot = forwardRef9((props, ref) => {
|
|
7707
|
+
const { label, tooltip, rangeLeft, rangeRight, min, max, step = 50, ...rest } = props;
|
|
7708
|
+
return /* @__PURE__ */ jsx151(Fragment6, { children: /* @__PURE__ */ jsxs106(Tooltip.Provider, { children: [
|
|
7709
|
+
/* @__PURE__ */ jsx151(Label, { level: "secondary", size: "m", offset: "high", className: style_module_default12.label, children: label }),
|
|
7710
|
+
/* @__PURE__ */ jsxs106("div", { className: style_module_default12["slider-wrapper"], children: [
|
|
7711
|
+
/* @__PURE__ */ jsxs106("div", { className: style_module_default12["slider-option-wrapper"], children: [
|
|
7712
|
+
/* @__PURE__ */ jsx151(Icon, { name: rangeLeft.icon, size: "xs" }),
|
|
7713
|
+
/* @__PURE__ */ jsx151(Caption, { size: 1, type: "normal", weight: "medium", className: style_module_default12.optionText, children: rangeLeft.text })
|
|
7714
|
+
] }),
|
|
7715
|
+
/* @__PURE__ */ jsxs106(SliderPrimitive.Root, { ...rest, step, className: style_module_default12["slider-root"], ref, children: [
|
|
7716
|
+
/* @__PURE__ */ jsxs106(SliderPrimitive.Track, { className: style_module_default12["slider-track"], children: [
|
|
7717
|
+
Array.from({ length: 100 / step + 1 }).map((_, index) => /* @__PURE__ */ jsx151("span", { className: style_module_default12["slider-step"] }, index)),
|
|
7718
|
+
/* @__PURE__ */ jsx151(SliderPrimitive.Range, { className: style_module_default12["slider-range"] })
|
|
7719
|
+
] }),
|
|
7720
|
+
/* @__PURE__ */ jsxs106(Tooltip, { children: [
|
|
7721
|
+
/* @__PURE__ */ jsx151(Tooltip.Trigger, { by: /* @__PURE__ */ jsx151(SliderPrimitive.Thumb, { className: style_module_default12["slider-thumb"] }) }),
|
|
7722
|
+
/* @__PURE__ */ jsx151(Tooltip.Content, { description: tooltip })
|
|
7723
|
+
] })
|
|
7724
|
+
] }),
|
|
7725
|
+
/* @__PURE__ */ jsxs106("div", { className: style_module_default12["slider-option-wrapper"], children: [
|
|
7726
|
+
/* @__PURE__ */ jsx151(Icon, { name: rangeRight.icon, size: "xs" }),
|
|
7727
|
+
/* @__PURE__ */ jsx151(Caption, { size: 1, type: "normal", weight: "medium", className: style_module_default12.optionText, children: rangeRight.text })
|
|
7728
|
+
] })
|
|
7729
|
+
] })
|
|
7730
|
+
] }) });
|
|
7731
|
+
});
|
|
7732
|
+
var Slider = Object.assign(SliderRoot, {});
|
|
7733
|
+
|
|
7734
|
+
// src/components/Select/index.tsx
|
|
7735
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
7736
|
+
import * as ScrollArea from "@radix-ui/react-scroll-area";
|
|
7737
|
+
|
|
7738
|
+
// src/components/Select/style.module.scss
|
|
7739
|
+
var style_module_default13 = {
|
|
7740
|
+
"select-label": "_select-label_105lv_101",
|
|
7741
|
+
"trigger": "_trigger_105lv_105",
|
|
7742
|
+
"placeholder": "_placeholder_105lv_137",
|
|
7743
|
+
"openIcon": "_openIcon_105lv_141",
|
|
7744
|
+
"desktop-content": "_desktop-content_105lv_157",
|
|
7745
|
+
"slide-up": "_slide-up_105lv_218",
|
|
7746
|
+
"header": "_header_105lv_177",
|
|
7747
|
+
"mobile-overlay": "_mobile-overlay_105lv_185",
|
|
7748
|
+
"mobile-content": "_mobile-content_105lv_201",
|
|
7749
|
+
"slide-down": "_slide-down_105lv_222",
|
|
7750
|
+
"slide-in-right": "_slide-in-right_105lv_226",
|
|
7751
|
+
"slide-out-right": "_slide-out-right_105lv_230",
|
|
7752
|
+
"mobile-viewport": "_mobile-viewport_105lv_235",
|
|
7753
|
+
"scrollAreaRoot": "_scrollAreaRoot_105lv_239",
|
|
7754
|
+
"scrollAreaViewport": "_scrollAreaViewport_105lv_244",
|
|
7755
|
+
"scrollAreaScrollbar": "_scrollAreaScrollbar_105lv_251",
|
|
7756
|
+
"scrollAreaThumb": "_scrollAreaThumb_105lv_256",
|
|
7757
|
+
"desktop-label": "_desktop-label_105lv_261",
|
|
7758
|
+
"mobile-label": "_mobile-label_105lv_266",
|
|
7759
|
+
"item": "_item_105lv_274",
|
|
7760
|
+
"icon": "_icon_105lv_302",
|
|
7761
|
+
"itemIndicator": "_itemIndicator_105lv_308"
|
|
7762
|
+
};
|
|
7763
|
+
|
|
7764
|
+
// src/components/Select/index.tsx
|
|
7765
|
+
import { forwardRef as forwardRef10, useEffect as useEffect3, useState as useState5 } from "react";
|
|
7766
|
+
import clsx15 from "clsx";
|
|
7767
|
+
|
|
7768
|
+
// src/hooks/media.ts
|
|
7769
|
+
import { useEffect as useEffect2, useState as useState4 } from "react";
|
|
7770
|
+
var useMediaQuery = /* @__PURE__ */ __name((query) => {
|
|
7771
|
+
const [matches, setMatches] = useState4();
|
|
7772
|
+
useEffect2(() => {
|
|
7773
|
+
const mediaQuery = window.matchMedia(query);
|
|
7774
|
+
const handleChange = /* @__PURE__ */ __name(() => setMatches(mediaQuery.matches), "handleChange");
|
|
7775
|
+
mediaQuery.addEventListener("change", handleChange);
|
|
7776
|
+
return () => mediaQuery.removeEventListener("change", handleChange);
|
|
7777
|
+
}, [query]);
|
|
7778
|
+
return matches;
|
|
7779
|
+
}, "useMediaQuery");
|
|
7780
|
+
|
|
7781
|
+
// src/components/Select/index.tsx
|
|
7782
|
+
import { Fragment as Fragment7, jsx as jsx152, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
7783
|
+
var SelectRoot = forwardRef10((props, ref) => {
|
|
7784
|
+
const {
|
|
7785
|
+
id,
|
|
7786
|
+
placeholder,
|
|
7787
|
+
label,
|
|
7788
|
+
labelChip,
|
|
7789
|
+
listLabel,
|
|
7790
|
+
popSide = "top",
|
|
7791
|
+
sideOffset = 6,
|
|
7792
|
+
children,
|
|
7793
|
+
open = false,
|
|
7794
|
+
onOpenChange,
|
|
7795
|
+
isOverlay = false,
|
|
7796
|
+
openDirection = "slide-right",
|
|
7797
|
+
...rest
|
|
7798
|
+
} = props;
|
|
7799
|
+
const [isOpen, setIsOpen] = useState5(true);
|
|
7800
|
+
const [isClosing, setIsClosing] = useState5(false);
|
|
7801
|
+
const [isBack, setIsBack] = useState5(false);
|
|
7802
|
+
const isMobile = useMediaQuery("(max-width: 600px)");
|
|
7803
|
+
useEffect3(() => {
|
|
7804
|
+
setIsOpen(open);
|
|
7805
|
+
}, [open]);
|
|
7806
|
+
return /* @__PURE__ */ jsxs107(Fragment7, { children: [
|
|
7807
|
+
/* @__PURE__ */ jsx152(Label, { className: style_module_default13["select-label"], level: "secondary", size: "m", offset: "low", htmlFor: id, chip: labelChip, children: label }),
|
|
7808
|
+
/* @__PURE__ */ jsxs107(
|
|
7809
|
+
SelectPrimitive.Root,
|
|
7810
|
+
{
|
|
7811
|
+
...rest,
|
|
7812
|
+
open: isOpen,
|
|
7813
|
+
onOpenChange: (open2) => {
|
|
7814
|
+
onOpenChange?.(open2);
|
|
7815
|
+
setIsOpen(open2);
|
|
7816
|
+
},
|
|
7817
|
+
children: [
|
|
7818
|
+
/* @__PURE__ */ jsxs107(SelectPrimitive.Trigger, { className: style_module_default13.trigger, ref, id, children: [
|
|
7819
|
+
/* @__PURE__ */ jsx152(SelectPrimitive.Value, { className: style_module_default13.placeholder, placeholder }),
|
|
7820
|
+
/* @__PURE__ */ jsx152(SelectPrimitive.Icon, { className: style_module_default13.openIcon, children: /* @__PURE__ */ jsx152(Icon, { name: "arrow-drop-down", fill: true, thick: true, size: "xs" }) })
|
|
7821
|
+
] }),
|
|
7822
|
+
/* @__PURE__ */ jsx152(SelectPrimitive.Portal, { children: isMobile ? /* @__PURE__ */ jsxs107(Fragment7, { children: [
|
|
7823
|
+
/* @__PURE__ */ jsx152(
|
|
7824
|
+
SelectPrimitive.Content,
|
|
7825
|
+
{
|
|
7826
|
+
className: clsx15(style_module_default13["mobile-content"], {
|
|
7827
|
+
[style_module_default13["slide-in-right"]]: openDirection === "slide-right",
|
|
7828
|
+
[style_module_default13["slide-up"]]: openDirection === "slide-up",
|
|
7829
|
+
[style_module_default13["slide-out-right"]]: isBack,
|
|
7830
|
+
[style_module_default13["slide-down"]]: isClosing
|
|
7831
|
+
}),
|
|
7832
|
+
avoidCollisions: false,
|
|
7833
|
+
children: /* @__PURE__ */ jsxs107(ScrollArea.Root, { className: style_module_default13.scrollAreaRoot, type: "scroll", children: [
|
|
7834
|
+
/* @__PURE__ */ jsx152(SelectPrimitive.Viewport, { asChild: true, children: /* @__PURE__ */ jsxs107(SelectPrimitive.Group, { children: [
|
|
7835
|
+
/* @__PURE__ */ jsxs107("div", { className: style_module_default13.header, children: [
|
|
7836
|
+
/* @__PURE__ */ jsx152(
|
|
7837
|
+
IconButton,
|
|
7838
|
+
{
|
|
7839
|
+
name: "arrow-back",
|
|
7840
|
+
level: "tertiary",
|
|
7841
|
+
onClick: () => {
|
|
7842
|
+
setIsBack(true);
|
|
7843
|
+
setTimeout(() => {
|
|
7844
|
+
setIsOpen(false);
|
|
7845
|
+
setIsBack(false);
|
|
7846
|
+
}, 250);
|
|
7847
|
+
}
|
|
7848
|
+
}
|
|
7849
|
+
),
|
|
7850
|
+
/* @__PURE__ */ jsx152(SelectPrimitive.Label, { asChild: true, children: /* @__PURE__ */ jsx152(Label, { className: style_module_default13["mobile-label"], level: "primary", size: "m", offset: "low", children: listLabel }) }),
|
|
7851
|
+
/* @__PURE__ */ jsx152(
|
|
7852
|
+
IconButton,
|
|
7853
|
+
{
|
|
7854
|
+
name: "close",
|
|
7855
|
+
level: "tertiary",
|
|
7856
|
+
onClick: () => {
|
|
7857
|
+
setIsClosing(true);
|
|
7858
|
+
setTimeout(() => {
|
|
7859
|
+
setIsOpen(false);
|
|
7860
|
+
setIsClosing(false);
|
|
7861
|
+
}, 250);
|
|
7862
|
+
}
|
|
7863
|
+
}
|
|
7864
|
+
)
|
|
7865
|
+
] }),
|
|
7866
|
+
/* @__PURE__ */ jsx152(ScrollArea.Viewport, { className: style_module_default13["mobile-viewport"], children })
|
|
7867
|
+
] }) }),
|
|
7868
|
+
/* @__PURE__ */ jsx152(ScrollArea.Scrollbar, { className: style_module_default13.scrollAreaScrollbar, orientation: "vertical", children: /* @__PURE__ */ jsx152(ScrollArea.Thumb, { className: style_module_default13.scrollAreaThumb }) })
|
|
7869
|
+
] })
|
|
7870
|
+
}
|
|
7871
|
+
),
|
|
7872
|
+
isOverlay && /* @__PURE__ */ jsx152("div", { className: style_module_default13["mobile-overlay"] })
|
|
7873
|
+
] }) : /* @__PURE__ */ jsx152(
|
|
7874
|
+
SelectPrimitive.Content,
|
|
7875
|
+
{
|
|
7876
|
+
className: style_module_default13["desktop-content"],
|
|
7877
|
+
position: "popper",
|
|
7878
|
+
side: popSide,
|
|
7879
|
+
sideOffset,
|
|
7880
|
+
avoidCollisions: false,
|
|
7881
|
+
children: /* @__PURE__ */ jsxs107(ScrollArea.Root, { className: style_module_default13.scrollAreaRoot, type: "scroll", children: [
|
|
7882
|
+
/* @__PURE__ */ jsx152(SelectPrimitive.Viewport, { asChild: true, children: /* @__PURE__ */ jsx152(ScrollArea.Viewport, { className: style_module_default13.scrollAreaViewport, children: /* @__PURE__ */ jsxs107(SelectPrimitive.Group, { children: [
|
|
7883
|
+
/* @__PURE__ */ jsx152(SelectPrimitive.Label, { asChild: true, children: /* @__PURE__ */ jsx152(Label, { className: style_module_default13["desktop-label"], level: "secondary", size: "m", offset: "low", children: listLabel }) }),
|
|
7884
|
+
children
|
|
7885
|
+
] }) }) }),
|
|
7886
|
+
/* @__PURE__ */ jsx152(ScrollArea.Scrollbar, { className: style_module_default13.scrollAreaScrollbar, orientation: "vertical", children: /* @__PURE__ */ jsx152(ScrollArea.Thumb, { className: style_module_default13.scrollAreaThumb }) })
|
|
7887
|
+
] })
|
|
7888
|
+
}
|
|
7889
|
+
) })
|
|
7890
|
+
]
|
|
7891
|
+
}
|
|
7892
|
+
)
|
|
7893
|
+
] });
|
|
7894
|
+
});
|
|
7895
|
+
var SelectItem = /* @__PURE__ */ __name(({ value, disabled, icon }) => /* @__PURE__ */ jsxs107(SelectPrimitive.Item, { className: style_module_default13.item, value, disabled, children: [
|
|
7896
|
+
/* @__PURE__ */ jsx152(SelectPrimitive.ItemText, { className: "item", children: /* @__PURE__ */ jsx152(Paragraph, { size: 3, type: "normal", weight: "medium", children: value }) }),
|
|
7897
|
+
icon && /* @__PURE__ */ jsx152(SelectPrimitive.Icon, { className: style_module_default13.icon, children: /* @__PURE__ */ jsx152(Icon, { size: "xs", ...icon }) }),
|
|
7898
|
+
/* @__PURE__ */ jsx152(SelectPrimitive.ItemIndicator, { className: style_module_default13.itemIndicator, children: /* @__PURE__ */ jsx152(Icon, { fill: false, thick: true, size: "xs", name: "check-mark", type: "brand-label-primary" }) })
|
|
7899
|
+
] }), "SelectItem");
|
|
7900
|
+
var Select = Object.assign(SelectRoot, {
|
|
7901
|
+
Item: SelectItem
|
|
7902
|
+
});
|
|
7680
7903
|
export {
|
|
7681
7904
|
Button,
|
|
7682
7905
|
Caption,
|
|
@@ -7691,6 +7914,8 @@ export {
|
|
|
7691
7914
|
Paragraph,
|
|
7692
7915
|
Popover,
|
|
7693
7916
|
Radio,
|
|
7917
|
+
Select,
|
|
7918
|
+
Slider,
|
|
7694
7919
|
TextButton,
|
|
7695
7920
|
Textfield,
|
|
7696
7921
|
Title2 as Title,
|