@fumadocs/ui 16.4.0 → 16.4.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 (73) hide show
  1. package/css/colors/ocean.css +1 -5
  2. package/css/colors/vitepress.css +3 -15
  3. package/dist/cn.d.ts +2 -2
  4. package/dist/cn.js +3 -1
  5. package/dist/components/toc/clerk.d.ts +11 -2
  6. package/dist/components/toc/clerk.d.ts.map +1 -1
  7. package/dist/components/toc/clerk.js +105 -69
  8. package/dist/components/toc/clerk.js.map +1 -0
  9. package/dist/components/toc/default.d.ts +11 -2
  10. package/dist/components/toc/default.d.ts.map +1 -1
  11. package/dist/components/toc/default.js +36 -15
  12. package/dist/components/toc/default.js.map +1 -0
  13. package/dist/components/toc/index.d.ts +23 -8
  14. package/dist/components/toc/index.d.ts.map +1 -1
  15. package/dist/components/toc/index.js +74 -56
  16. package/dist/components/toc/index.js.map +1 -0
  17. package/dist/contexts/i18n.d.ts +53 -43
  18. package/dist/contexts/i18n.d.ts.map +1 -1
  19. package/dist/contexts/i18n.js +55 -50
  20. package/dist/contexts/i18n.js.map +1 -0
  21. package/dist/contexts/search.d.ts +62 -49
  22. package/dist/contexts/search.d.ts.map +1 -1
  23. package/dist/contexts/search.js +56 -50
  24. package/dist/contexts/search.js.map +1 -0
  25. package/dist/contexts/tree.d.ts +18 -11
  26. package/dist/contexts/tree.d.ts.map +1 -1
  27. package/dist/contexts/tree.js +36 -26
  28. package/dist/contexts/tree.js.map +1 -0
  29. package/dist/hooks/use-copy-button.d.ts +6 -2
  30. package/dist/hooks/use-copy-button.d.ts.map +1 -1
  31. package/dist/hooks/use-copy-button.js +28 -25
  32. package/dist/hooks/use-copy-button.js.map +1 -0
  33. package/dist/hooks/use-footer-items.d.ts +7 -2
  34. package/dist/hooks/use-footer-items.d.ts.map +1 -1
  35. package/dist/hooks/use-footer-items.js +26 -25
  36. package/dist/hooks/use-footer-items.js.map +1 -0
  37. package/dist/hooks/use-is-scroll-top.d.ts +7 -2
  38. package/dist/hooks/use-is-scroll-top.d.ts.map +1 -1
  39. package/dist/hooks/use-is-scroll-top.js +23 -16
  40. package/dist/hooks/use-is-scroll-top.js.map +1 -0
  41. package/dist/i18n.d.ts +11 -11
  42. package/dist/i18n.d.ts.map +1 -1
  43. package/dist/i18n.js +19 -15
  44. package/dist/i18n.js.map +1 -0
  45. package/dist/link-item.d.ts +74 -66
  46. package/dist/link-item.d.ts.map +1 -1
  47. package/dist/link-item.js +23 -10
  48. package/dist/link-item.js.map +1 -0
  49. package/dist/merge-refs.d.ts +6 -2
  50. package/dist/merge-refs.d.ts.map +1 -1
  51. package/dist/merge-refs.js +12 -11
  52. package/dist/merge-refs.js.map +1 -0
  53. package/dist/og/next.d.ts +20 -12
  54. package/dist/og/next.d.ts.map +1 -1
  55. package/dist/og/next.js +68 -43
  56. package/dist/og/next.js.map +1 -0
  57. package/dist/typography/index.d.ts +10 -8
  58. package/dist/typography/index.d.ts.map +1 -1
  59. package/dist/typography/index.js +1714 -127
  60. package/dist/typography/index.js.map +1 -0
  61. package/dist/typography/styles.d.ts +92 -89
  62. package/dist/typography/styles.d.ts.map +1 -1
  63. package/dist/typography/styles.js +337 -423
  64. package/dist/typography/styles.js.map +1 -0
  65. package/dist/urls.d.ts +5 -2
  66. package/dist/urls.d.ts.map +1 -1
  67. package/dist/urls.js +14 -10
  68. package/dist/urls.js.map +1 -0
  69. package/package.json +20 -20
  70. package/dist/cn.d.ts.map +0 -1
  71. package/dist/icons.d.ts +0 -49
  72. package/dist/icons.d.ts.map +0 -1
  73. package/dist/icons.js +0 -281
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["DEFAULT: Config"],"sources":["../../src/typography/styles.ts"],"sourcesContent":["function round(num: number) {\n return num\n .toFixed(7)\n .replace(/(\\.[0-9]+?)0+$/, '$1')\n .replace(/\\.0$/, '');\n}\n\nfunction rem(px: number) {\n return `${round(px / 16)}rem`;\n}\n\nfunction em(px: number, base: number) {\n return `${round(px / base)}em`;\n}\n\nconst colors = {\n '--tw-prose-body': 'color-mix(in oklab, var(--color-fd-foreground) 90%, transparent)',\n '--tw-prose-headings': 'var(--color-fd-foreground)',\n '--tw-prose-lead': `var(--color-fd-foreground)`,\n '--tw-prose-links': `var(--color-fd-foreground)`,\n '--tw-prose-bold': `var(--color-fd-foreground)`,\n '--tw-prose-counters': `var(--color-fd-muted-foreground)`,\n '--tw-prose-bullets': `var(--color-fd-muted-foreground)`,\n '--tw-prose-hr': `var(--color-fd-border)`,\n '--tw-prose-quotes': `var(--color-fd-foreground)`,\n '--tw-prose-quote-borders': `var(--color-fd-border)`,\n '--tw-prose-captions': `var(--color-fd-foreground)`,\n '--tw-prose-code': `var(--color-fd-foreground)`,\n '--tw-prose-th-borders': `var(--color-fd-border)`,\n '--tw-prose-td-borders': `var(--color-fd-border)`,\n '--tw-prose-kbd': `var(--color-fd-foreground)`,\n '--tw-prose-kbd-shadows': `color-mix(in oklab, var(--color-fd-primary) 50%, transparent)`,\n};\n\nexport const roundedTable = {\n table: {\n borderCollapse: 'separate',\n borderSpacing: '0',\n background: 'var(--color-fd-card)',\n borderRadius: 'var(--radius-lg)',\n border: '1px solid var(--color-fd-border)',\n overflow: 'hidden',\n },\n th: {\n textAlign: 'start',\n padding: 'calc(var(--spacing) * 2.5)',\n 'border-inline-start': '1px solid var(--color-fd-border)',\n background: 'var(--color-fd-muted)',\n },\n 'th:first-child': {\n 'border-inline-start': 'none',\n },\n 'th:not(tr:last-child *), td:not(tr:last-child *)': {\n 'border-bottom': '1px solid var(--color-fd-border)',\n },\n td: {\n textAlign: 'start',\n 'border-inline-start': '1px solid var(--color-fd-border)',\n padding: 'calc(var(--spacing) * 2.5)',\n },\n 'td:first-child': {\n 'border-inline-start': 'none',\n },\n 'tfoot th, tfoot td': {\n borderTopWidth: '1px',\n borderTopColor: 'var(--tw-prose-th-borders)',\n },\n 'thead th, thead td': {\n borderBottomWidth: '1px',\n borderBottomColor: 'var(--tw-prose-th-borders)',\n },\n};\n\nexport const normalTable = {\n thead: {\n borderBottomWidth: '1px',\n borderBottomColor: 'var(--tw-prose-th-borders)',\n },\n 'thead th': {\n verticalAlign: 'bottom',\n paddingInlineEnd: em(8, 14),\n paddingBottom: em(8, 14),\n paddingInlineStart: em(8, 14),\n },\n 'thead th:first-child': {\n paddingInlineStart: '0',\n },\n 'thead th:last-child': {\n paddingInlineEnd: '0',\n },\n 'tbody td, tfoot td': {\n paddingTop: em(8, 14),\n paddingInlineEnd: em(8, 14),\n paddingBottom: em(8, 14),\n paddingInlineStart: em(8, 14),\n },\n 'tbody td:first-child, tfoot td:first-child': {\n paddingInlineStart: '0',\n },\n 'tbody td:last-child, tfoot td:last-child': {\n paddingInlineEnd: '0',\n },\n 'tbody tr': {\n borderBottomWidth: '1px',\n borderBottomColor: 'var(--tw-prose-td-borders)',\n },\n 'tbody tr:last-child': {\n borderBottomWidth: '0',\n },\n 'tbody td': {\n verticalAlign: 'baseline',\n },\n tfoot: {\n borderTopWidth: '1px',\n borderTopColor: 'var(--tw-prose-th-borders)',\n },\n 'tfoot td': {\n verticalAlign: 'top',\n },\n 'th, td': {\n textAlign: 'start',\n },\n};\n\nexport interface Config {\n css?: Record<string, string | Record<string, string>>[];\n}\n\nexport const DEFAULT: Config = {\n css: [\n {\n color: 'var(--tw-prose-body)',\n maxWidth: 'none',\n fontSize: rem(16),\n lineHeight: '1.75rem',\n\n '[class~=\"lead\"]': {\n fontSize: em(20, 16),\n lineHeight: round(32 / 20),\n marginTop: em(24, 20),\n marginBottom: em(24, 20),\n color: 'var(--tw-prose-lead)',\n },\n ul: {\n paddingInlineStart: '1rem',\n listStyleType: 'disc',\n marginTop: em(20, 16),\n marginBottom: em(20, 16),\n },\n li: {\n marginTop: em(8, 16),\n marginBottom: em(8, 16),\n },\n 'ol > li': {\n paddingInlineStart: em(6, 16),\n },\n 'ul > li': {\n paddingInlineStart: '0',\n },\n '> ul > li p': {\n marginTop: em(12, 16),\n marginBottom: em(12, 16),\n },\n '> ul > li > p:first-child': {\n marginTop: em(20, 16),\n },\n '> ul > li > p:last-child': {\n marginBottom: em(20, 16),\n },\n '> ol > li > p:first-child': {\n marginTop: em(20, 16),\n },\n '> ol > li > p:last-child': {\n marginBottom: em(20, 16),\n },\n 'ul ul, ul ol, ol ul, ol ol': {\n marginTop: em(12, 16),\n marginBottom: em(12, 16),\n },\n dl: {\n marginTop: em(20, 16),\n marginBottom: em(20, 16),\n },\n dt: {\n color: 'var(--tw-prose-headings)',\n fontWeight: '600',\n marginTop: em(20, 16),\n },\n dd: {\n marginTop: em(8, 16),\n paddingInlineStart: em(26, 16),\n },\n hr: {\n borderColor: 'var(--tw-prose-hr)',\n borderTopWidth: '1px',\n marginTop: em(48, 16),\n marginBottom: em(48, 16),\n },\n p: {\n marginTop: em(20, 16),\n marginBottom: em(20, 16),\n },\n strong: {\n color: 'var(--tw-prose-bold)',\n fontWeight: '500',\n },\n 'a strong': {\n color: 'inherit',\n },\n 'blockquote strong': {\n color: 'inherit',\n },\n 'thead th strong': {\n color: 'inherit',\n },\n ol: {\n listStyleType: 'decimal',\n marginTop: em(20, 16),\n marginBottom: em(20, 16),\n paddingInlineStart: em(26, 16),\n },\n 'ol[type=\"A\"]': {\n listStyleType: 'upper-alpha',\n },\n 'ol[type=\"a\"]': {\n listStyleType: 'lower-alpha',\n },\n 'ol[type=\"A\" s]': {\n listStyleType: 'upper-alpha',\n },\n 'ol[type=\"a\" s]': {\n listStyleType: 'lower-alpha',\n },\n 'ol[type=\"I\"]': {\n listStyleType: 'upper-roman',\n },\n 'ol[type=\"i\"]': {\n listStyleType: 'lower-roman',\n },\n 'ol[type=\"I\" s]': {\n listStyleType: 'upper-roman',\n },\n 'ol[type=\"i\" s]': {\n listStyleType: 'lower-roman',\n },\n 'ol[type=\"1\"]': {\n listStyleType: 'decimal',\n },\n 'ol > li::marker': {\n fontWeight: '400',\n color: 'var(--tw-prose-counters)',\n },\n 'ul > li::marker': {\n color: 'var(--tw-prose-bullets)',\n },\n blockquote: {\n marginTop: em(32, 20),\n marginBottom: em(32, 20),\n paddingInlineStart: em(20, 20),\n fontWeight: '500',\n fontStyle: 'italic',\n color: 'var(--tw-prose-quotes)',\n borderInlineStartWidth: '0.25rem',\n borderInlineStartColor: 'var(--tw-prose-quote-borders)',\n quotes: '\"\\\\201C\"\"\\\\201D\"\"\\\\2018\"\"\\\\2019\"',\n },\n 'blockquote p:first-of-type::before': {\n content: 'open-quote',\n },\n 'blockquote p:last-of-type::after': {\n content: 'close-quote',\n },\n h1: {\n color: 'var(--tw-prose-headings)',\n fontWeight: '800',\n fontSize: 'var(--text-3xl)',\n marginTop: '0',\n marginBottom: em(32, 36),\n lineHeight: round(40 / 36),\n },\n 'h1 strong': {\n fontWeight: '900',\n color: 'inherit',\n },\n h2: {\n color: 'var(--tw-prose-headings)',\n fontSize: em(24, 16),\n marginTop: em(48, 24),\n marginBottom: em(24, 24),\n lineHeight: round(32 / 24),\n fontWeight: '600',\n },\n 'h2 strong': {\n fontWeight: '800',\n color: 'inherit',\n },\n h3: {\n color: 'var(--tw-prose-headings)',\n fontWeight: '600',\n fontSize: em(20, 16),\n marginTop: em(32, 20),\n marginBottom: em(12, 20),\n lineHeight: round(32 / 20),\n },\n 'h3 strong': {\n fontWeight: '700',\n color: 'inherit',\n },\n h4: {\n color: 'var(--tw-prose-headings)',\n fontWeight: '600',\n marginTop: em(24, 16),\n marginBottom: em(8, 16),\n lineHeight: round(24 / 16),\n },\n 'h4 strong': {\n fontWeight: '700',\n color: 'inherit',\n },\n 'hr + *': {\n marginTop: '0',\n },\n 'h2 + *': {\n marginTop: '0',\n },\n 'h3 + *': {\n marginTop: '0',\n },\n 'h4 + *': {\n marginTop: '0',\n },\n img: {\n marginTop: em(32, 16),\n marginBottom: em(32, 16),\n },\n picture: {\n display: 'block',\n marginTop: em(32, 16),\n marginBottom: em(32, 16),\n },\n 'picture > img': {\n marginTop: '0',\n marginBottom: '0',\n },\n video: {\n marginTop: em(32, 16),\n marginBottom: em(32, 16),\n },\n kbd: {\n fontSize: em(14, 16),\n borderRadius: rem(5),\n paddingTop: em(3, 16),\n paddingInlineEnd: em(6, 16),\n paddingBottom: em(3, 16),\n paddingInlineStart: em(6, 16),\n fontWeight: '500',\n fontFamily: 'inherit',\n color: 'var(--tw-prose-kbd)',\n boxShadow: '0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows)',\n },\n code: {\n padding: '3px',\n border: 'solid 1px',\n fontSize: '13px',\n borderColor: `var(--color-fd-border)`,\n borderRadius: '5px',\n fontWeight: '400',\n background: `var(--color-fd-muted)`,\n color: 'var(--tw-prose-code)',\n },\n 'a code': {\n color: 'inherit',\n },\n 'h1 code': {\n color: 'inherit',\n fontSize: 'var(--text-2xl)',\n },\n 'h2 code': {\n color: 'inherit',\n fontSize: em(21, 24),\n },\n 'h3 code': {\n color: 'inherit',\n fontSize: em(18, 20),\n },\n 'h4 code': {\n color: 'inherit',\n },\n 'blockquote code': {\n color: 'inherit',\n },\n 'thead th code': {\n color: 'inherit',\n },\n\n table: {\n fontSize: em(14, 16),\n lineHeight: round(24 / 14),\n width: '100%',\n tableLayout: 'auto',\n marginTop: em(32, 16),\n marginBottom: em(32, 16),\n },\n 'thead th': {\n color: 'var(--tw-prose-headings)',\n fontWeight: '600',\n },\n\n figure: {\n marginTop: em(32, 16),\n marginBottom: em(32, 16),\n },\n 'figure > *': {\n marginTop: '0',\n marginBottom: '0',\n },\n figcaption: {\n color: 'var(--tw-prose-captions)',\n fontSize: em(14, 16),\n lineHeight: round(20 / 14),\n marginTop: em(12, 14),\n },\n\n 'a:not([data-card])': {\n color: 'var(--tw-prose-links)',\n transition: 'opacity .2s',\n fontWeight: '500',\n textDecoration: 'underline',\n textUnderlineOffset: '3.5px',\n textDecorationColor: 'var(--color-fd-primary)',\n textDecorationThickness: '1.5px',\n },\n 'a:not([data-card]):hover': {\n opacity: '80%',\n },\n },\n colors,\n {\n '> :first-child': {\n marginTop: '0',\n },\n '> :last-child': {\n marginBottom: '0',\n },\n },\n ],\n};\n"],"mappings":";AAAA,SAAS,MAAM,KAAa;AAC1B,QAAO,IACJ,QAAQ,EAAE,CACV,QAAQ,kBAAkB,KAAK,CAC/B,QAAQ,QAAQ,GAAG;;AAGxB,SAAS,IAAI,IAAY;AACvB,QAAO,GAAG,MAAM,KAAK,GAAG,CAAC;;AAG3B,SAAS,GAAG,IAAY,MAAc;AACpC,QAAO,GAAG,MAAM,KAAK,KAAK,CAAC;;AAG7B,MAAM,SAAS;CACb,mBAAmB;CACnB,uBAAuB;CACvB,mBAAmB;CACnB,oBAAoB;CACpB,mBAAmB;CACnB,uBAAuB;CACvB,sBAAsB;CACtB,iBAAiB;CACjB,qBAAqB;CACrB,4BAA4B;CAC5B,uBAAuB;CACvB,mBAAmB;CACnB,yBAAyB;CACzB,yBAAyB;CACzB,kBAAkB;CAClB,0BAA0B;CAC3B;AAED,MAAa,eAAe;CAC1B,OAAO;EACL,gBAAgB;EAChB,eAAe;EACf,YAAY;EACZ,cAAc;EACd,QAAQ;EACR,UAAU;EACX;CACD,IAAI;EACF,WAAW;EACX,SAAS;EACT,uBAAuB;EACvB,YAAY;EACb;CACD,kBAAkB,EAChB,uBAAuB,QACxB;CACD,oDAAoD,EAClD,iBAAiB,oCAClB;CACD,IAAI;EACF,WAAW;EACX,uBAAuB;EACvB,SAAS;EACV;CACD,kBAAkB,EAChB,uBAAuB,QACxB;CACD,sBAAsB;EACpB,gBAAgB;EAChB,gBAAgB;EACjB;CACD,sBAAsB;EACpB,mBAAmB;EACnB,mBAAmB;EACpB;CACF;AAED,MAAa,cAAc;CACzB,OAAO;EACL,mBAAmB;EACnB,mBAAmB;EACpB;CACD,YAAY;EACV,eAAe;EACf,kBAAkB,GAAG,GAAG,GAAG;EAC3B,eAAe,GAAG,GAAG,GAAG;EACxB,oBAAoB,GAAG,GAAG,GAAG;EAC9B;CACD,wBAAwB,EACtB,oBAAoB,KACrB;CACD,uBAA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;EACF;CACF,EACF"}
package/dist/urls.d.ts CHANGED
@@ -1,6 +1,9 @@
1
- export declare function normalize(urlOrPath: string): string;
1
+ //#region src/urls.d.ts
2
+ declare function normalize(urlOrPath: string): string;
2
3
  /**
3
4
  * @returns if `href` is matching the given pathname
4
5
  */
5
- export declare function isActive(href: string, pathname: string, nested?: boolean): boolean;
6
+ declare function isActive(href: string, pathname: string, nested?: boolean): boolean;
7
+ //#endregion
8
+ export { isActive, normalize };
6
9
  //# sourceMappingURL=urls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"urls.d.ts","sourceRoot":"","sources":["../src/urls.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,UAI1C;AAED;;GAEG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,MAAM,UAAO,GACZ,OAAO,CAKT"}
1
+ {"version":3,"file":"urls.d.ts","names":[],"sources":["../src/urls.ts"],"sourcesContent":[],"mappings":";iBAAgB,SAAA;AAAhB;AAQA;;iBAAgB,QAAA"}
package/dist/urls.js CHANGED
@@ -1,13 +1,17 @@
1
- export function normalize(urlOrPath) {
2
- if (urlOrPath.length > 1 && urlOrPath.endsWith('/'))
3
- return urlOrPath.slice(0, -1);
4
- return urlOrPath;
1
+ //#region src/urls.ts
2
+ function normalize(urlOrPath) {
3
+ if (urlOrPath.length > 1 && urlOrPath.endsWith("/")) return urlOrPath.slice(0, -1);
4
+ return urlOrPath;
5
5
  }
6
6
  /**
7
- * @returns if `href` is matching the given pathname
8
- */
9
- export function isActive(href, pathname, nested = true) {
10
- href = normalize(href);
11
- pathname = normalize(pathname);
12
- return href === pathname || (nested && pathname.startsWith(`${href}/`));
7
+ * @returns if `href` is matching the given pathname
8
+ */
9
+ function isActive(href, pathname, nested = true) {
10
+ href = normalize(href);
11
+ pathname = normalize(pathname);
12
+ return href === pathname || nested && pathname.startsWith(`${href}/`);
13
13
  }
14
+
15
+ //#endregion
16
+ export { isActive, normalize };
17
+ //# sourceMappingURL=urls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urls.js","names":[],"sources":["../src/urls.ts"],"sourcesContent":["export function normalize(urlOrPath: string) {\n if (urlOrPath.length > 1 && urlOrPath.endsWith('/')) return urlOrPath.slice(0, -1);\n return urlOrPath;\n}\n\n/**\n * @returns if `href` is matching the given pathname\n */\nexport function isActive(href: string, pathname: string, nested = true): boolean {\n href = normalize(href);\n pathname = normalize(pathname);\n\n return href === pathname || (nested && pathname.startsWith(`${href}/`));\n}\n"],"mappings":";AAAA,SAAgB,UAAU,WAAmB;AAC3C,KAAI,UAAU,SAAS,KAAK,UAAU,SAAS,IAAI,CAAE,QAAO,UAAU,MAAM,GAAG,GAAG;AAClF,QAAO;;;;;AAMT,SAAgB,SAAS,MAAc,UAAkB,SAAS,MAAe;AAC/E,QAAO,UAAU,KAAK;AACtB,YAAW,UAAU,SAAS;AAE9B,QAAO,SAAS,YAAa,UAAU,SAAS,WAAW,GAAG,KAAK,GAAG"}
package/package.json CHANGED
@@ -1,33 +1,35 @@
1
1
  {
2
2
  "name": "@fumadocs/ui",
3
- "version": "16.4.0",
3
+ "version": "16.4.2",
4
4
  "description": "The low-level primitives for Fumadocs UI.",
5
5
  "keywords": [
6
- "Fumadocs",
7
- "Docs"
6
+ "Docs",
7
+ "Fumadocs"
8
8
  ],
9
9
  "homepage": "https://fumadocs.dev",
10
- "repository": "github:fuma-nama/fumadocs",
11
10
  "license": "MIT",
12
11
  "author": "Fuma Nama",
12
+ "repository": "github:fuma-nama/fumadocs",
13
+ "files": [
14
+ "css/*",
15
+ "dist/*"
16
+ ],
13
17
  "type": "module",
14
18
  "exports": {
15
19
  "./css/*": "./css/*",
16
20
  "./*": {
17
- "import": "./dist/*.js",
18
- "types": "./dist/*.d.ts"
21
+ "types": "./dist/*.d.ts",
22
+ "import": "./dist/*.js"
19
23
  }
20
24
  },
21
- "files": [
22
- "dist/*",
23
- "css/*"
24
- ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
25
28
  "dependencies": {
26
- "lodash.merge": "^4.6.2",
27
29
  "next-themes": "^0.4.6",
28
30
  "postcss-selector-parser": "^7.1.1",
29
31
  "tailwind-merge": "^3.4.0",
30
- "fumadocs-core": "16.4.0"
32
+ "fumadocs-core": "16.4.2"
31
33
  },
32
34
  "devDependencies": {
33
35
  "@types/bun": "^1.3.5",
@@ -36,12 +38,13 @@
36
38
  "@types/react": "^19.2.7",
37
39
  "@types/react-dom": "^19.2.3",
38
40
  "class-variance-authority": "^0.7.1",
41
+ "lodash.merge": "^4.6.2",
39
42
  "next": "16.1.1",
40
43
  "tailwindcss": "^4.1.18",
41
- "tsc-alias": "^1.8.16",
44
+ "tsdown": "^0.18.3",
45
+ "@fumadocs/cli": "1.2.1",
42
46
  "eslint-config-custom": "0.0.0",
43
- "fumadocs-core": "16.4.0",
44
- "@fumadocs/cli": "1.2.0",
47
+ "fumadocs-core": "16.4.2",
45
48
  "tsconfig": "0.0.0"
46
49
  },
47
50
  "peerDependencies": {
@@ -62,13 +65,10 @@
62
65
  "optional": true
63
66
  }
64
67
  },
65
- "publishConfig": {
66
- "access": "public"
67
- },
68
68
  "scripts": {
69
- "build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json",
69
+ "build": "tsdown",
70
70
  "clean": "rimraf dist",
71
- "dev": "concurrently \"tsc -w --project tsconfig.build.json\" \"tsc-alias -w -p tsconfig.build.json\"",
71
+ "dev": "tsdown --watch",
72
72
  "lint": "eslint .",
73
73
  "types:check": "tsc --noEmit"
74
74
  }
package/dist/cn.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../src/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/icons.d.ts DELETED
@@ -1,49 +0,0 @@
1
- /**
2
- * @license lucide-react - ISC
3
- *
4
- * All copyright belongs to https://github.com/lucide-icons/lucide, we bundle it as part of library to avoid upstream issues.
5
- */
6
- import { type ComponentProps } from 'react';
7
- type SVGElementType = 'circle' | 'ellipse' | 'g' | 'line' | 'path' | 'polygon' | 'polyline' | 'rect';
8
- export interface LucideProps extends ComponentProps<'svg'> {
9
- size?: string | number;
10
- }
11
- export type IconNode = [
12
- elementName: SVGElementType,
13
- attrs: Record<string, string>
14
- ][];
15
- export declare const ChevronDown: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
16
- export declare const Languages: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
17
- export declare const Sidebar: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18
- export declare const ChevronsUpDown: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
19
- export declare const Search: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
20
- export declare const ExternalLink: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
21
- export declare const Moon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
22
- export declare const Sun: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
23
- export declare const Airplay: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
24
- export declare const Menu: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
25
- export declare const X: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
26
- export declare const LoaderCircle: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
27
- export declare const CircleCheck: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
28
- export declare const CircleX: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
29
- export declare const Check: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
30
- export declare const TriangleAlert: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
31
- export declare const Info: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
32
- export declare const Copy: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
33
- export declare const Clipboard: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
34
- export declare const FileText: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
35
- export declare const Hash: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
36
- export declare const Text: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
37
- export declare const File: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
38
- export declare const Folder: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
39
- export declare const FolderOpen: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
40
- export declare const Star: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
41
- export declare const Link: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
42
- export declare const Edit: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
43
- export declare const ChevronRight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
44
- export declare const ChevronLeft: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
45
- export declare const Plus: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
46
- export declare const Trash2: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
47
- export declare const ChevronUp: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
48
- export {};
49
- //# sourceMappingURL=icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,cAAc,EAA6B,MAAM,OAAO,CAAC;AAcvE,KAAK,cAAc,GACf,QAAQ,GACR,SAAS,GACT,GAAG,GACH,MAAM,GACN,MAAM,GACN,SAAS,GACT,UAAU,GACV,MAAM,CAAC;AAEX,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,KAAK,CAAC;IACxD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,WAAW,EAAE,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAC9B,EAAE,CAAC;AAyBJ,eAAO,MAAM,WAAW,oHAEtB,CAAC;AAEH,eAAO,MAAM,SAAS,oHAOpB,CAAC;AAEH,eAAO,MAAM,OAAO,oHAMlB,CAAC;AAEH,eAAO,MAAM,cAAc,oHAGzB,CAAC;AAEH,eAAO,MAAM,MAAM,oHAGjB,CAAC;AAEH,eAAO,MAAM,YAAY,oHAUvB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAEf,CAAC;AAEH,eAAO,MAAM,GAAG,oHAUd,CAAC;AAEH,eAAO,MAAM,OAAO,oHASlB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAIf,CAAC;AAEH,eAAO,MAAM,CAAC,oHAGZ,CAAC;AAEH,eAAO,MAAM,YAAY,oHAEvB,CAAC;AAEH,eAAO,MAAM,WAAW,oHAGtB,CAAC;AAEH,eAAO,MAAM,OAAO,oHAIlB,CAAC;AAEH,eAAO,MAAM,KAAK,oHAEhB,CAAC;AAEH,eAAO,MAAM,aAAa,oHAUxB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAIf,CAAC;AAEH,eAAO,MAAM,IAAI,oHAoBf,CAAC;AAEH,eAAO,MAAM,SAAS,oHAoBpB,CAAC;AAEH,eAAO,MAAM,QAAQ,oHAYnB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAKf,CAAC;AAEH,eAAO,MAAM,IAAI,oHAIf,CAAC;AAEH,eAAO,MAAM,IAAI,oHASf,CAAC;AAEH,eAAO,MAAM,MAAM,oHAQjB,CAAC;AAEH,eAAO,MAAM,UAAU,oHAQrB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAQf,CAAC;AAEH,eAAO,MAAM,IAAI,oHAef,CAAC;AAEH,eAAO,MAAM,IAAI,oHAef,CAAC;AAEH,eAAO,MAAM,YAAY,oHAEvB,CAAC;AAEH,eAAO,MAAM,WAAW,oHAEtB,CAAC;AAEH,eAAO,MAAM,IAAI,oHAGf,CAAC;AAEH,eAAO,MAAM,MAAM,oHAMjB,CAAC;AAEH,eAAO,MAAM,SAAS,oHAEpB,CAAC"}
package/dist/icons.js DELETED
@@ -1,281 +0,0 @@
1
- import { jsxs as _jsxs } from "react/jsx-runtime";
2
- /**
3
- * @license lucide-react - ISC
4
- *
5
- * All copyright belongs to https://github.com/lucide-icons/lucide, we bundle it as part of library to avoid upstream issues.
6
- */
7
- import { createElement, forwardRef } from 'react';
8
- const defaultAttributes = {
9
- xmlns: 'http://www.w3.org/2000/svg',
10
- width: 24,
11
- height: 24,
12
- viewBox: '0 0 24 24',
13
- fill: 'none',
14
- stroke: 'currentColor',
15
- strokeWidth: 2,
16
- strokeLinecap: 'round',
17
- strokeLinejoin: 'round',
18
- };
19
- const createLucideIcon = (iconName, iconNode) => {
20
- const Component = forwardRef(({ size = 24, color = 'currentColor', children, ...props }, ref) => {
21
- return (_jsxs("svg", { ref: ref, ...defaultAttributes, width: size, height: size, stroke: color, ...props, children: [iconNode.map(([tag, attr]) => createElement(tag, attr)), children] }));
22
- });
23
- Component.displayName = iconName;
24
- return Component;
25
- };
26
- export const ChevronDown = createLucideIcon('chevron-down', [
27
- ['path', { d: 'm6 9 6 6 6-6', key: 'qrunsl' }],
28
- ]);
29
- export const Languages = createLucideIcon('languages', [
30
- ['path', { d: 'm5 8 6 6', key: '1wu5hv' }],
31
- ['path', { d: 'm4 14 6-6 2-3', key: '1k1g8d' }],
32
- ['path', { d: 'M2 5h12', key: 'or177f' }],
33
- ['path', { d: 'M7 2h1', key: '1t2jsx' }],
34
- ['path', { d: 'm22 22-5-10-5 10', key: 'don7ne' }],
35
- ['path', { d: 'M14 18h6', key: '1m8k6r' }],
36
- ]);
37
- export const Sidebar = createLucideIcon('panel-left', [
38
- [
39
- 'rect',
40
- { width: '18', height: '18', x: '3', y: '3', rx: '2', key: 'afitv7' },
41
- ],
42
- ['path', { d: 'M9 3v18', key: 'fh3hqa' }],
43
- ]);
44
- export const ChevronsUpDown = createLucideIcon('chevrons-up-down', [
45
- ['path', { d: 'm7 15 5 5 5-5', key: '1hf1tw' }],
46
- ['path', { d: 'm7 9 5-5 5 5', key: 'sgt6xg' }],
47
- ]);
48
- export const Search = createLucideIcon('search', [
49
- ['circle', { cx: '11', cy: '11', r: '8', key: '4ej97u' }],
50
- ['path', { d: 'm21 21-4.3-4.3', key: '1qie3q' }],
51
- ]);
52
- export const ExternalLink = createLucideIcon('external-link', [
53
- ['path', { d: 'M15 3h6v6', key: '1q9fwt' }],
54
- ['path', { d: 'M10 14 21 3', key: 'gplh6r' }],
55
- [
56
- 'path',
57
- {
58
- d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6',
59
- key: 'a6xqqp',
60
- },
61
- ],
62
- ]);
63
- export const Moon = createLucideIcon('moon', [
64
- ['path', { d: 'M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z', key: 'a7tn18' }],
65
- ]);
66
- export const Sun = createLucideIcon('sun', [
67
- ['circle', { cx: '12', cy: '12', r: '4', key: '4exip2' }],
68
- ['path', { d: 'M12 2v2', key: 'tus03m' }],
69
- ['path', { d: 'M12 20v2', key: '1lh1kg' }],
70
- ['path', { d: 'm4.93 4.93 1.41 1.41', key: '149t6j' }],
71
- ['path', { d: 'm17.66 17.66 1.41 1.41', key: 'ptbguv' }],
72
- ['path', { d: 'M2 12h2', key: '1t8f8n' }],
73
- ['path', { d: 'M20 12h2', key: '1q8mjw' }],
74
- ['path', { d: 'm6.34 17.66-1.41 1.41', key: '1m8zz5' }],
75
- ['path', { d: 'm19.07 4.93-1.41 1.41', key: '1shlcs' }],
76
- ]);
77
- export const Airplay = createLucideIcon('airplay', [
78
- [
79
- 'path',
80
- {
81
- d: 'M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1',
82
- key: 'ns4c3b',
83
- },
84
- ],
85
- ['path', { d: 'm12 15 5 6H7Z', key: '14qnn2' }],
86
- ]);
87
- export const Menu = createLucideIcon('menu', [
88
- ['line', { x1: '4', x2: '20', y1: '12', y2: '12', key: '1e0a9i' }],
89
- ['line', { x1: '4', x2: '20', y1: '6', y2: '6', key: '1owob3' }],
90
- ['line', { x1: '4', x2: '20', y1: '18', y2: '18', key: 'yk5zj1' }],
91
- ]);
92
- export const X = createLucideIcon('x', [
93
- ['path', { d: 'M18 6 6 18', key: '1bl5f8' }],
94
- ['path', { d: 'm6 6 12 12', key: 'd8bk6v' }],
95
- ]);
96
- export const LoaderCircle = createLucideIcon('loader-circle', [
97
- ['path', { d: 'M21 12a9 9 0 1 1-6.219-8.56', key: '13zald' }],
98
- ]);
99
- export const CircleCheck = createLucideIcon('circle-check', [
100
- ['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],
101
- ['path', { d: 'm9 12 2 2 4-4', key: 'dzmm74' }],
102
- ]);
103
- export const CircleX = createLucideIcon('circle-x', [
104
- ['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],
105
- ['path', { d: 'm15 9-6 6', key: '1uzhvr' }],
106
- ['path', { d: 'm9 9 6 6', key: 'z0biqf' }],
107
- ]);
108
- export const Check = createLucideIcon('check', [
109
- ['path', { d: 'M20 6 9 17l-5-5', key: '1gmf2c' }],
110
- ]);
111
- export const TriangleAlert = createLucideIcon('triangle-alert', [
112
- [
113
- 'path',
114
- {
115
- d: 'm21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3',
116
- key: 'wmoenq',
117
- },
118
- ],
119
- ['path', { d: 'M12 9v4', key: 'juzpu7' }],
120
- ['path', { d: 'M12 17h.01', key: 'p32p05' }],
121
- ]);
122
- export const Info = createLucideIcon('info', [
123
- ['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],
124
- ['path', { d: 'M12 16v-4', key: '1dtifu' }],
125
- ['path', { d: 'M12 8h.01', key: 'e9boi3' }],
126
- ]);
127
- export const Copy = createLucideIcon('copy', [
128
- [
129
- 'rect',
130
- {
131
- width: '14',
132
- height: '14',
133
- x: '8',
134
- y: '8',
135
- rx: '2',
136
- ry: '2',
137
- key: '17jyea',
138
- },
139
- ],
140
- [
141
- 'path',
142
- {
143
- d: 'M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2',
144
- key: 'zix9uf',
145
- },
146
- ],
147
- ]);
148
- export const Clipboard = createLucideIcon('clipboard', [
149
- [
150
- 'rect',
151
- {
152
- width: '8',
153
- height: '4',
154
- x: '8',
155
- y: '2',
156
- rx: '1',
157
- ry: '1',
158
- key: '1',
159
- },
160
- ],
161
- [
162
- 'path',
163
- {
164
- d: 'M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2',
165
- key: '2',
166
- },
167
- ],
168
- ]);
169
- export const FileText = createLucideIcon('file-text', [
170
- [
171
- 'path',
172
- {
173
- d: 'M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z',
174
- key: '1rqfz7',
175
- },
176
- ],
177
- ['path', { d: 'M14 2v4a2 2 0 0 0 2 2h4', key: 'tnqrlb' }],
178
- ['path', { d: 'M10 9H8', key: 'b1mrlr' }],
179
- ['path', { d: 'M16 13H8', key: 't4e002' }],
180
- ['path', { d: 'M16 17H8', key: 'z1uh3a' }],
181
- ]);
182
- export const Hash = createLucideIcon('hash', [
183
- ['line', { x1: '4', x2: '20', y1: '9', y2: '9', key: '4lhtct' }],
184
- ['line', { x1: '4', x2: '20', y1: '15', y2: '15', key: 'vyu0kd' }],
185
- ['line', { x1: '10', x2: '8', y1: '3', y2: '21', key: '1ggp8o' }],
186
- ['line', { x1: '16', x2: '14', y1: '3', y2: '21', key: 'weycgp' }],
187
- ]);
188
- export const Text = createLucideIcon('text', [
189
- ['path', { d: 'M15 18H3', key: 'olowqp' }],
190
- ['path', { d: 'M17 6H3', key: '16j9eg' }],
191
- ['path', { d: 'M21 12H3', key: '2avoz0' }],
192
- ]);
193
- export const File = createLucideIcon('file', [
194
- [
195
- 'path',
196
- {
197
- d: 'M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z',
198
- key: '1rqfz7',
199
- },
200
- ],
201
- ['path', { d: 'M14 2v4a2 2 0 0 0 2 2h4', key: 'tnqrlb' }],
202
- ]);
203
- export const Folder = createLucideIcon('folder', [
204
- [
205
- 'path',
206
- {
207
- d: 'M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z',
208
- key: '1kt360',
209
- },
210
- ],
211
- ]);
212
- export const FolderOpen = createLucideIcon('folder-open', [
213
- [
214
- 'path',
215
- {
216
- d: 'm6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2',
217
- key: 'usdka0',
218
- },
219
- ],
220
- ]);
221
- export const Star = createLucideIcon('star', [
222
- [
223
- 'path',
224
- {
225
- d: 'M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z',
226
- key: 'r04s7s',
227
- },
228
- ],
229
- ]);
230
- export const Link = createLucideIcon('link', [
231
- [
232
- 'path',
233
- {
234
- d: 'M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71',
235
- key: '1cjeqo',
236
- },
237
- ],
238
- [
239
- 'path',
240
- {
241
- d: 'M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71',
242
- key: '19qd67',
243
- },
244
- ],
245
- ]);
246
- export const Edit = createLucideIcon('square-pen', [
247
- [
248
- 'path',
249
- {
250
- d: 'M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7',
251
- key: '1m0v6g',
252
- },
253
- ],
254
- [
255
- 'path',
256
- {
257
- d: 'M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z',
258
- key: 'ohrbg2',
259
- },
260
- ],
261
- ]);
262
- export const ChevronRight = createLucideIcon('chevron-right', [
263
- ['path', { d: 'm9 18 6-6-6-6', key: 'mthhwq' }],
264
- ]);
265
- export const ChevronLeft = createLucideIcon('chevron-left', [
266
- ['path', { d: 'm15 18-6-6 6-6', key: '1wnfg3' }],
267
- ]);
268
- export const Plus = createLucideIcon('plus', [
269
- ['path', { d: 'M5 12h14', key: '1ays0h' }],
270
- ['path', { d: 'M12 5v14', key: 's699le' }],
271
- ]);
272
- export const Trash2 = createLucideIcon('trash-2', [
273
- ['path', { d: 'M3 6h18', key: 'd0wm0j' }],
274
- ['path', { d: 'M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6', key: '4alrt4' }],
275
- ['path', { d: 'M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2', key: 'v07s0e' }],
276
- ['line', { x1: '10', x2: '10', y1: '11', y2: '17', key: '1uufr5' }],
277
- ['line', { x1: '14', x2: '14', y1: '11', y2: '17', key: 'xtxkd' }],
278
- ]);
279
- export const ChevronUp = createLucideIcon('chevron-up', [
280
- ['path', { d: 'm18 15-6-6-6 6', key: '153udz' }],
281
- ]);