@liner-fe/prism 1.10.0 → 1.10.2

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/index.mjs CHANGED
@@ -4813,49 +4813,19 @@ var ICSun = /* @__PURE__ */ __name((props) => {
4813
4813
  }, "ICSun");
4814
4814
 
4815
4815
  // src/assets/moon.tsx
4816
- import { jsx as jsx104, jsxs as jsxs74 } from "react/jsx-runtime";
4816
+ import { jsx as jsx104 } from "react/jsx-runtime";
4817
4817
  var ICMoon = /* @__PURE__ */ __name((props) => {
4818
4818
  const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
4819
4819
  if (thick) {
4820
- return /* @__PURE__ */ jsxs74("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4821
- /* @__PURE__ */ jsxs74("g", { "clip-path": "url(#clip0_2579_458)", children: [
4822
- /* @__PURE__ */ jsxs74("g", { opacity: "0.2", "clip-path": "url(#clip1_2579_458)", children: [
4823
- /* @__PURE__ */ jsx104("rect", { opacity: "0.6", x: "42", y: "42", width: size, height: size, rx: "2", stroke: "#FF00FF", "stroke-width": "0.2" }),
4824
- /* @__PURE__ */ jsx104("rect", { opacity: "0.6", x: "40", y: "45", width: size, height: size, rx: "2", stroke: "#FF00FF", "stroke-width": "0.2" }),
4825
- /* @__PURE__ */ jsx104(
4826
- "rect",
4827
- {
4828
- opacity: "0.6",
4829
- x: "45",
4830
- y: "80",
4831
- width: size,
4832
- height: size,
4833
- rx: "2",
4834
- transform: "rotate(-90 45 80)",
4835
- stroke: "#FF00FF",
4836
- "stroke-width": "0.2"
4837
- }
4838
- ),
4839
- /* @__PURE__ */ jsx104("rect", { opacity: "0.6", x: "40", y: "40", width: size, height: size, rx: "20", stroke: "#FF00FF", "stroke-width": "0.2" }),
4840
- /* @__PURE__ */ jsx104("path", { opacity: "0.6", d: "M84 36L36 84", stroke: "#FF00FF", "stroke-width": "0.2" }),
4841
- /* @__PURE__ */ jsx104("path", { opacity: "0.6", d: "M36 36L84 84", stroke: "#FF00FF", "stroke-width": "0.2" }),
4842
- /* @__PURE__ */ jsx104("rect", { opacity: "0.6", x: "36", y: "36", width: size, height: size, stroke: "#FF00FF", "stroke-width": "0.5" })
4843
- ] }),
4844
- /* @__PURE__ */ jsx104(
4845
- "path",
4846
- {
4847
- "fill-rule": "evenodd",
4848
- "clip-rule": "evenodd",
4849
- d: "M15.2612 11.1506C15.0892 12.192 14.9998 13.2601 14.9998 14.3474C14.9998 25.1169 23.7303 33.8474 34.4998 33.8474C35.5872 33.8474 36.6555 33.758 37.697 33.5859C34.7701 37.3957 30.1685 39.8474 25 39.8474C16.1634 39.8474 9 32.684 9 23.8474C9 18.679 11.4516 14.0775 15.2612 11.1506ZM20.227 8.2927C20.9422 6.60872 19.6845 4.47421 17.9716 5.11725C10.3932 7.96234 5 15.275 5 23.8474C5 34.8931 13.9543 43.8474 25 43.8474C33.5725 43.8474 40.8853 38.454 43.7303 30.8754C44.3733 29.1626 42.2388 27.9049 40.5548 28.6201C38.6946 29.4103 36.6483 29.8474 34.4998 29.8474C25.9394 29.8474 18.9998 22.9078 18.9998 14.3474C18.9998 12.1991 19.4369 10.1528 20.227 8.2927Z",
4850
- fill: color
4851
- }
4852
- )
4853
- ] }),
4854
- /* @__PURE__ */ jsxs74("defs", { children: [
4855
- /* @__PURE__ */ jsx104("clipPath", { id: "clip0_2579_458", children: /* @__PURE__ */ jsx104("rect", { width: size, height: size, fill: "white" }) }),
4856
- /* @__PURE__ */ jsx104("clipPath", { id: "clip1_2579_458", children: /* @__PURE__ */ jsx104("rect", { width: size, height: size, fill: "white", transform: "translate(36 36)" }) })
4857
- ] })
4858
- ] });
4820
+ return /* @__PURE__ */ jsx104("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx104(
4821
+ "path",
4822
+ {
4823
+ "fill-rule": "evenodd",
4824
+ "clip-rule": "evenodd",
4825
+ d: "M15.2612 11.1506C15.0892 12.192 14.9998 13.2601 14.9998 14.3474C14.9998 25.1169 23.7303 33.8474 34.4998 33.8474C35.5872 33.8474 36.6555 33.758 37.697 33.5859C34.7701 37.3957 30.1685 39.8474 25 39.8474C16.1634 39.8474 9 32.684 9 23.8474C9 18.679 11.4516 14.0775 15.2612 11.1506ZM20.227 8.2927C20.9422 6.60872 19.6845 4.47421 17.9716 5.11725C10.3932 7.96234 5 15.275 5 23.8474C5 34.8931 13.9543 43.8474 25 43.8474C33.5725 43.8474 40.8853 38.454 43.7303 30.8754C44.3733 29.1626 42.2388 27.9049 40.5548 28.6201C38.6946 29.4103 36.6483 29.8474 34.4998 29.8474C25.9394 29.8474 18.9998 22.9078 18.9998 14.3474C18.9998 12.1991 19.4369 10.1528 20.227 8.2927Z",
4826
+ fill: "#1E1E1F"
4827
+ }
4828
+ ) });
4859
4829
  }
4860
4830
  return /* @__PURE__ */ jsx104("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx104(
4861
4831
  "path",
@@ -4869,11 +4839,11 @@ var ICMoon = /* @__PURE__ */ __name((props) => {
4869
4839
  }, "ICMoon");
4870
4840
 
4871
4841
  // src/assets/fire.tsx
4872
- import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
4842
+ import { jsx as jsx105, jsxs as jsxs74 } from "react/jsx-runtime";
4873
4843
  var ICFire = /* @__PURE__ */ __name((props) => {
4874
4844
  const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
4875
4845
  if (thick) {
4876
- return /* @__PURE__ */ jsxs75("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4846
+ return /* @__PURE__ */ jsxs74("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4877
4847
  /* @__PURE__ */ jsx105(
4878
4848
  "path",
4879
4849
  {
@@ -4905,7 +4875,7 @@ var ICFire = /* @__PURE__ */ __name((props) => {
4905
4875
  }
4906
4876
  ) });
4907
4877
  }
4908
- return /* @__PURE__ */ jsxs75("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4878
+ return /* @__PURE__ */ jsxs74("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4909
4879
  /* @__PURE__ */ jsx105(
4910
4880
  "path",
4911
4881
  {
@@ -4980,11 +4950,11 @@ var ICArrowDownward = /* @__PURE__ */ __name((props) => {
4980
4950
  }, "ICArrowDownward");
4981
4951
 
4982
4952
  // src/assets/light-mode.tsx
4983
- import { jsx as jsx108, jsxs as jsxs76 } from "react/jsx-runtime";
4953
+ import { jsx as jsx108, jsxs as jsxs75 } from "react/jsx-runtime";
4984
4954
  var ICLightMode = /* @__PURE__ */ __name((props) => {
4985
4955
  const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
4986
4956
  if (thick) {
4987
- return /* @__PURE__ */ jsxs76("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4957
+ return /* @__PURE__ */ jsxs75("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4988
4958
  /* @__PURE__ */ jsx108("path", { d: "M26 2V11H22V2H26Z", fill: color }),
4989
4959
  /* @__PURE__ */ jsx108(
4990
4960
  "path",
@@ -5004,7 +4974,7 @@ var ICLightMode = /* @__PURE__ */ __name((props) => {
5004
4974
  /* @__PURE__ */ jsx108("path", { d: "M7.02978 9.85802L13.3937 16.222L16.2222 13.3936L9.85821 7.02959L7.02978 9.85802Z", fill: color })
5005
4975
  ] });
5006
4976
  }
5007
- return /* @__PURE__ */ jsxs76("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4977
+ return /* @__PURE__ */ jsxs75("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5008
4978
  /* @__PURE__ */ jsx108("path", { d: "M25.5 2V11H22.5V2H25.5Z", fill: color }),
5009
4979
  /* @__PURE__ */ jsx108(
5010
4980
  "path",
@@ -5052,11 +5022,11 @@ var ICDarkMode = /* @__PURE__ */ __name((props) => {
5052
5022
  }, "ICDarkMode");
5053
5023
 
5054
5024
  // src/assets/target.tsx
5055
- import { jsx as jsx110, jsxs as jsxs77 } from "react/jsx-runtime";
5025
+ import { jsx as jsx110, jsxs as jsxs76 } from "react/jsx-runtime";
5056
5026
  var ICTarget = /* @__PURE__ */ __name((props) => {
5057
5027
  const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
5058
5028
  if (thick) {
5059
- return /* @__PURE__ */ jsxs77("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5029
+ return /* @__PURE__ */ jsxs76("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5060
5030
  /* @__PURE__ */ jsx110(
5061
5031
  "path",
5062
5032
  {
@@ -5080,7 +5050,7 @@ var ICTarget = /* @__PURE__ */ __name((props) => {
5080
5050
  )
5081
5051
  ] });
5082
5052
  }
5083
- return /* @__PURE__ */ jsxs77("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5053
+ return /* @__PURE__ */ jsxs76("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5084
5054
  /* @__PURE__ */ jsx110(
5085
5055
  "path",
5086
5056
  {
@@ -5106,7 +5076,7 @@ var ICTarget = /* @__PURE__ */ __name((props) => {
5106
5076
  }, "ICTarget");
5107
5077
 
5108
5078
  // src/assets/question-box.tsx
5109
- import { jsx as jsx111, jsxs as jsxs78 } from "react/jsx-runtime";
5079
+ import { jsx as jsx111, jsxs as jsxs77 } from "react/jsx-runtime";
5110
5080
  var ICQuestionBox = /* @__PURE__ */ __name((props) => {
5111
5081
  const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
5112
5082
  if (fill && thick) {
@@ -5121,7 +5091,7 @@ var ICQuestionBox = /* @__PURE__ */ __name((props) => {
5121
5091
  ) });
5122
5092
  }
5123
5093
  if (thick) {
5124
- return /* @__PURE__ */ jsxs78("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5094
+ return /* @__PURE__ */ jsxs77("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5125
5095
  /* @__PURE__ */ jsx111(
5126
5096
  "path",
5127
5097
  {
@@ -5158,7 +5128,7 @@ var ICQuestionBox = /* @__PURE__ */ __name((props) => {
5158
5128
  }
5159
5129
  ) });
5160
5130
  }
5161
- return /* @__PURE__ */ jsxs78("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5131
+ return /* @__PURE__ */ jsxs77("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
5162
5132
  /* @__PURE__ */ jsx111(
5163
5133
  "path",
5164
5134
  {
@@ -5310,33 +5280,33 @@ import { forwardRef } from "react";
5310
5280
 
5311
5281
  // src/components/Button/style.module.scss
5312
5282
  var style_module_default = {
5313
- "button": "_button_w531y_1",
5314
- "default": "_default_w531y_22",
5315
- "text": "_text_w531y_30",
5316
- "primary": "_primary_w531y_39",
5317
- "secondary": "_secondary_w531y_46",
5318
- "tertiary": "_tertiary_w531y_53",
5319
- "quaternary": "_quaternary_w531y_64",
5320
- "error": "_error_w531y_84",
5321
- "inverse": "_inverse_w531y_91",
5322
- "ghost": "_ghost_w531y_110",
5323
- "cta": "_cta_w531y_145",
5324
- "l": "_l_w531y_152",
5325
- "m": "_m_w531y_158",
5326
- "s": "_s_w531y_46",
5327
- "align-center": "_align-center_w531y_170",
5328
- "align-space-between": "_align-space-between_w531y_174",
5329
- "neutral-primary": "_neutral-primary_w531y_178",
5330
- "inverse-primary": "_inverse-primary_w531y_183",
5331
- "inverse-static-primary": "_inverse-static-primary_w531y_187",
5332
- "content": "_content_w531y_191",
5333
- "full": "_full_w531y_196",
5334
- "fit-content": "_fit-content_w531y_200",
5335
- "children": "_children_w531y_204",
5336
- "cta-children": "_cta-children_w531y_210",
5337
- "l-children": "_l-children_w531y_215",
5338
- "m-children": "_m-children_w531y_220",
5339
- "s-children": "_s-children_w531y_225"
5283
+ "button": "_button_fkfnu_1",
5284
+ "default": "_default_fkfnu_22",
5285
+ "text": "_text_fkfnu_30",
5286
+ "primary": "_primary_fkfnu_39",
5287
+ "secondary": "_secondary_fkfnu_47",
5288
+ "tertiary": "_tertiary_fkfnu_54",
5289
+ "quaternary": "_quaternary_fkfnu_65",
5290
+ "error": "_error_fkfnu_85",
5291
+ "inverse": "_inverse_fkfnu_93",
5292
+ "ghost": "_ghost_fkfnu_112",
5293
+ "cta": "_cta_fkfnu_147",
5294
+ "l": "_l_fkfnu_154",
5295
+ "m": "_m_fkfnu_160",
5296
+ "s": "_s_fkfnu_47",
5297
+ "align-center": "_align-center_fkfnu_172",
5298
+ "align-space-between": "_align-space-between_fkfnu_176",
5299
+ "neutral-primary": "_neutral-primary_fkfnu_180",
5300
+ "inverse-primary": "_inverse-primary_fkfnu_185",
5301
+ "inverse-static-primary": "_inverse-static-primary_fkfnu_189",
5302
+ "content": "_content_fkfnu_193",
5303
+ "full": "_full_fkfnu_198",
5304
+ "fit-content": "_fit-content_fkfnu_202",
5305
+ "children": "_children_fkfnu_206",
5306
+ "cta-children": "_cta-children_fkfnu_212",
5307
+ "l-children": "_l-children_fkfnu_217",
5308
+ "m-children": "_m-children_fkfnu_222",
5309
+ "s-children": "_s-children_fkfnu_227"
5340
5310
  };
5341
5311
 
5342
5312
  // src/components/Button/index.tsx
@@ -5421,7 +5391,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
5421
5391
  }, "Icon");
5422
5392
 
5423
5393
  // src/components/Button/index.tsx
5424
- import { jsx as jsx113, jsxs as jsxs79 } from "react/jsx-runtime";
5394
+ import { jsx as jsx113, jsxs as jsxs78 } from "react/jsx-runtime";
5425
5395
  var buttonIconSizeMap = {
5426
5396
  cta: "m",
5427
5397
  l: "s",
@@ -5503,7 +5473,7 @@ var DefaultButton = forwardRef(
5503
5473
  ...rest,
5504
5474
  className: clsx2(defaultButtonVariants({ level, fill, align, size, width }), className),
5505
5475
  ref,
5506
- children: /* @__PURE__ */ jsxs79("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
5476
+ children: /* @__PURE__ */ jsxs78("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
5507
5477
  !!leftIcon && /* @__PURE__ */ jsx113(Icon, { name: leftIcon.name, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] }),
5508
5478
  /* @__PURE__ */ jsx113("p", { className: style_module_default.content, children: rest.children }),
5509
5479
  !!rightIcon && /* @__PURE__ */ jsx113(Icon, { name: rightIcon.name, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] })
@@ -5645,11 +5615,11 @@ var Paragraph = /* @__PURE__ */ __name(({
5645
5615
 
5646
5616
  // src/components/Toast/index.tsx
5647
5617
  import { useRecoilValue, useSetRecoilState as useSetRecoilState2 } from "recoil";
5648
- import { Fragment as Fragment2, jsx as jsx115, jsxs as jsxs80 } from "react/jsx-runtime";
5618
+ import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
5649
5619
  import { createElement } from "react";
5650
5620
  var Toaster = /* @__PURE__ */ __name(() => {
5651
5621
  const { list } = useRecoilValue(toastAtom);
5652
- return /* @__PURE__ */ jsxs80(Provider, { children: [
5622
+ return /* @__PURE__ */ jsxs79(Provider, { children: [
5653
5623
  list.map((props) => /* @__PURE__ */ createElement(SingleToast, { ...props, key: props.toastId })),
5654
5624
  /* @__PURE__ */ jsx115(Viewport, { className: style_module_default3.ToastViewport })
5655
5625
  ] });
@@ -5680,20 +5650,9 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
5680
5650
  clearTimeout(timerRef.current);
5681
5651
  };
5682
5652
  }, []);
5683
- const IconComponent = (() => {
5684
- if (!icon) return /* @__PURE__ */ jsx115(Fragment2, {});
5685
- switch (icon) {
5686
- case "negative":
5687
- return /* @__PURE__ */ jsx115(Icon, { name: "exclamationmark", type: "function-label-negative", fill: true, size: "s" });
5688
- case "positive":
5689
- return /* @__PURE__ */ jsx115(Icon, { name: "check-mark-fill", type: "function-label-positive", thick: true, fill: true, size: "s" });
5690
- default:
5691
- return /* @__PURE__ */ jsx115(Fragment2, {});
5692
- }
5693
- })();
5694
- return /* @__PURE__ */ jsxs80(Root, { className: style_module_default3.ToastRoot, open: isOpen, ...props, children: [
5695
- /* @__PURE__ */ jsx115("i", { className: style_module_default3.Icon, children: IconComponent }),
5696
- /* @__PURE__ */ jsxs80(Title, { className: style_module_default3.ToastTitle, children: [
5653
+ return /* @__PURE__ */ jsxs79(Root, { className: style_module_default3.ToastRoot, open: isOpen, ...props, children: [
5654
+ icon && /* @__PURE__ */ jsx115("i", { className: style_module_default3.Icon, children: /* @__PURE__ */ jsx115(Icon, { ...icon, size: "s" }) }),
5655
+ /* @__PURE__ */ jsxs79(Title, { className: style_module_default3.ToastTitle, children: [
5697
5656
  /* @__PURE__ */ jsx115(
5698
5657
  Paragraph,
5699
5658
  {
@@ -5826,7 +5785,7 @@ var style_module_default5 = {
5826
5785
  // src/components/Popover/index.tsx
5827
5786
  import { cva as cva4 } from "class-variance-authority";
5828
5787
  import { clsx as clsx8 } from "clsx";
5829
- import { jsx as jsx120, jsxs as jsxs81 } from "react/jsx-runtime";
5788
+ import { jsx as jsx120, jsxs as jsxs80 } from "react/jsx-runtime";
5830
5789
  var DEFAULT_OFFSET = -6;
5831
5790
  var popoverVariants = cva4(style_module_default5.content, {
5832
5791
  variants: {
@@ -5885,7 +5844,7 @@ var PopoverContent = React.forwardRef(
5885
5844
  onClose,
5886
5845
  className,
5887
5846
  ...props
5888
- }, ref) => /* @__PURE__ */ jsx120(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsxs81(
5847
+ }, ref) => /* @__PURE__ */ jsx120(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsxs80(
5889
5848
  PopoverPrimitive.Content,
5890
5849
  {
5891
5850
  ref,
@@ -5895,8 +5854,8 @@ var PopoverContent = React.forwardRef(
5895
5854
  className: clsx8(popoverVariants({ level }), className),
5896
5855
  ...props,
5897
5856
  children: [
5898
- /* @__PURE__ */ jsxs81("div", { className: style_module_default5.contentContainer, children: [
5899
- /* @__PURE__ */ jsxs81("div", { className: style_module_default5.heading, children: [
5857
+ /* @__PURE__ */ jsxs80("div", { className: style_module_default5.contentContainer, children: [
5858
+ /* @__PURE__ */ jsxs80("div", { className: style_module_default5.heading, children: [
5900
5859
  tag && /* @__PURE__ */ jsx120("span", { className: popoverTagVariants(), children: tag }),
5901
5860
  icon && /* @__PURE__ */ jsx120(Icon, { name: icon.name, size: "xs", thick: icon.thick, fill: icon.fill }),
5902
5861
  /* @__PURE__ */ jsx120("p", { className: popoverTitleVariants(), children: title }),