@iit/precision-ui 0.7.0 → 0.7.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.
Files changed (111) hide show
  1. package/dist/components/ui/textarea/TextareaWithLabel.d.ts.map +1 -1
  2. package/dist/index.d.ts +19 -13
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.es.js +89 -82
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/index.es10.js +1 -1
  7. package/dist/index.es11.js +1 -1
  8. package/dist/index.es12.js +1 -1
  9. package/dist/index.es13.js +79 -24
  10. package/dist/index.es13.js.map +1 -1
  11. package/dist/index.es14.js +83 -26
  12. package/dist/index.es14.js.map +1 -1
  13. package/dist/index.es15.js +19 -19
  14. package/dist/index.es15.js.map +1 -1
  15. package/dist/index.es16.js +28 -25
  16. package/dist/index.es16.js.map +1 -1
  17. package/dist/index.es17.js +24 -69
  18. package/dist/index.es17.js.map +1 -1
  19. package/dist/index.es18.js +22 -32
  20. package/dist/index.es18.js.map +1 -1
  21. package/dist/index.es19.js +72 -31
  22. package/dist/index.es19.js.map +1 -1
  23. package/dist/index.es2.js +1 -1
  24. package/dist/index.es20.js +24 -19
  25. package/dist/index.es20.js.map +1 -1
  26. package/dist/index.es21.js +31 -18
  27. package/dist/index.es21.js.map +1 -1
  28. package/dist/index.es22.js +28 -44
  29. package/dist/index.es22.js.map +1 -1
  30. package/dist/index.es23.js +18 -36
  31. package/dist/index.es23.js.map +1 -1
  32. package/dist/index.es24.js +40 -48
  33. package/dist/index.es24.js.map +1 -1
  34. package/dist/index.es25.js +37 -14
  35. package/dist/index.es25.js.map +1 -1
  36. package/dist/index.es26.js +53 -5
  37. package/dist/index.es26.js.map +1 -1
  38. package/dist/index.es27.js +13 -52
  39. package/dist/index.es27.js.map +1 -1
  40. package/dist/index.es28.js +5 -26
  41. package/dist/index.es28.js.map +1 -1
  42. package/dist/index.es29.js +50 -94
  43. package/dist/index.es29.js.map +1 -1
  44. package/dist/index.es3.js +2 -2
  45. package/dist/index.es30.js +24 -53
  46. package/dist/index.es30.js.map +1 -1
  47. package/dist/index.es31.js +77 -72
  48. package/dist/index.es31.js.map +1 -1
  49. package/dist/index.es32.js +38 -80
  50. package/dist/index.es32.js.map +1 -1
  51. package/dist/index.es33.js +90 -11
  52. package/dist/index.es33.js.map +1 -1
  53. package/dist/index.es34.js +87 -34
  54. package/dist/index.es34.js.map +1 -1
  55. package/dist/index.es35.js +13 -24
  56. package/dist/index.es35.js.map +1 -1
  57. package/dist/index.es36.js +42 -25
  58. package/dist/index.es36.js.map +1 -1
  59. package/dist/index.es37.js +18 -204
  60. package/dist/index.es37.js.map +1 -1
  61. package/dist/index.es38.js +37 -50
  62. package/dist/index.es38.js.map +1 -1
  63. package/dist/index.es39.js +25 -55
  64. package/dist/index.es39.js.map +1 -1
  65. package/dist/index.es4.js +1 -1
  66. package/dist/index.es40.js +205 -56
  67. package/dist/index.es40.js.map +1 -1
  68. package/dist/index.es41.js +50 -18
  69. package/dist/index.es41.js.map +1 -1
  70. package/dist/index.es42.js +57 -18
  71. package/dist/index.es42.js.map +1 -1
  72. package/dist/index.es43.js +59 -89
  73. package/dist/index.es43.js.map +1 -1
  74. package/dist/index.es44.js +18 -88
  75. package/dist/index.es44.js.map +1 -1
  76. package/dist/index.es45.js +19 -33
  77. package/dist/index.es45.js.map +1 -1
  78. package/dist/index.es46.js +88 -74
  79. package/dist/index.es46.js.map +1 -1
  80. package/dist/index.es47.js +76 -29
  81. package/dist/index.es47.js.map +1 -1
  82. package/dist/index.es48.js +31 -9
  83. package/dist/index.es48.js.map +1 -1
  84. package/dist/index.es49.js +77 -6
  85. package/dist/index.es49.js.map +1 -1
  86. package/dist/index.es5.js +1 -1
  87. package/dist/index.es50.js +42 -21
  88. package/dist/index.es50.js.map +1 -1
  89. package/dist/index.es51.js +10 -19
  90. package/dist/index.es51.js.map +1 -1
  91. package/dist/index.es52.js +6 -20
  92. package/dist/index.es52.js.map +1 -1
  93. package/dist/index.es53.js +21 -84
  94. package/dist/index.es53.js.map +1 -1
  95. package/dist/index.es54.js +20 -39
  96. package/dist/index.es54.js.map +1 -1
  97. package/dist/index.es55.js +19 -26
  98. package/dist/index.es55.js.map +1 -1
  99. package/dist/index.es56.js +44 -13
  100. package/dist/index.es56.js.map +1 -1
  101. package/dist/index.es57.js +26 -46
  102. package/dist/index.es57.js.map +1 -1
  103. package/dist/index.es58.js +16 -4
  104. package/dist/index.es58.js.map +1 -1
  105. package/dist/index.es59.js +1 -1
  106. package/dist/index.es6.js +1 -1
  107. package/dist/index.es60.js +7 -0
  108. package/dist/index.es60.js.map +1 -0
  109. package/dist/index.es7.js +1 -1
  110. package/dist/index.es8.js +1 -1
  111. package/package.json +1 -1
@@ -1,50 +1,30 @@
1
- import { Carousel as n, CarouselContent as i, CarouselItem as p } from "./index.es59.js";
2
- import e from "react";
3
- import { cn as b } from "./index.es49.js";
4
- const g = ({
5
- items: r,
6
- renderItem: t,
7
- columns: l,
8
- hideControlsOnDesktop: m,
9
- className: o,
10
- variant: c
11
- }) => {
12
- const u = (s) => {
13
- switch (s ?? l) {
14
- case 2:
15
- return "md:basis-1/2 lg:basis-1/2";
16
- case 3:
17
- return "md:basis-1/2 lg:basis-1/3";
18
- case 4:
19
- return "md:basis-1/2 lg:basis-1/4";
20
- default:
21
- return "md:basis-1/2 lg:basis-1/3";
1
+ import { cva as t } from "class-variance-authority";
2
+ const i = t("", {
3
+ variants: {
4
+ variant: {
5
+ factoid: "typo_variant_factoid",
6
+ h1: "typo_variant_h1",
7
+ h2: "typo_variant_h2",
8
+ h3: "typo_variant_h3",
9
+ h4: "typo_variant_h4",
10
+ h5: "typo_variant_h5",
11
+ h6: "typo_variant_h6",
12
+ "subtitle-1": "typo_variant_subtitle-1",
13
+ "subtitle-2": "typo_variant_subtitle-2",
14
+ overline: "typo_variant_overline",
15
+ "lead-text": "typo_variant_lead-text",
16
+ body: "typo_variant_body",
17
+ "small-body": "typo_variant_small-body",
18
+ caption: "typo_variant_caption",
19
+ button: "typo_variant_button",
20
+ link: "typo_variant_link"
22
21
  }
23
- };
24
- return /* @__PURE__ */ e.createElement(
25
- n,
26
- {
27
- opts: {
28
- align: "start"
29
- },
30
- className: b("my-carousel w-full -mt-3", o),
31
- hideControlsOnDesktop: m,
32
- variant: c
33
- },
34
- /* @__PURE__ */ e.createElement(i, { className: "-ml-4 pt-3" }, r.map((s, a) => /* @__PURE__ */ e.createElement(
35
- p,
36
- {
37
- key: a,
38
- className: `pl-4 ${u(
39
- s.size
40
- // Safely access `size` property
41
- )}`
42
- },
43
- t(s, a)
44
- )))
45
- );
46
- };
22
+ },
23
+ defaultVariants: {
24
+ variant: "body"
25
+ }
26
+ });
47
27
  export {
48
- g as CarouselWrapper
28
+ i as typeVariants
49
29
  };
50
30
  //# sourceMappingURL=index.es57.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es57.js","sources":["../src/decorators/CarouselWrapper.tsx"],"sourcesContent":["import {\r\n Carousel,\r\n CarouselContent,\r\n CarouselItem,\r\n} from '@/components/ui/carousel'\r\n\r\nimport React from 'react'\r\nimport { cn } from '@/lib/utils/cn'\r\n\r\nexport const CarouselWrapper = <T,>({\r\n items,\r\n renderItem,\r\n columns,\r\n hideControlsOnDesktop,\r\n className,\r\n variant,\r\n}: {\r\n items: T[]\r\n renderItem: (item: T, index: number) => React.ReactNode\r\n columns: number\r\n hideControlsOnDesktop: boolean\r\n className?: string\r\n variant?: 'default' | 'white'\r\n}) => {\r\n const carouselColumnsClasses = (size?: number) => {\r\n switch (size ?? columns) {\r\n case 2:\r\n return 'md:basis-1/2 lg:basis-1/2'\r\n case 3:\r\n return 'md:basis-1/2 lg:basis-1/3'\r\n case 4:\r\n return 'md:basis-1/2 lg:basis-1/4'\r\n default:\r\n return 'md:basis-1/2 lg:basis-1/3'\r\n }\r\n }\r\n\r\n return (\r\n <Carousel\r\n opts={{\r\n align: 'start',\r\n }}\r\n className={cn('my-carousel w-full -mt-3', className)}\r\n hideControlsOnDesktop={hideControlsOnDesktop}\r\n variant={variant}\r\n >\r\n <CarouselContent className=\"-ml-4 pt-3\">\r\n {items.map((item, index) => (\r\n <CarouselItem\r\n key={index}\r\n className={`pl-4 ${carouselColumnsClasses(\r\n (item as { size?: number }).size // Safely access `size` property\r\n )}`}\r\n >\r\n {renderItem(item, index)}\r\n </CarouselItem>\r\n ))}\r\n </CarouselContent>\r\n </Carousel>\r\n )\r\n}\r\n"],"names":["CarouselWrapper","items","renderItem","columns","hideControlsOnDesktop","className","variant","carouselColumnsClasses","size","React","Carousel","cn","CarouselContent","item","index","CarouselItem"],"mappings":";;;AASO,MAAMA,IAAkB,CAAK;AAAA,EAClC,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AACF,MAOM;AACE,QAAAC,IAAyB,CAACC,MAAkB;AAChD,YAAQA,KAAQL,GAAS;AAAA,MACvB,KAAK;AACI,eAAA;AAAA,MACT,KAAK;AACI,eAAA;AAAA,MACT,KAAK;AACI,eAAA;AAAA,MACT;AACS,eAAA;AAAA,IACX;AAAA,EAAA;AAIA,SAAAM,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAM;AAAA,QACJ,OAAO;AAAA,MACT;AAAA,MACA,WAAWC,EAAG,4BAA4BN,CAAS;AAAA,MACnD,uBAAAD;AAAA,MACA,SAAAE;AAAA,IAAA;AAAA,IAEAG,gBAAAA,EAAA,cAACG,KAAgB,WAAU,aAAA,GACxBX,EAAM,IAAI,CAACY,GAAMC,MAChBL,gBAAAA,EAAA;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,KAAKD;AAAA,QACL,WAAW,QAAQP;AAAA,UAChBM,EAA2B;AAAA;AAAA,QAAA,CAC7B;AAAA,MAAA;AAAA,MAEAX,EAAWW,GAAMC,CAAK;AAAA,IAAA,CAE1B,CACH;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"index.es57.js","sources":["../src/components/core/typography/typeVariants.ts"],"sourcesContent":["import { cva } from \"class-variance-authority\";\r\n\r\nexport const typeVariants = cva(\"\", {\r\n variants: {\r\n variant: {\r\n factoid: \"typo_variant_factoid\",\r\n h1: \"typo_variant_h1\",\r\n h2: \"typo_variant_h2\",\r\n h3: \"typo_variant_h3\",\r\n h4: \"typo_variant_h4\",\r\n h5: \"typo_variant_h5\",\r\n h6: \"typo_variant_h6\",\r\n \"subtitle-1\": \"typo_variant_subtitle-1\",\r\n \"subtitle-2\": \"typo_variant_subtitle-2\",\r\n overline: \"typo_variant_overline\",\r\n \"lead-text\": \"typo_variant_lead-text\",\r\n body: \"typo_variant_body\",\r\n \"small-body\": \"typo_variant_small-body\",\r\n caption: \"typo_variant_caption\",\r\n button: \"typo_variant_button\",\r\n link: \"typo_variant_link\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"body\",\r\n },\r\n});\r\n"],"names":["typeVariants","cva"],"mappings":";AAEa,MAAAA,IAAeC,EAAI,IAAI;AAAA,EAClC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,cAAc;AAAA,MACd,cAAc;AAAA,MACd,UAAU;AAAA,MACV,aAAa;AAAA,MACb,MAAM;AAAA,MACN,cAAc;AAAA,MACd,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EACX;AACF,CAAC;"}
@@ -1,7 +1,19 @@
1
- function u(r, n) {
2
- return r ? r.length <= n ? r : r.slice(0, n) + "..." : "";
3
- }
1
+ import t from "react";
2
+ import a from "./index.es45.js";
3
+ import { getAdapter as o } from "./index.es9.js";
4
+ import i from "./index.es60.js";
5
+ const l = ({ title: e, href: r }) => {
6
+ const m = o("LinkWrapper");
7
+ return r ? /* @__PURE__ */ t.createElement(a, { variant: "small-body", className: "text-whitish-opacity-32" }, /* @__PURE__ */ t.createElement(
8
+ m,
9
+ {
10
+ href: r,
11
+ className: "breadcrumb hover:text-whitish-opacity-60 duration-200"
12
+ },
13
+ i(e, 55)
14
+ )) : /* @__PURE__ */ t.createElement(a, { variant: "link", className: "text-whitish breadcrumb" }, i(e, 55));
15
+ };
4
16
  export {
5
- u as default
17
+ l as default
6
18
  };
7
19
  //# sourceMappingURL=index.es58.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es58.js","sources":["../src/lib/utils/truncateText.ts"],"sourcesContent":["function truncateText(text: string, maxLength: number): string {\r\n if (!text) return ''\r\n if (text.length <= maxLength) {\r\n return text\r\n }\r\n return text.slice(0, maxLength) + '...'\r\n}\r\n\r\nexport default truncateText\r\n"],"names":["truncateText","text","maxLength"],"mappings":"AAAA,SAASA,EAAaC,GAAcC,GAA2B;AAC7D,SAAKD,IACDA,EAAK,UAAUC,IACVD,IAEFA,EAAK,MAAM,GAAGC,CAAS,IAAI,QAJhB;AAKpB;"}
1
+ {"version":3,"file":"index.es58.js","sources":["../src/components/breadcrumbs/Breadcrumb.tsx"],"sourcesContent":["import React from 'react'\r\nimport Text from '../core/typography/Text'\r\nimport { getAdapter } from '@/Adapters'\r\nimport truncateText from '@/lib/utils/truncateText'\r\n\r\nexport interface BreadcrumbProps {\r\n title: string\r\n href?: string\r\n}\r\n\r\nconst Breadcrumb: React.FC<BreadcrumbProps> = ({ title, href }) => {\r\n const LinkWrapper = getAdapter('LinkWrapper')\r\n\r\n if (!href)\r\n return (\r\n <Text variant=\"link\" className=\"text-whitish breadcrumb\">\r\n {truncateText(title, 55)}\r\n </Text>\r\n )\r\n\r\n return (\r\n <Text variant=\"small-body\" className=\"text-whitish-opacity-32\">\r\n <LinkWrapper\r\n href={href}\r\n className=\"breadcrumb hover:text-whitish-opacity-60 duration-200\"\r\n >\r\n {truncateText(title, 55)}\r\n </LinkWrapper>\r\n </Text>\r\n )\r\n}\r\n\r\nexport default Breadcrumb\r\n"],"names":["Breadcrumb","title","href","LinkWrapper","getAdapter","React","Text","truncateText"],"mappings":";;;;AAUA,MAAMA,IAAwC,CAAC,EAAE,OAAAC,GAAO,MAAAC,QAAW;AAC3D,QAAAC,IAAcC,EAAW,aAAa;AAE5C,SAAKF,IAQFG,gBAAAA,EAAA,cAAAC,GAAA,EAAK,SAAQ,cAAa,WAAU,6BACnCD,gBAAAA,EAAA;AAAA,IAACF;AAAA,IAAA;AAAA,MACC,MAAAD;AAAA,MACA,WAAU;AAAA,IAAA;AAAA,IAETK,EAAaN,GAAO,EAAE;AAAA,EAAA,CAE3B,IAbEI,gBAAAA,EAAA,cAACC,KAAK,SAAQ,QAAO,WAAU,0BAC5B,GAAAC,EAAaN,GAAO,EAAE,CACzB;AAaN;"}
@@ -1,7 +1,7 @@
1
1
  import e from "react";
2
2
  import D from "embla-carousel-react";
3
3
  import { ChevronLeft as j, ChevronRight as B } from "lucide-react";
4
- import { cn as i } from "./index.es49.js";
4
+ import { cn as i } from "./index.es52.js";
5
5
  import { Slot as K } from "@radix-ui/react-slot";
6
6
  import { cva as L } from "class-variance-authority";
7
7
  const V = L(
package/dist/index.es6.js CHANGED
@@ -2,7 +2,7 @@ import e from "react";
2
2
  import { Button as m } from "./index.es2.js";
3
3
  import { LessLink16X16 as d, MoreLink16X16 as f, ArrowLinkRight16X16 as h } from "@iit/precision-ui-icons";
4
4
  import { cva as i } from "class-variance-authority";
5
- import { cn as n } from "./index.es49.js";
5
+ import { cn as n } from "./index.es52.js";
6
6
  import { ArrowDownToLine as p } from "lucide-react";
7
7
  import { getAdapter as g } from "./index.es9.js";
8
8
  const w = i("bg-link-gradient-container hover:cursor-pointer", {
@@ -0,0 +1,7 @@
1
+ function u(r, n) {
2
+ return r ? r.length <= n ? r : r.slice(0, n) + "..." : "";
3
+ }
4
+ export {
5
+ u as default
6
+ };
7
+ //# sourceMappingURL=index.es60.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es60.js","sources":["../src/lib/utils/truncateText.ts"],"sourcesContent":["function truncateText(text: string, maxLength: number): string {\r\n if (!text) return ''\r\n if (text.length <= maxLength) {\r\n return text\r\n }\r\n return text.slice(0, maxLength) + '...'\r\n}\r\n\r\nexport default truncateText\r\n"],"names":["truncateText","text","maxLength"],"mappings":"AAAA,SAASA,EAAaC,GAAcC,GAA2B;AAC7D,SAAKD,IACDA,EAAK,UAAUC,IACVD,IAEFA,EAAK,MAAM,GAAGC,CAAS,IAAI,QAJhB;AAKpB;"}
package/dist/index.es7.js CHANGED
@@ -2,7 +2,7 @@ import t from "react";
2
2
  import { Button as s } from "./index.es2.js";
3
3
  import { ServicesModal16X16 as u, Login16X16 as c } from "@iit/precision-ui-icons";
4
4
  import { cva as i } from "class-variance-authority";
5
- import { cn as n } from "./index.es49.js";
5
+ import { cn as n } from "./index.es52.js";
6
6
  const m = i("bg-link-gradient-container group cursor-pointer", {
7
7
  variants: {
8
8
  variant: {
package/dist/index.es8.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import l from "react";
2
2
  import { cva as s } from "class-variance-authority";
3
- import { cn as c } from "./index.es49.js";
3
+ import { cn as c } from "./index.es52.js";
4
4
  import { getAdapter as v } from "./index.es9.js";
5
5
  const f = s("duration-200 transition-colors", {
6
6
  variants: {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "type": "git",
14
14
  "url": "git+https://github.com/wowxoxo/precision-ui.git"
15
15
  },
16
- "version": "0.7.0",
16
+ "version": "0.7.2",
17
17
  "type": "module",
18
18
  "module": "./dist/index.es.js",
19
19
  "types": "./dist/index.d.ts",