@liner-fe/prism 1.10.33 → 1.11.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/lib/components/CheckBox/index.d.ts +6 -1
- package/lib/components/Radio/index.d.ts +7 -1
- package/lib/components/Typography/Caption.d.ts +1 -1
- package/lib/components/Typography/Display.d.ts +1 -1
- package/lib/components/Typography/Paragraph.d.ts +7 -2
- package/lib/components/_Label/index.d.ts +20 -1
- package/lib/index.css +216 -22
- package/lib/index.css.map +3 -3
- package/lib/index.d.ts +2 -1
- package/lib/index.mjs +136 -19
- package/lib/index.mjs.map +4 -4
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -6294,14 +6294,14 @@ import { Provider, Root, Title, Viewport } from "@radix-ui/react-toast";
|
|
|
6294
6294
|
|
|
6295
6295
|
// src/components/Toast/style.module.scss
|
|
6296
6296
|
var style_module_default3 = {
|
|
6297
|
-
"Icon": "
|
|
6298
|
-
"TitleText": "
|
|
6299
|
-
"ToastViewport": "
|
|
6300
|
-
"ToastRoot": "
|
|
6301
|
-
"ToastTitle": "
|
|
6302
|
-
"slideIn": "
|
|
6303
|
-
"hide": "
|
|
6304
|
-
"swipeOut": "
|
|
6297
|
+
"Icon": "_Icon_18unn_25",
|
|
6298
|
+
"TitleText": "_TitleText_18unn_31",
|
|
6299
|
+
"ToastViewport": "_ToastViewport_18unn_36",
|
|
6300
|
+
"ToastRoot": "_ToastRoot_18unn_60",
|
|
6301
|
+
"ToastTitle": "_ToastTitle_18unn_76",
|
|
6302
|
+
"slideIn": "_slideIn_18unn_1",
|
|
6303
|
+
"hide": "_hide_18unn_1",
|
|
6304
|
+
"swipeOut": "_swipeOut_18unn_1"
|
|
6305
6305
|
};
|
|
6306
6306
|
|
|
6307
6307
|
// src/components/Toast/index.tsx
|
|
@@ -6759,39 +6759,156 @@ var IconButton = forwardRef4(
|
|
|
6759
6759
|
}
|
|
6760
6760
|
);
|
|
6761
6761
|
|
|
6762
|
+
// src/components/CheckBox/index.tsx
|
|
6763
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
6764
|
+
|
|
6765
|
+
// src/components/CheckBox/style.module.scss
|
|
6766
|
+
var style_module_default8 = {
|
|
6767
|
+
"checkbox": "_checkbox_24vda_1",
|
|
6768
|
+
"checkbox-indicator": "_checkbox-indicator_24vda_39",
|
|
6769
|
+
"label-wrapper": "_label-wrapper_24vda_47",
|
|
6770
|
+
"description": "_description_24vda_53"
|
|
6771
|
+
};
|
|
6772
|
+
|
|
6773
|
+
// src/components/CheckBox/index.tsx
|
|
6774
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
6775
|
+
import clsx12 from "clsx";
|
|
6776
|
+
|
|
6762
6777
|
// src/components/_Label/index.tsx
|
|
6763
6778
|
import { forwardRef as forwardRef5 } from "react";
|
|
6764
6779
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
6765
6780
|
import clsx11 from "clsx";
|
|
6766
6781
|
|
|
6767
6782
|
// src/components/_Label/style.module.scss
|
|
6768
|
-
var
|
|
6769
|
-
"label": "
|
|
6783
|
+
var style_module_default9 = {
|
|
6784
|
+
"label": "_label_tblhc_1",
|
|
6785
|
+
"error": "_error_tblhc_14",
|
|
6786
|
+
"primary": "_primary_tblhc_18",
|
|
6787
|
+
"secondary": "_secondary_tblhc_29",
|
|
6788
|
+
"top": "_top_tblhc_40",
|
|
6789
|
+
"l": "_l_tblhc_1",
|
|
6790
|
+
"offset-high": "_offset-high_tblhc_43",
|
|
6791
|
+
"offset-medium": "_offset-medium_tblhc_46",
|
|
6792
|
+
"offset-low": "_offset-low_tblhc_49",
|
|
6793
|
+
"m": "_m_tblhc_52",
|
|
6794
|
+
"s": "_s_tblhc_29",
|
|
6795
|
+
"right": "_right_tblhc_71",
|
|
6796
|
+
"disabled": "_disabled_tblhc_93"
|
|
6770
6797
|
};
|
|
6771
6798
|
|
|
6772
6799
|
// src/components/_Label/index.tsx
|
|
6800
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
6773
6801
|
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
6774
|
-
var
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6802
|
+
var defaultLabelVariants = cva7(["lp-sys-typo-paragraph2-normal-medium", style_module_default9.label], {
|
|
6803
|
+
variants: {
|
|
6804
|
+
level: {
|
|
6805
|
+
primary: style_module_default9.primary,
|
|
6806
|
+
secondary: style_module_default9.secondary
|
|
6807
|
+
},
|
|
6808
|
+
position: {
|
|
6809
|
+
top: style_module_default9.top,
|
|
6810
|
+
right: style_module_default9.right
|
|
6811
|
+
},
|
|
6812
|
+
size: {
|
|
6813
|
+
l: ["lp-sys-typo-paragraph3-normal-bold", style_module_default9.l],
|
|
6814
|
+
m: ["lp-sys-typo-caption1-normal-medium", style_module_default9.m],
|
|
6815
|
+
s: ["lp-sys-typo-caption2-normal-medium", style_module_default9.s]
|
|
6816
|
+
},
|
|
6817
|
+
offset: {
|
|
6818
|
+
high: style_module_default9["offset-high"],
|
|
6819
|
+
medium: style_module_default9["offset-medium"],
|
|
6820
|
+
low: style_module_default9["offset-low"]
|
|
6821
|
+
},
|
|
6822
|
+
disabled: {
|
|
6823
|
+
true: style_module_default9.disabled
|
|
6824
|
+
},
|
|
6825
|
+
error: {
|
|
6826
|
+
true: style_module_default9.error
|
|
6781
6827
|
}
|
|
6782
|
-
|
|
6828
|
+
}
|
|
6829
|
+
});
|
|
6830
|
+
var Label = forwardRef5(
|
|
6831
|
+
({
|
|
6832
|
+
className,
|
|
6833
|
+
level = "primary",
|
|
6834
|
+
position = "top",
|
|
6835
|
+
size = "l",
|
|
6836
|
+
offset = "medium",
|
|
6837
|
+
disabled = false,
|
|
6838
|
+
error = false,
|
|
6839
|
+
...props
|
|
6840
|
+
}, ref) => {
|
|
6841
|
+
return /* @__PURE__ */ jsx139(
|
|
6842
|
+
LabelPrimitive.Root,
|
|
6843
|
+
{
|
|
6844
|
+
ref,
|
|
6845
|
+
className: clsx11(defaultLabelVariants({ level, position, size, offset, disabled, error }), className),
|
|
6846
|
+
...props
|
|
6847
|
+
}
|
|
6848
|
+
);
|
|
6849
|
+
}
|
|
6850
|
+
);
|
|
6851
|
+
|
|
6852
|
+
// src/components/CheckBox/index.tsx
|
|
6853
|
+
import { Fragment as Fragment3, jsx as jsx140, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
6854
|
+
var Checkbox = forwardRef6(
|
|
6855
|
+
({ className, label, description, ...props }, ref) => {
|
|
6856
|
+
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs94(Label, { position: "right", htmlFor: props.id, children: [
|
|
6857
|
+
/* @__PURE__ */ jsxs94("div", { className: style_module_default8["label-wrapper"], children: [
|
|
6858
|
+
label,
|
|
6859
|
+
/* @__PURE__ */ jsx140(Paragraph, { className: style_module_default8.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
6860
|
+
] }),
|
|
6861
|
+
children
|
|
6862
|
+
] }) : /* @__PURE__ */ jsx140(Fragment3, { children }), "CheckboxWrapper");
|
|
6863
|
+
return /* @__PURE__ */ jsx140(CheckboxWrapper, { children: /* @__PURE__ */ jsx140(CheckboxPrimitive.Root, { className: clsx12(style_module_default8.checkbox, className), ref, ...props, children: /* @__PURE__ */ jsx140(CheckboxPrimitive.Indicator, { className: style_module_default8["checkbox-indicator"], children: /* @__PURE__ */ jsx140(Icon, { name: "check-mark", thick: true, size: "xs", type: "inverse-label-primary" }) }) }) });
|
|
6864
|
+
}
|
|
6865
|
+
);
|
|
6866
|
+
|
|
6867
|
+
// src/components/Radio/index.tsx
|
|
6868
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
6869
|
+
import clsx13 from "clsx";
|
|
6870
|
+
import { forwardRef as forwardRef7 } from "react";
|
|
6871
|
+
|
|
6872
|
+
// src/components/Radio/style.module.scss
|
|
6873
|
+
var style_module_default10 = {
|
|
6874
|
+
"radio": "_radio_xppn4_1",
|
|
6875
|
+
"radio-item": "_radio-item_xppn4_5",
|
|
6876
|
+
"indicator": "_indicator_xppn4_42",
|
|
6877
|
+
"label-wrapper": "_label-wrapper_xppn4_46",
|
|
6878
|
+
"description": "_description_xppn4_52"
|
|
6879
|
+
};
|
|
6880
|
+
|
|
6881
|
+
// src/components/Radio/index.tsx
|
|
6882
|
+
import { Fragment as Fragment4, jsx as jsx141, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
6883
|
+
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx141("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ jsx141("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
|
|
6884
|
+
var RadioRoot = forwardRef7(({ className, ...props }, ref) => /* @__PURE__ */ jsx141(RadioGroupPrimitive.Root, { className: clsx13(style_module_default10.radio, className), ...props }));
|
|
6885
|
+
var RadioItem = forwardRef7(
|
|
6886
|
+
({ className, label, description, ...props }, ref) => {
|
|
6887
|
+
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs95(Label, { position: "right", htmlFor: props.id, children: [
|
|
6888
|
+
/* @__PURE__ */ jsxs95("div", { className: style_module_default10["label-wrapper"], children: [
|
|
6889
|
+
label,
|
|
6890
|
+
/* @__PURE__ */ jsx141(Paragraph, { className: style_module_default10.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
6891
|
+
] }),
|
|
6892
|
+
children
|
|
6893
|
+
] }) : /* @__PURE__ */ jsx141(Fragment4, { children }), "RadioItemWrapper");
|
|
6894
|
+
return /* @__PURE__ */ jsx141(RadioItemWrapper, { children: /* @__PURE__ */ jsx141(RadioGroupPrimitive.Item, { ref, className: clsx13(style_module_default10["radio-item"], className), ...props, children: /* @__PURE__ */ jsx141(RadioGroupPrimitive.Indicator, { className: style_module_default10.indicator, children: /* @__PURE__ */ jsx141(RadioIndicator, {}) }) }) });
|
|
6895
|
+
}
|
|
6896
|
+
);
|
|
6897
|
+
var Radio = Object.assign(RadioRoot, {
|
|
6898
|
+
Item: RadioItem
|
|
6783
6899
|
});
|
|
6784
6900
|
export {
|
|
6785
6901
|
Button,
|
|
6786
6902
|
Caption,
|
|
6903
|
+
Checkbox,
|
|
6787
6904
|
DefaultButton,
|
|
6788
6905
|
Display,
|
|
6789
6906
|
Heading,
|
|
6790
6907
|
Icon,
|
|
6791
6908
|
IconButton,
|
|
6792
|
-
Label,
|
|
6793
6909
|
Paragraph,
|
|
6794
6910
|
Popover,
|
|
6911
|
+
Radio,
|
|
6795
6912
|
TextButton,
|
|
6796
6913
|
Title2 as Title,
|
|
6797
6914
|
Toaster,
|