@liner-fe/prism 1.12.45 → 1.12.46
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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BreakPointsKey } from './lib';
|
|
2
2
|
import { TypoSet } from './type';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
|
|
4
|
+
type TypographyType = (props: Partial<Record<BreakPointsKey, TypoSet>> & {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
-
}) =>
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
export declare const Typography: TypographyType;
|
|
8
|
+
export {};
|
package/lib/index.mjs
CHANGED
|
@@ -7240,7 +7240,7 @@ var rootMediaStyle = AppMedia.createMediaStyle();
|
|
|
7240
7240
|
var { MediaContextProvider, Media } = AppMedia;
|
|
7241
7241
|
|
|
7242
7242
|
// src/components/Typography/Responsive/index.tsx
|
|
7243
|
-
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
7243
|
+
import { Fragment as Fragment3, jsx as jsx148 } from "react/jsx-runtime";
|
|
7244
7244
|
import { createElement as createElement2 } from "react";
|
|
7245
7245
|
var TypographyImpl = /* @__PURE__ */ __name(({ level, text, ...rest }) => {
|
|
7246
7246
|
const commonProps = {
|
|
@@ -7296,14 +7296,17 @@ var Typography = /* @__PURE__ */ __name((props) => {
|
|
|
7296
7296
|
});
|
|
7297
7297
|
return returnValue;
|
|
7298
7298
|
}, "createMediaProps");
|
|
7299
|
-
return
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7299
|
+
return (
|
|
7300
|
+
// Fragment없이도 원래 동작해야하는데 liner-web에서 JSX.Element가 배열로 오면 에러 띄워서 임시로 Fragment로 래핑합니다.
|
|
7301
|
+
/* @__PURE__ */ jsx148(Fragment3, { children: breakPointKeyArray.map((breakPointKey) => {
|
|
7302
|
+
const variable = props[breakPointKey];
|
|
7303
|
+
const isExistVariable = !!variable;
|
|
7304
|
+
if (isExistVariable) {
|
|
7305
|
+
return /* @__PURE__ */ createElement2(Media, { ...createMediaProps(breakPointKey), key: breakPointKey }, /* @__PURE__ */ jsx148(TypographyImpl, { ...variable, text: variable.text || children }));
|
|
7306
|
+
}
|
|
7307
|
+
return null;
|
|
7308
|
+
}) })
|
|
7309
|
+
);
|
|
7307
7310
|
}, "Typography");
|
|
7308
7311
|
|
|
7309
7312
|
// src/components/Popover/index.tsx
|
|
@@ -7639,7 +7642,7 @@ var Label = forwardRef10(
|
|
|
7639
7642
|
);
|
|
7640
7643
|
|
|
7641
7644
|
// src/components/CheckBox/index.tsx
|
|
7642
|
-
import { Fragment as
|
|
7645
|
+
import { Fragment as Fragment4, jsx as jsx153, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
7643
7646
|
var Checkbox = forwardRef11(
|
|
7644
7647
|
({ className, label, description, ...props }, ref) => {
|
|
7645
7648
|
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs104(Label, { position: "right", htmlFor: props.id, children: [
|
|
@@ -7648,7 +7651,7 @@ var Checkbox = forwardRef11(
|
|
|
7648
7651
|
/* @__PURE__ */ jsx153(Paragraph, { className: style_module_default8.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
7649
7652
|
] }),
|
|
7650
7653
|
children
|
|
7651
|
-
] }) : /* @__PURE__ */ jsx153(
|
|
7654
|
+
] }) : /* @__PURE__ */ jsx153(Fragment4, { children }), "CheckboxWrapper");
|
|
7652
7655
|
return /* @__PURE__ */ jsx153(CheckboxWrapper, { children: /* @__PURE__ */ jsx153(CheckboxPrimitive.Root, { className: clsx12(style_module_default8.checkbox, className), ref, ...props, children: /* @__PURE__ */ jsx153(CheckboxPrimitive.Indicator, { className: style_module_default8["checkbox-indicator"], children: /* @__PURE__ */ jsx153(Icon, { name: "check-mark", thick: true, size: "xs", type: "inverse-label-primary" }) }) }) });
|
|
7653
7656
|
}
|
|
7654
7657
|
);
|
|
@@ -7668,7 +7671,7 @@ var style_module_default10 = {
|
|
|
7668
7671
|
};
|
|
7669
7672
|
|
|
7670
7673
|
// src/components/Radio/index.tsx
|
|
7671
|
-
import { Fragment as
|
|
7674
|
+
import { Fragment as Fragment5, jsx as jsx154, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
7672
7675
|
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx154("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ jsx154("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
|
|
7673
7676
|
var RadioRoot = forwardRef12(({ className, ...props }, ref) => /* @__PURE__ */ jsx154(RadioGroupPrimitive.Root, { className: clsx13(style_module_default10.radio, className), ...props }));
|
|
7674
7677
|
var RadioItem = forwardRef12(
|
|
@@ -7679,7 +7682,7 @@ var RadioItem = forwardRef12(
|
|
|
7679
7682
|
/* @__PURE__ */ jsx154(Paragraph, { className: style_module_default10.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
7680
7683
|
] }),
|
|
7681
7684
|
children
|
|
7682
|
-
] }) : /* @__PURE__ */ jsx154(
|
|
7685
|
+
] }) : /* @__PURE__ */ jsx154(Fragment5, { children }), "RadioItemWrapper");
|
|
7683
7686
|
return /* @__PURE__ */ jsx154(RadioItemWrapper, { children: /* @__PURE__ */ jsx154(RadioGroupPrimitive.Item, { ref, className: clsx13(style_module_default10["radio-item"], className), ...props, children: /* @__PURE__ */ jsx154(RadioGroupPrimitive.Indicator, { className: style_module_default10.indicator, children: /* @__PURE__ */ jsx154(RadioIndicator, {}) }) }) });
|
|
7684
7687
|
}
|
|
7685
7688
|
);
|
|
@@ -7721,7 +7724,7 @@ var style_module_default11 = {
|
|
|
7721
7724
|
// src/components/Textfield/index.tsx
|
|
7722
7725
|
import { cva as cva8 } from "class-variance-authority";
|
|
7723
7726
|
import clsx14 from "clsx";
|
|
7724
|
-
import { Fragment as
|
|
7727
|
+
import { Fragment as Fragment6, jsx as jsx155, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
7725
7728
|
var defaultTextfieldVariants = cva8(style_module_default11.textfield, {
|
|
7726
7729
|
variants: {
|
|
7727
7730
|
color: {
|
|
@@ -7850,7 +7853,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
7850
7853
|
}
|
|
7851
7854
|
),
|
|
7852
7855
|
displayFooter && /* @__PURE__ */ jsxs106("div", { className: style_module_default11.footer, children: [
|
|
7853
|
-
/* @__PURE__ */ jsx155("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */ jsxs106(
|
|
7856
|
+
/* @__PURE__ */ jsx155("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */ jsxs106(Fragment6, { children: [
|
|
7854
7857
|
/* @__PURE__ */ jsx155(Icon, { name: "exclamationmark-fill", fill: true, thick: true, size: "xs", type: "function-label-negative" }),
|
|
7855
7858
|
/* @__PURE__ */ jsx155(Caption, { size: 3, type: "normal", weight: "regular", className: style_module_default11["error-message"], children: error })
|
|
7856
7859
|
] }) }),
|
|
@@ -7881,10 +7884,10 @@ var style_module_default12 = {
|
|
|
7881
7884
|
|
|
7882
7885
|
// src/components/Slider/index.tsx
|
|
7883
7886
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
7884
|
-
import { Fragment as
|
|
7887
|
+
import { Fragment as Fragment7, jsx as jsx156, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
7885
7888
|
var SliderRoot = forwardRef14((props, ref) => {
|
|
7886
7889
|
const { label, tooltip, rangeLeft, rangeRight, min, max, step = 50, ...rest } = props;
|
|
7887
|
-
return /* @__PURE__ */ jsx156(
|
|
7890
|
+
return /* @__PURE__ */ jsx156(Fragment7, { children: /* @__PURE__ */ jsxs107(Tooltip.Provider, { children: [
|
|
7888
7891
|
/* @__PURE__ */ jsx156(Label, { level: "secondary", size: "m", offset: "high", className: style_module_default12.label, children: label }),
|
|
7889
7892
|
/* @__PURE__ */ jsxs107("div", { className: style_module_default12["slider-wrapper"], children: [
|
|
7890
7893
|
/* @__PURE__ */ jsxs107("div", { className: style_module_default12["slider-option-wrapper"], children: [
|
|
@@ -7940,7 +7943,7 @@ var style_module_default13 = {
|
|
|
7940
7943
|
// src/components/Select/index.tsx
|
|
7941
7944
|
import { forwardRef as forwardRef15, useEffect as useEffect2, useState as useState4 } from "react";
|
|
7942
7945
|
import clsx15 from "clsx";
|
|
7943
|
-
import { Fragment as
|
|
7946
|
+
import { Fragment as Fragment8, jsx as jsx157, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
7944
7947
|
var SelectContent = forwardRef15((props, ref) => {
|
|
7945
7948
|
const { id, isResponsive, popSide, sideOffset, listLabel, children } = props;
|
|
7946
7949
|
return /* @__PURE__ */ jsx157(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx157(
|
|
@@ -7996,7 +7999,7 @@ var SelectRoot = forwardRef15((props, ref) => {
|
|
|
7996
7999
|
useEffect2(() => {
|
|
7997
8000
|
setIsOpen(open);
|
|
7998
8001
|
}, [open]);
|
|
7999
|
-
return /* @__PURE__ */ jsxs108(
|
|
8002
|
+
return /* @__PURE__ */ jsxs108(Fragment8, { children: [
|
|
8000
8003
|
/* @__PURE__ */ jsx157(Label, { className: style_module_default13["select-label"], level: "secondary", size: "m", offset: "low", htmlFor: id, children: label }),
|
|
8001
8004
|
/* @__PURE__ */ jsxs108(
|
|
8002
8005
|
SelectPrimitive.Root,
|