@dust-tt/sparkle 0.2.207 → 0.2.210-rc

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 (140) hide show
  1. package/dist/cjs/_index.d.ts +4 -4
  2. package/dist/cjs/components/Checkbox.d.ts +3 -3
  3. package/dist/cjs/components/DataTable.d.ts +6 -2
  4. package/dist/cjs/components/Tree.d.ts +9 -6
  5. package/dist/cjs/components/WindowUtility.d.ts +15 -0
  6. package/dist/cjs/icons/solid/ArrowDownS.d.ts +4 -0
  7. package/dist/cjs/icons/solid/ArrowLeftS.d.ts +4 -0
  8. package/dist/cjs/icons/solid/ArrowRightS.d.ts +4 -0
  9. package/dist/cjs/icons/solid/ArrowUpS.d.ts +4 -0
  10. package/dist/cjs/icons/solid/ChevronDoubleLeft.d.ts +4 -0
  11. package/dist/cjs/icons/solid/ChevronDoubleRight.d.ts +4 -0
  12. package/dist/cjs/icons/solid/Company.d.ts +4 -0
  13. package/dist/cjs/icons/solid/Filter.d.ts +4 -0
  14. package/dist/cjs/icons/solid/Heart.d.ts +4 -0
  15. package/dist/cjs/icons/solid/History.d.ts +4 -0
  16. package/dist/cjs/icons/solid/Home.d.ts +4 -0
  17. package/dist/cjs/icons/solid/MarkPen.d.ts +4 -0
  18. package/dist/cjs/icons/solid/Translate.d.ts +4 -0
  19. package/dist/cjs/icons/solid/index.d.ts +13 -0
  20. package/dist/cjs/icons/stroke/ArrowDownS.d.ts +4 -0
  21. package/dist/cjs/icons/stroke/ArrowLeftS.d.ts +4 -0
  22. package/dist/cjs/icons/stroke/ArrowRightS.d.ts +4 -0
  23. package/dist/cjs/icons/stroke/ArrowUpS.d.ts +4 -0
  24. package/dist/cjs/icons/stroke/ChevronDoubleLeft.d.ts +4 -0
  25. package/dist/cjs/icons/stroke/ChevronDoubleRight.d.ts +4 -0
  26. package/dist/cjs/icons/stroke/Company.d.ts +4 -0
  27. package/dist/cjs/icons/stroke/Filter.d.ts +4 -0
  28. package/dist/cjs/icons/stroke/Heart.d.ts +4 -0
  29. package/dist/cjs/icons/stroke/History.d.ts +4 -0
  30. package/dist/cjs/icons/stroke/Home.d.ts +4 -0
  31. package/dist/cjs/icons/stroke/MarkPen.d.ts +4 -0
  32. package/dist/cjs/icons/stroke/Translate.d.ts +4 -0
  33. package/dist/cjs/icons/stroke/index.d.ts +13 -0
  34. package/dist/cjs/index.js +283 -65
  35. package/dist/cjs/index.js.map +1 -1
  36. package/dist/cjs/stories/Checkbox.stories.d.ts +2 -0
  37. package/dist/cjs/stories/Tree.stories.d.ts +0 -1
  38. package/dist/esm/_index.d.ts +4 -4
  39. package/dist/esm/components/Checkbox.d.ts +3 -3
  40. package/dist/esm/components/DataTable.d.ts +6 -2
  41. package/dist/esm/components/Tree.d.ts +9 -6
  42. package/dist/esm/components/WindowUtility.d.ts +15 -0
  43. package/dist/esm/icons/solid/ArrowDownS.d.ts +4 -0
  44. package/dist/esm/icons/solid/ArrowLeftS.d.ts +4 -0
  45. package/dist/esm/icons/solid/ArrowRightS.d.ts +4 -0
  46. package/dist/esm/icons/solid/ArrowUpS.d.ts +4 -0
  47. package/dist/esm/icons/solid/ChevronDoubleLeft.d.ts +4 -0
  48. package/dist/esm/icons/solid/ChevronDoubleRight.d.ts +4 -0
  49. package/dist/esm/icons/solid/Company.d.ts +4 -0
  50. package/dist/esm/icons/solid/Filter.d.ts +4 -0
  51. package/dist/esm/icons/solid/Heart.d.ts +4 -0
  52. package/dist/esm/icons/solid/History.d.ts +4 -0
  53. package/dist/esm/icons/solid/Home.d.ts +4 -0
  54. package/dist/esm/icons/solid/MarkPen.d.ts +4 -0
  55. package/dist/esm/icons/solid/Translate.d.ts +4 -0
  56. package/dist/esm/icons/solid/index.d.ts +13 -0
  57. package/dist/esm/icons/stroke/ArrowDownS.d.ts +4 -0
  58. package/dist/esm/icons/stroke/ArrowLeftS.d.ts +4 -0
  59. package/dist/esm/icons/stroke/ArrowRightS.d.ts +4 -0
  60. package/dist/esm/icons/stroke/ArrowUpS.d.ts +4 -0
  61. package/dist/esm/icons/stroke/ChevronDoubleLeft.d.ts +4 -0
  62. package/dist/esm/icons/stroke/ChevronDoubleRight.d.ts +4 -0
  63. package/dist/esm/icons/stroke/Company.d.ts +4 -0
  64. package/dist/esm/icons/stroke/Filter.d.ts +4 -0
  65. package/dist/esm/icons/stroke/Heart.d.ts +4 -0
  66. package/dist/esm/icons/stroke/History.d.ts +4 -0
  67. package/dist/esm/icons/stroke/Home.d.ts +4 -0
  68. package/dist/esm/icons/stroke/MarkPen.d.ts +4 -0
  69. package/dist/esm/icons/stroke/Translate.d.ts +4 -0
  70. package/dist/esm/icons/stroke/index.d.ts +13 -0
  71. package/dist/esm/index.js +258 -66
  72. package/dist/esm/index.js.map +1 -1
  73. package/dist/esm/stories/Checkbox.stories.d.ts +2 -0
  74. package/dist/esm/stories/Tree.stories.d.ts +0 -1
  75. package/dist/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +1 -1
  77. package/src/_index.ts +52 -0
  78. package/src/components/Checkbox.tsx +42 -12
  79. package/src/components/DataTable.tsx +125 -91
  80. package/src/components/Tree.tsx +71 -66
  81. package/src/components/WindowUtility.tsx +67 -0
  82. package/src/icons/solid/ArrowDownS.tsx +15 -0
  83. package/src/icons/solid/ArrowLeftS.tsx +15 -0
  84. package/src/icons/solid/ArrowRightS.tsx +15 -0
  85. package/src/icons/solid/ArrowUpS.tsx +15 -0
  86. package/src/icons/solid/ChevronDoubleLeft.tsx +22 -0
  87. package/src/icons/solid/ChevronDoubleRight.tsx +22 -0
  88. package/src/icons/solid/Company.tsx +20 -0
  89. package/src/icons/solid/Filter.tsx +18 -0
  90. package/src/icons/solid/Heart.tsx +18 -0
  91. package/src/icons/solid/History.tsx +18 -0
  92. package/src/icons/solid/Home.tsx +20 -0
  93. package/src/icons/solid/MarkPen.tsx +18 -0
  94. package/src/icons/solid/Translate.tsx +18 -0
  95. package/src/icons/solid/index.ts +14 -0
  96. package/src/icons/src/solid/arrow-down-s.svg +3 -0
  97. package/src/icons/src/solid/arrow-left-s.svg +3 -0
  98. package/src/icons/src/solid/arrow-right-s.svg +3 -0
  99. package/src/icons/src/solid/arrow-up-s.svg +3 -0
  100. package/src/icons/src/solid/chevron-double-left.svg +4 -0
  101. package/src/icons/src/solid/chevron-double-right.svg +4 -0
  102. package/src/icons/src/solid/company.svg +3 -0
  103. package/src/icons/src/solid/filter.svg +3 -0
  104. package/src/icons/src/solid/heart.svg +3 -0
  105. package/src/icons/src/solid/history.svg +3 -0
  106. package/src/icons/src/solid/home.svg +3 -0
  107. package/src/icons/src/solid/mark-pen.svg +3 -0
  108. package/src/icons/src/solid/translate.svg +3 -0
  109. package/src/icons/src/stroke/arrow-down-s.svg +3 -0
  110. package/src/icons/src/stroke/arrow-left-s.svg +3 -0
  111. package/src/icons/src/stroke/arrow-right-s.svg +3 -0
  112. package/src/icons/src/stroke/arrow-up-s.svg +3 -0
  113. package/src/icons/src/stroke/chevron-double-left.svg +4 -0
  114. package/src/icons/src/stroke/chevron-double-right.svg +4 -0
  115. package/src/icons/src/stroke/company.svg +9 -0
  116. package/src/icons/src/stroke/filter.svg +3 -0
  117. package/src/icons/src/stroke/heart.svg +3 -0
  118. package/src/icons/src/stroke/history.svg +3 -0
  119. package/src/icons/src/stroke/home.svg +3 -0
  120. package/src/icons/src/stroke/mark-pen.svg +3 -0
  121. package/src/icons/src/stroke/translate.svg +3 -0
  122. package/src/icons/stroke/ArrowDownS.tsx +15 -0
  123. package/src/icons/stroke/ArrowLeftS.tsx +15 -0
  124. package/src/icons/stroke/ArrowRightS.tsx +15 -0
  125. package/src/icons/stroke/ArrowUpS.tsx +15 -0
  126. package/src/icons/stroke/ChevronDoubleLeft.tsx +16 -0
  127. package/src/icons/stroke/ChevronDoubleRight.tsx +16 -0
  128. package/src/icons/stroke/Company.tsx +24 -0
  129. package/src/icons/stroke/Filter.tsx +15 -0
  130. package/src/icons/stroke/Heart.tsx +20 -0
  131. package/src/icons/stroke/History.tsx +18 -0
  132. package/src/icons/stroke/Home.tsx +20 -0
  133. package/src/icons/stroke/MarkPen.tsx +18 -0
  134. package/src/icons/stroke/Translate.tsx +18 -0
  135. package/src/icons/stroke/index.ts +13 -0
  136. package/src/logo/src/platforms/Zendesk.svg +6 -0
  137. package/src/stories/Checkbox.stories.tsx +63 -2
  138. package/src/stories/Citation.stories.tsx +1 -0
  139. package/src/stories/DataTable.stories.tsx +14 -6
  140. package/src/stories/Tree.stories.tsx +152 -189
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4 12V21H20V12H23L12 2L1 12H4ZM18 19V12H6V19H18Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M15.9498 2.39019L21.6066 8.04704C21.9972 8.43757 21.9972 9.07073 21.6066 9.46126L13.8285 17.2394L11.7071 17.9465L10.2929 19.3607C9.90241 19.7513 9.26925 19.7513 8.87872 19.3607L4.63608 15.1181C4.24556 14.7276 4.24556 14.0944 4.63608 13.7039L6.0503 12.2897L6.7574 10.1683L14.5356 2.39019C14.9261 1.99966 15.5593 1.99966 15.9498 2.39019ZM16.6569 5.92572L10.2929 12.2897L11.7071 13.7039L18.0711 7.33994L16.6569 5.92572ZM4.28253 16.8859L7.11096 19.7143L5.69674 21.1285L1.4541 19.7143L4.28253 16.8859Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.5 10L22.9 21H20.745L19.544 18H15.454L14.255 21H12.101L16.5 10H18.5ZM10 2V4H16V6L14.0322 6.0006C13.2425 8.36616 11.9988 10.5057 10.4115 12.301C11.1344 12.9457 11.917 13.5176 12.7475 14.0079L11.9969 15.8855C10.9237 15.2781 9.91944 14.5524 8.99961 13.7249C7.21403 15.332 5.10914 16.5553 2.79891 17.2734L2.26257 15.3442C4.2385 14.7203 6.04543 13.6737 7.59042 12.3021C6.46277 11.0281 5.50873 9.57985 4.76742 8.00028L7.00684 8.00037C7.57018 9.03885 8.23979 10.0033 8.99967 10.877C10.2283 9.46508 11.2205 7.81616 11.9095 6.00101L2 6V4H8V2H10ZM17.5 12.8852L16.253 16H18.745L17.5 12.8852Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 16L6 10H18L12 16Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8 12L14 6V18L8 12Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M16 12L10 18V6L16 12Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 8L18 14H6L12 8Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M11.9999 17L6.9999 12L11.9999 6.99995L10.4999 5.49995L4 11.9997L10.4999 18.5L11.9999 17Z" fill="#020617"/>
3
+ <path d="M18.9998 17L13.9998 12L18.9998 6.99995L17.4998 5.49995L10.9999 11.9997L17.4998 18.5L18.9998 17Z" fill="#020617"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 6.99995L17 12L12 17L13.5 18.5L19.9999 12.0003L13.5 5.49995L12 6.99995Z" fill="#020617"/>
3
+ <path d="M5.00004 6.99995L10 12L5.00004 17L6.50004 18.5L12.9999 12.0003L6.50004 5.49995L5.00004 6.99995Z" fill="#020617"/>
4
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8 6H11V8H8V6Z" fill="#020617"/>
3
+ <path d="M8 10H11V12H8V10Z" fill="#020617"/>
4
+ <path d="M8 14H11V16H8V14Z" fill="#020617"/>
5
+ <path d="M13 14H16V16H13V14Z" fill="#020617"/>
6
+ <path d="M13 10H16V12H13V10Z" fill="#020617"/>
7
+ <path d="M13 6H16V8H13V6Z" fill="#020617"/>
8
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M23 21H20V2H4V21H1V23H23V21ZM18 4V21L16 21V18H12V21H10V18H8V21L6 21V4H18Z" fill="#020617"/>
9
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M3 5H21V7H3V5ZM6 11H18V13H6V11ZM9 17H15V19H9V17Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M18.8269 6.17009C17.3215 4.66153 14.9009 4.61309 13.337 6.01687L12.0019 7.21524L10.6661 6.01781C9.09682 4.6112 6.68058 4.66256 5.17157 6.17157C3.67624 7.66691 3.61224 10.0532 4.97994 11.6232L11.9999 18.6543L19.0201 11.6232C20.3873 10.0538 20.3258 7.67203 18.8269 6.17009ZM20.4786 12.993L11.9999 21.485L3.52138 12.993C1.41705 10.637 1.49571 7.01901 3.75736 4.75736C6.02157 2.49315 9.64519 2.41687 12.001 4.52853C14.35 2.42 17.98 2.49 20.2426 4.75736C22.5053 7.02472 22.583 10.637 20.4786 12.993Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4 12V21H20V12H23L12 2L1 12H4ZM18 12V19H6V12H18ZM17.8269 10L12 4.70285L6.17314 10H17.8269Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M15.2427 4.51151L8.50547 11.2487L7.79836 13.37L6.7574 14.411L9.58583 17.2394L10.6268 16.1985L12.7481 15.4913L19.4853 8.75415L15.2427 4.51151ZM21.6066 8.04704C21.9972 8.43757 21.9972 9.07073 21.6066 9.46126L13.8285 17.2394L11.7071 17.9465L10.2929 19.3607C9.90241 19.7513 9.26925 19.7513 8.87872 19.3607L4.63608 15.1181C4.24556 14.7276 4.24556 14.0944 4.63608 13.7039L6.0503 12.2897L6.7574 10.1683L14.5356 2.39019C14.9261 1.99966 15.5593 1.99966 15.9498 2.39019L21.6066 8.04704ZM15.2427 7.33994L16.6569 8.75415L11.7071 13.7039L10.2929 12.2897L15.2427 7.33994ZM4.28253 16.8859L7.11096 19.7143L5.69674 21.1285L1.4541 19.7143L4.28253 16.8859Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.5 10L22.9 21H20.745L19.544 18H15.454L14.255 21H12.101L16.5 10H18.5ZM10 2V4H16V6L14.0322 6.0006C13.2425 8.36616 11.9988 10.5057 10.4115 12.301C11.1344 12.9457 11.917 13.5176 12.7475 14.0079L11.9969 15.8855C10.9237 15.2781 9.91944 14.5524 8.99961 13.7249C7.21403 15.332 5.10914 16.5553 2.79891 17.2734L2.26257 15.3442C4.2385 14.7203 6.04543 13.6737 7.59042 12.3021C6.46277 11.0281 5.50873 9.57985 4.76742 8.00028L7.00684 8.00037C7.57018 9.03885 8.23979 10.0033 8.99967 10.877C10.2283 9.46508 11.2205 7.81616 11.9095 6.00101L2 6V4H8V2H10ZM17.5 12.8852L16.253 16H18.745L17.5 12.8852Z" fill="#020617"/>
3
+ </svg>
@@ -0,0 +1,15 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgArrowDownS = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path fill="currentColor" d="m12 16-6-6h12l-6 6Z" />
13
+ </svg>
14
+ );
15
+ export default SvgArrowDownS;
@@ -0,0 +1,15 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgArrowLeftS = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path fill="currentColor" d="m8 12 6-6v12l-6-6Z" />
13
+ </svg>
14
+ );
15
+ export default SvgArrowLeftS;
@@ -0,0 +1,15 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgArrowRightS = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path fill="currentColor" d="m16 12-6 6V6l6 6Z" />
13
+ </svg>
14
+ );
15
+ export default SvgArrowRightS;
@@ -0,0 +1,15 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgArrowUpS = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path fill="currentColor" d="m12 8 6 6H6l6-6Z" />
13
+ </svg>
14
+ );
15
+ export default SvgArrowUpS;
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgChevronDoubleLeft = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path fill="currentColor" d="m12 17-5-5 5-5-1.5-1.5L4 12l6.5 6.5L12 17Z" />
13
+ <path fill="currentColor" d="m19 17-5-5 5-5-1.5-1.5L11 12l6.5 6.5L19 17Z" />
14
+ </svg>
15
+ );
16
+ export default SvgChevronDoubleLeft;
@@ -0,0 +1,16 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgChevronDoubleRight = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path fill="currentColor" d="m12 7 5 5-5 5 1.5 1.5L20 12l-6.5-6.5L12 7Z" />
13
+ <path fill="currentColor" d="m5 7 5 5-5 5 1.5 1.5L13 12 6.5 5.5 5 7Z" />
14
+ </svg>
15
+ );
16
+ export default SvgChevronDoubleRight;
@@ -0,0 +1,24 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgCompany = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ d="M8 6h3v2H8V6ZM8 10h3v2H8v-2ZM8 14h3v2H8v-2ZM13 14h3v2h-3v-2ZM13 10h3v2h-3v-2ZM13 6h3v2h-3V6Z"
15
+ />
16
+ <path
17
+ fill="currentColor"
18
+ fillRule="evenodd"
19
+ d="M23 21h-3V2H4v19H1v2h22v-2ZM18 4v17h-2v-3h-4v3h-2v-3H8v3H6V4h12Z"
20
+ clipRule="evenodd"
21
+ />
22
+ </svg>
23
+ );
24
+ export default SvgCompany;
@@ -0,0 +1,15 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgFilter = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path fill="currentColor" d="M3 5h18v2H3V5Zm3 6h12v2H6v-2Zm3 6h6v2H9v-2Z" />
13
+ </svg>
14
+ );
15
+ export default SvgFilter;
@@ -0,0 +1,20 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgHeart = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ fillRule="evenodd"
15
+ d="M18.827 6.17a3.998 3.998 0 0 0-5.49-.153l-1.335 1.198-1.336-1.197a4 4 0 0 0-5.686 5.605L12 18.654l7.02-7.03a4 4 0 0 0-.193-5.454Zm1.652 6.823-8.48 8.492-8.478-8.492a6 6 0 0 1 8.48-8.464 5.998 5.998 0 0 1 8.242.228 6 6 0 0 1 .236 8.236Z"
16
+ clipRule="evenodd"
17
+ />
18
+ </svg>
19
+ );
20
+ export default SvgHeart;
@@ -0,0 +1,18 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgHistory = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12h2a8 8 0 1 0 1.385-4.5H8v2H2v-6h2V6a9.985 9.985 0 0 1 8-4Zm1 5v4.585l3.243 3.243-1.415 1.415L11 12.413V7h2Z"
15
+ />
16
+ </svg>
17
+ );
18
+ export default SvgHistory;
@@ -0,0 +1,20 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgHome = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ fillRule="evenodd"
15
+ d="M4 12v9h16v-9h3L12 2 1 12h3Zm14 0v7H6v-7h12Zm-.173-2L12 4.703 6.173 10h11.654Z"
16
+ clipRule="evenodd"
17
+ />
18
+ </svg>
19
+ );
20
+ export default SvgHome;
@@ -0,0 +1,18 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgMarkPen = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ d="m15.243 4.512-6.738 6.737-.707 2.121-1.04 1.041 2.828 2.828 1.04-1.04 2.122-.708 6.737-6.737-4.242-4.242Zm6.364 3.535a1 1 0 0 1 0 1.414l-7.778 7.778-2.122.707-1.414 1.415a1 1 0 0 1-1.414 0l-4.243-4.243a1 1 0 0 1 0-1.414L6.05 12.29l.707-2.122 7.779-7.778a1 1 0 0 1 1.414 0l5.657 5.657Zm-6.364-.707 1.414 1.414-4.95 4.95-1.414-1.414 4.95-4.95Zm-10.96 9.546 2.828 2.828-1.414 1.415-4.243-1.415 2.829-2.828Z"
15
+ />
16
+ </svg>
17
+ );
18
+ export default SvgMarkPen;
@@ -0,0 +1,18 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ const SvgTranslate = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width="1em"
7
+ height="1em"
8
+ fill="none"
9
+ viewBox="0 0 24 24"
10
+ {...props}
11
+ >
12
+ <path
13
+ fill="currentColor"
14
+ d="m18.5 10 4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2ZM10 2v2h6v2h-1.968a18.221 18.221 0 0 1-3.62 6.301 14.865 14.865 0 0 0 2.335 1.707l-.75 1.878A17.016 17.016 0 0 1 9 13.725a16.677 16.677 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.031 16.031 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2Zm7.5 10.885L16.253 16h2.492L17.5 12.885Z"
15
+ />
16
+ </svg>
17
+ );
18
+ export default SvgTranslate;
@@ -1,11 +1,15 @@
1
1
  export { default as ArrowDown } from "./ArrowDown";
2
2
  export { default as ArrowDownCircle } from "./ArrowDownCircle";
3
3
  export { default as ArrowDownOnSquare } from "./ArrowDownOnSquare";
4
+ export { default as ArrowDownS } from "./ArrowDownS";
4
5
  export { default as ArrowLeft } from "./ArrowLeft";
6
+ export { default as ArrowLeftS } from "./ArrowLeftS";
5
7
  export { default as ArrowPath } from "./ArrowPath";
6
8
  export { default as ArrowRight } from "./ArrowRight";
9
+ export { default as ArrowRightS } from "./ArrowRightS";
7
10
  export { default as ArrowUp } from "./ArrowUp";
8
11
  export { default as ArrowUpOnSquare } from "./ArrowUpOnSquare";
12
+ export { default as ArrowUpS } from "./ArrowUpS";
9
13
  export { default as Attachment } from "./Attachment";
10
14
  export { default as Backspace } from "./Backspace";
11
15
  export { default as Bookmark } from "./Bookmark";
@@ -18,6 +22,8 @@ export { default as ChatBubbleLeftRight } from "./ChatBubbleLeftRight";
18
22
  export { default as ChatBubbleThought } from "./ChatBubbleThought";
19
23
  export { default as Check } from "./Check";
20
24
  export { default as CheckCircle } from "./CheckCircle";
25
+ export { default as ChevronDoubleLeft } from "./ChevronDoubleLeft";
26
+ export { default as ChevronDoubleRight } from "./ChevronDoubleRight";
21
27
  export { default as ChevronDown } from "./ChevronDown";
22
28
  export { default as ChevronLeft } from "./ChevronLeft";
23
29
  export { default as ChevronRight } from "./ChevronRight";
@@ -34,6 +40,7 @@ export { default as CloudX } from "./CloudX";
34
40
  export { default as Cog6Tooth } from "./Cog6Tooth";
35
41
  export { default as Command } from "./Command";
36
42
  export { default as CommandLine } from "./CommandLine";
43
+ export { default as Company } from "./Company";
37
44
  export { default as Cube } from "./Cube";
38
45
  export { default as Dash } from "./Dash";
39
46
  export { default as Document } from "./Document";
@@ -48,6 +55,7 @@ export { default as ExclamationCircle } from "./ExclamationCircle";
48
55
  export { default as ExternalLink } from "./ExternalLink";
49
56
  export { default as Eye } from "./Eye";
50
57
  export { default as EyeSlash } from "./EyeSlash";
58
+ export { default as Filter } from "./Filter";
51
59
  export { default as Fire } from "./Fire";
52
60
  export { default as Flag } from "./Flag";
53
61
  export { default as Folder } from "./Folder";
@@ -58,8 +66,11 @@ export { default as GlobeAlt } from "./GlobeAlt";
58
66
  export { default as Grab } from "./Grab";
59
67
  export { default as HandThumbDown } from "./HandThumbDown";
60
68
  export { default as HandThumbUp } from "./HandThumbUp";
69
+ export { default as Heart } from "./Heart";
61
70
  export { default as HeartAlt } from "./HeartAlt";
62
71
  export { default as Hexagon } from "./Hexagon";
72
+ export { default as History } from "./History";
73
+ export { default as Home } from "./Home";
63
74
  export { default as Image } from "./Image";
64
75
  export { default as InformationCircle } from "./InformationCircle";
65
76
  export { default as Key } from "./Key";
@@ -74,6 +85,7 @@ export { default as Login } from "./Login";
74
85
  export { default as Logout } from "./Logout";
75
86
  export { default as Magic } from "./Magic";
76
87
  export { default as MagnifyingGlass } from "./MagnifyingGlass";
88
+ export { default as MarkPen } from "./MarkPen";
77
89
  export { default as Menu } from "./Menu";
78
90
  export { default as More } from "./More";
79
91
  export { default as MovingMail } from "./MovingMail";
@@ -106,6 +118,7 @@ export { default as Tag } from "./Tag";
106
118
  export { default as Template } from "./Template";
107
119
  export { default as TestTube } from "./TestTube";
108
120
  export { default as Time } from "./Time";
121
+ export { default as Translate } from "./Translate";
109
122
  export { default as Trash } from "./Trash";
110
123
  export { default as Triangle } from "./Triangle";
111
124
  export { default as User } from "./User";
@@ -0,0 +1,6 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13 4L13 16L23 4L13 4Z" fill="#03363D"/>
3
+ <path d="M6 9C3.23858 9 1 6.76142 1 4H11C11 6.76142 8.76142 9 6 9Z" fill="#03363D"/>
4
+ <path d="M18 15C20.7614 15 23 17.2386 23 20H13C13 17.2386 15.2386 15 18 15Z" fill="#03363D"/>
5
+ <path d="M11 8V20H1L11 8Z" fill="#03363D"/>
6
+ </svg>
@@ -1,4 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
+ import React from "react";
2
3
 
3
4
  import { Checkbox } from "../index_with_tw_base";
4
5
 
@@ -9,6 +10,67 @@ const meta = {
9
10
 
10
11
  export default meta;
11
12
  type Story = StoryObj<typeof meta>;
13
+ export const CheckBoxExample = () => {
14
+ // No-op function for onChange
15
+ const handleChange = () => {
16
+ // This function intentionally left blank
17
+ };
18
+
19
+ return (
20
+ <div className="s-flex s-flex-col s-gap-10">
21
+ SM
22
+ <div className="s-flex s-gap-10">
23
+ Selectable
24
+ <Checkbox variant="selectable" onChange={handleChange} />
25
+ <Checkbox checked variant="selectable" onChange={handleChange} />
26
+ <Checkbox
27
+ checked="partial"
28
+ variant="selectable"
29
+ onChange={handleChange}
30
+ />
31
+ Checkable
32
+ <Checkbox variant="checkable" onChange={handleChange} />
33
+ <Checkbox checked variant="checkable" onChange={handleChange} />
34
+ <Checkbox
35
+ checked="partial"
36
+ variant="checkable"
37
+ onChange={handleChange}
38
+ />
39
+ </div>
40
+ XS
41
+ <div className="s-flex s-gap-10">
42
+ Selectable
43
+ <Checkbox size="xs" variant="selectable" onChange={handleChange} />
44
+ <Checkbox
45
+ size="xs"
46
+ checked
47
+ variant="selectable"
48
+ onChange={handleChange}
49
+ />
50
+ <Checkbox
51
+ size="xs"
52
+ checked="partial"
53
+ variant="selectable"
54
+ onChange={handleChange}
55
+ />
56
+ Checkable
57
+ <Checkbox size="xs" variant="checkable" onChange={handleChange} />
58
+ <Checkbox
59
+ size="xs"
60
+ checked
61
+ variant="checkable"
62
+ onChange={handleChange}
63
+ />
64
+ <Checkbox
65
+ size="xs"
66
+ checked="partial"
67
+ variant="checkable"
68
+ onChange={handleChange}
69
+ />
70
+ </div>
71
+ </div>
72
+ );
73
+ };
12
74
 
13
75
  export const Selectable: Story = {
14
76
  args: {
@@ -32,8 +94,7 @@ export const Unchecked: Story = {
32
94
 
33
95
  export const PartialChecked: Story = {
34
96
  args: {
35
- checked: false,
36
- partialChecked: true,
97
+ checked: "partial",
37
98
  variant: "checkable",
38
99
  },
39
100
  };
@@ -201,6 +201,7 @@ export const CitationsExample = () => (
201
201
  <h2>With zoom effect</h2>
202
202
  <div className="s-flex s-gap-2">
203
203
  <ZoomableImageCitationWrapper
204
+ size="sm"
204
205
  title="With imgSrc"
205
206
  // size="xs"
206
207
  imgSrc="https://dust.tt/static/droidavatar/Droid_Black_4.jpg"
@@ -82,42 +82,50 @@ export const DataTableExample = () => {
82
82
  accessorKey: "name",
83
83
  header: "Name",
84
84
  cell: (info) => (
85
- <DataTable.Cell
85
+ <DataTable.CellContent
86
86
  avatarUrl={info.row.original.avatarUrl}
87
87
  icon={info.row.original.icon}
88
88
  description={info.row.original.description}
89
89
  roundedAvatar={info.row.original.roundedAvatar}
90
90
  >
91
91
  {info.row.original.name}
92
- </DataTable.Cell>
92
+ </DataTable.CellContent>
93
93
  ),
94
94
  },
95
95
  {
96
96
  accessorKey: "usedBy",
97
97
  header: "Used by",
98
98
  cell: (info) => (
99
- <DataTable.Cell>{info.row.original.usedBy}</DataTable.Cell>
99
+ <DataTable.CellContent>
100
+ {info.row.original.usedBy}
101
+ </DataTable.CellContent>
100
102
  ),
101
103
  },
102
104
  {
103
105
  accessorKey: "addedBy",
104
106
  header: "Added by",
105
107
  cell: (info) => (
106
- <DataTable.Cell>{info.row.original.addedBy}</DataTable.Cell>
108
+ <DataTable.CellContent>
109
+ {info.row.original.addedBy}
110
+ </DataTable.CellContent>
107
111
  ),
108
112
  },
109
113
  {
110
114
  accessorKey: "lastUpdated",
111
115
  header: "Last updated",
112
116
  cell: (info) => (
113
- <DataTable.Cell>{info.row.original.lastUpdated}</DataTable.Cell>
117
+ <DataTable.CellContent>
118
+ {info.row.original.lastUpdated}
119
+ </DataTable.CellContent>
114
120
  ),
115
121
  enableSorting: false,
116
122
  },
117
123
  {
118
124
  accessorKey: "size",
119
125
  header: "Size",
120
- cell: (info) => <DataTable.Cell>{info.row.original.size}</DataTable.Cell>,
126
+ cell: (info) => (
127
+ <DataTable.CellContent>{info.row.original.size}</DataTable.CellContent>
128
+ ),
121
129
  },
122
130
  ];
123
131