@a-type/ui 1.7.7 → 1.7.9

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 (79) hide show
  1. package/dist/cjs/components/actions/ActionButton.js +1 -1
  2. package/dist/cjs/components/actions/ActionButton.js.map +1 -1
  3. package/dist/cjs/components/avatar/Avatar.js +1 -1
  4. package/dist/cjs/components/avatar/Avatar.js.map +1 -1
  5. package/dist/cjs/components/contextMenu/contextMenu.js +3 -3
  6. package/dist/cjs/components/contextMenu/contextMenu.js.map +1 -1
  7. package/dist/cjs/components/dialog/Dialog.js +1 -1
  8. package/dist/cjs/components/dialog/Dialog.js.map +1 -1
  9. package/dist/cjs/components/dropdownMenu/DropdownMenu.js +1 -1
  10. package/dist/cjs/components/dropdownMenu/DropdownMenu.js.map +1 -1
  11. package/dist/cjs/components/icon/generated/IconSpritesheet.js +1 -1
  12. package/dist/cjs/components/icon/generated/IconSpritesheet.js.map +1 -1
  13. package/dist/cjs/components/icon/generated/iconNames.d.ts +1 -1
  14. package/dist/cjs/components/icon/generated/iconNames.js +19 -0
  15. package/dist/cjs/components/icon/generated/iconNames.js.map +1 -1
  16. package/dist/cjs/components/peek/Peek.js +1 -1
  17. package/dist/cjs/components/peek/Peek.js.map +1 -1
  18. package/dist/cjs/components/select/Select.js +4 -4
  19. package/dist/cjs/components/select/Select.js.map +1 -1
  20. package/dist/cjs/components/skeletons/skeletons.js +1 -1
  21. package/dist/cjs/components/skeletons/skeletons.js.map +1 -1
  22. package/dist/cjs/components/toggleGroup/toggleGroup.js +2 -2
  23. package/dist/cjs/components/toggleGroup/toggleGroup.js.map +1 -1
  24. package/dist/cjs/components/typography/typography.js +1 -1
  25. package/dist/cjs/components/typography/typography.js.map +1 -1
  26. package/dist/cjs/hooks/useVisualViewportOffset.js +2 -2
  27. package/dist/cjs/hooks/useVisualViewportOffset.js.map +1 -1
  28. package/dist/cjs/themes.stories.js +2 -2
  29. package/dist/cjs/themes.stories.js.map +1 -1
  30. package/dist/cjs/uno.preset.js +6 -6
  31. package/dist/cjs/uno.preset.js.map +1 -1
  32. package/dist/css/main.css +6 -6
  33. package/dist/esm/components/actions/ActionButton.js +1 -1
  34. package/dist/esm/components/actions/ActionButton.js.map +1 -1
  35. package/dist/esm/components/avatar/Avatar.js +1 -1
  36. package/dist/esm/components/avatar/Avatar.js.map +1 -1
  37. package/dist/esm/components/contextMenu/contextMenu.js +3 -3
  38. package/dist/esm/components/contextMenu/contextMenu.js.map +1 -1
  39. package/dist/esm/components/dialog/Dialog.js +1 -1
  40. package/dist/esm/components/dialog/Dialog.js.map +1 -1
  41. package/dist/esm/components/dropdownMenu/DropdownMenu.js +1 -1
  42. package/dist/esm/components/dropdownMenu/DropdownMenu.js.map +1 -1
  43. package/dist/esm/components/icon/generated/IconSpritesheet.js +1 -1
  44. package/dist/esm/components/icon/generated/IconSpritesheet.js.map +1 -1
  45. package/dist/esm/components/icon/generated/iconNames.d.ts +1 -1
  46. package/dist/esm/components/icon/generated/iconNames.js +19 -0
  47. package/dist/esm/components/icon/generated/iconNames.js.map +1 -1
  48. package/dist/esm/components/peek/Peek.js +1 -1
  49. package/dist/esm/components/peek/Peek.js.map +1 -1
  50. package/dist/esm/components/select/Select.js +4 -4
  51. package/dist/esm/components/select/Select.js.map +1 -1
  52. package/dist/esm/components/skeletons/skeletons.js +1 -1
  53. package/dist/esm/components/skeletons/skeletons.js.map +1 -1
  54. package/dist/esm/components/toggleGroup/toggleGroup.js +2 -2
  55. package/dist/esm/components/toggleGroup/toggleGroup.js.map +1 -1
  56. package/dist/esm/components/typography/typography.js +1 -1
  57. package/dist/esm/components/typography/typography.js.map +1 -1
  58. package/dist/esm/hooks/useVisualViewportOffset.js +2 -2
  59. package/dist/esm/hooks/useVisualViewportOffset.js.map +1 -1
  60. package/dist/esm/themes.stories.js +3 -3
  61. package/dist/esm/themes.stories.js.map +1 -1
  62. package/dist/esm/uno.preset.js +6 -6
  63. package/dist/esm/uno.preset.js.map +1 -1
  64. package/package.json +1 -1
  65. package/src/components/actions/ActionButton.tsx +1 -1
  66. package/src/components/avatar/Avatar.tsx +1 -1
  67. package/src/components/contextMenu/contextMenu.tsx +6 -4
  68. package/src/components/dialog/Dialog.tsx +1 -1
  69. package/src/components/dropdownMenu/DropdownMenu.tsx +1 -1
  70. package/src/components/icon/generated/IconSpritesheet.tsx +168 -0
  71. package/src/components/icon/generated/iconNames.ts +19 -0
  72. package/src/components/peek/Peek.tsx +1 -1
  73. package/src/components/select/Select.tsx +4 -4
  74. package/src/components/skeletons/skeletons.tsx +1 -1
  75. package/src/components/toggleGroup/toggleGroup.tsx +2 -2
  76. package/src/components/typography/typography.tsx +1 -1
  77. package/src/hooks/useVisualViewportOffset.ts +2 -2
  78. package/src/themes.stories.tsx +50 -5
  79. package/src/uno.preset.ts +6 -6
@@ -210,7 +210,7 @@ const StyledTitle = withClassName(
210
210
 
211
211
  const StyledDescription = withClassName(
212
212
  DialogPrimitive.Description,
213
- 'mt-3 mb-6 color-gray8 text-md leading-6',
213
+ 'mt-3 mb-6 color-gray-dark text-md leading-6',
214
214
  );
215
215
 
216
216
  // Exports
@@ -60,7 +60,7 @@ const StyledLabel = withClassName(
60
60
 
61
61
  const StyledSeparator = withClassName(
62
62
  DropdownMenuPrimitive.Separator,
63
- 'h-1px bg-gray5 m-5px',
63
+ 'h-1px bg-gray m-5px',
64
64
  );
65
65
 
66
66
  const StyledItemIndicator = withClassName(
@@ -976,6 +976,174 @@ export const IconSpritesheet = (props: any) => (
976
976
  <circle cx="4" cy="7.5" r="2" fill="currentColor" />
977
977
  <path d="M11.5 2.5L3.5 7.5L11.5 12.5" stroke="currentColor" />
978
978
  </symbol>
979
+ <symbol id="icon-italic" viewBox="0 0 15 15">
980
+ <path
981
+ fillRule="evenodd"
982
+ clipRule="evenodd"
983
+ d="M5.67494 3.50017C5.67494 3.25164 5.87641 3.05017 6.12494 3.05017H10.6249C10.8735 3.05017 11.0749 3.25164 11.0749 3.50017C11.0749 3.7487 10.8735 3.95017 10.6249 3.95017H9.00587L7.2309 11.05H8.87493C9.12345 11.05 9.32493 11.2515 9.32493 11.5C9.32493 11.7486 9.12345 11.95 8.87493 11.95H4.37493C4.1264 11.95 3.92493 11.7486 3.92493 11.5C3.92493 11.2515 4.1264 11.05 4.37493 11.05H5.99397L7.76894 3.95017H6.12494C5.87641 3.95017 5.67494 3.7487 5.67494 3.50017Z"
984
+ fill="currentColor"
985
+ />
986
+ </symbol>
987
+ <symbol id="icon-bold" viewBox="0 0 15 15">
988
+ <path
989
+ d="M5.10505 12C4.70805 12 4.4236 11.912 4.25171 11.736C4.0839 11.5559 4 11.2715 4 10.8827V4.11733C4 3.72033 4.08595 3.43588 4.25784 3.26398C4.43383 3.08799 4.71623 3 5.10505 3C6.42741 3 8.25591 3 9.02852 3C10.1373 3 11.0539 3.98153 11.0539 5.1846C11.0539 6.08501 10.6037 6.81855 9.70327 7.23602C10.8657 7.44851 11.5176 8.62787 11.5176 9.48128C11.5176 10.5125 10.9902 12 9.27734 12C8.77742 12 6.42626 12 5.10505 12ZM8.37891 8.00341H5.8V10.631H8.37891C8.9 10.631 9.6296 10.1211 9.6296 9.29877C9.6296 8.47643 8.9 8.00341 8.37891 8.00341ZM5.8 4.36903V6.69577H8.17969C8.53906 6.69577 9.27734 6.35939 9.27734 5.50002C9.27734 4.64064 8.48047 4.36903 8.17969 4.36903H5.8Z"
990
+ fill="currentColor"
991
+ />
992
+ </symbol>
993
+ <symbol id="icon-capitalization" viewBox="0 0 15 15">
994
+ <g clipPath="url(#clip0_1084_29)">
995
+ <path
996
+ fillRule="evenodd"
997
+ clipRule="evenodd"
998
+ d="M11.2895 2.75C11.4964 2.74979 11.6821 2.87701 11.7565 3.07003L14.9664 11.39C15.0657 11.6477 14.9375 11.9371 14.6798 12.0365C14.4222 12.1359 14.1328 12.0076 14.0334 11.75L12.9822 9.02537H9.61106L8.56672 11.749C8.46786 12.0068 8.1787 12.1357 7.92086 12.0369C7.66302 11.938 7.53415 11.6488 7.63301 11.391L10.8232 3.07099C10.8972 2.87782 11.0826 2.75021 11.2895 2.75ZM11.2915 4.64284L12.6543 8.17537H9.93698L11.2915 4.64284ZM2.89895 5.20703C1.25818 5.20703 0.00915527 6.68569 0.00915527 8.60972C0.00915527 10.6337 1.35818 12.0124 2.89895 12.0124C3.72141 12.0124 4.57438 11.6692 5.15427 11.0219V11.53C5.15427 11.7785 5.35574 11.98 5.60427 11.98C5.8528 11.98 6.05427 11.7785 6.05427 11.53V5.72C6.05427 5.47147 5.8528 5.27 5.60427 5.27C5.35574 5.27 5.15427 5.47147 5.15427 5.72V6.22317C4.60543 5.60095 3.79236 5.20703 2.89895 5.20703ZM5.15427 9.79823V7.30195C4.76393 6.58101 3.94144 6.05757 3.08675 6.05757C2.10885 6.05757 1.03503 6.96581 1.03503 8.60955C1.03503 10.1533 2.00885 11.1615 3.08675 11.1615C3.97011 11.1615 4.77195 10.4952 5.15427 9.79823Z"
999
+ fill="currentColor"
1000
+ />
1001
+ </g>
1002
+ <defs>
1003
+ <clipPath id="clip0_1084_29">
1004
+ <rect width="15" height="15" fill="white" />
1005
+ </clipPath>
1006
+ </defs>
1007
+ </symbol>
1008
+ <symbol id="icon-underline" viewBox="0 0 15 15">
1009
+ <path
1010
+ fillRule="evenodd"
1011
+ clipRule="evenodd"
1012
+ d="M5.00001 2.75C5.00001 2.47386 4.77615 2.25 4.50001 2.25C4.22387 2.25 4.00001 2.47386 4.00001 2.75V8.05C4.00001 9.983 5.56702 11.55 7.50001 11.55C9.43301 11.55 11 9.983 11 8.05V2.75C11 2.47386 10.7762 2.25 10.5 2.25C10.2239 2.25 10 2.47386 10 2.75V8.05C10 9.43071 8.88072 10.55 7.50001 10.55C6.1193 10.55 5.00001 9.43071 5.00001 8.05V2.75ZM3.49998 13.1001C3.27906 13.1001 3.09998 13.2791 3.09998 13.5001C3.09998 13.721 3.27906 13.9001 3.49998 13.9001H11.5C11.7209 13.9001 11.9 13.721 11.9 13.5001C11.9 13.2791 11.7209 13.1001 11.5 13.1001H3.49998Z"
1013
+ fill="currentColor"
1014
+ />
1015
+ </symbol>
1016
+ <symbol id="icon-textAlignLeft" viewBox="0 0 15 15">
1017
+ <path
1018
+ fillRule="evenodd"
1019
+ clipRule="evenodd"
1020
+ d="M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H7.5C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H10.5C10.7761 10 11 10.2239 11 10.5C11 10.7761 10.7761 11 10.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z"
1021
+ fill="currentColor"
1022
+ />
1023
+ </symbol>
1024
+ <symbol id="icon-textAlignRight" viewBox="0 0 15 15">
1025
+ <path
1026
+ d="M4.5 10.5H12.5M7.5 7.5H12.5M2.5 4.5H12.5"
1027
+ stroke="currentColor"
1028
+ strokeLinecap="round"
1029
+ />
1030
+ </symbol>
1031
+ <symbol id="icon-textAlignCenter" viewBox="0 0 15 15">
1032
+ <path
1033
+ d="M3.5 10.5H11.5M4.5 7.5H10.5M2.5 4.5H12.5"
1034
+ stroke="currentColor"
1035
+ strokeLinecap="round"
1036
+ />
1037
+ </symbol>
1038
+ <symbol id="icon-textJustify" viewBox="0 0 15 15">
1039
+ <path
1040
+ fillRule="evenodd"
1041
+ clipRule="evenodd"
1042
+ d="M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z"
1043
+ fill="currentColor"
1044
+ />
1045
+ </symbol>
1046
+ <symbol id="icon-paragraph" viewBox="0 0 15 15">
1047
+ <path
1048
+ fillRule="evenodd"
1049
+ clipRule="evenodd"
1050
+ d="M3 5.5C3 7.983 4.99169 9 7 9V12.5C7 12.7761 7.22386 13 7.5 13C7.77614 13 8 12.7761 8 12.5V9V3.1H9V12.5C9 12.7761 9.22386 13 9.5 13C9.77614 13 10 12.7761 10 12.5V3.1H11.5C11.8038 3.1 12.05 2.85376 12.05 2.55C12.05 2.24624 11.8038 2 11.5 2H9.5H8H7.5H7C4.99169 2 3 3.017 3 5.5Z"
1051
+ fill="currentColor"
1052
+ />
1053
+ </symbol>
1054
+ <symbol id="icon-highlight" viewBox="0 0 15 15">
1055
+ <rect
1056
+ x="1"
1057
+ y="1"
1058
+ width="13"
1059
+ height="13"
1060
+ rx="2"
1061
+ fill="#898989"
1062
+ fillOpacity="0.14"
1063
+ />
1064
+ <path
1065
+ fillRule="evenodd"
1066
+ clipRule="evenodd"
1067
+ d="M8.55569 2C8.30717 2 8.10569 2.20147 8.10569 2.45C8.10569 2.69853 8.30717 2.9 8.55569 2.9H9.49114V6.96543H5.48545V2.9H6.42833C6.67686 2.9 6.87833 2.69853 6.87833 2.45C6.87833 2.20147 6.67686 2 6.42833 2H3.45C3.20147 2 3 2.20147 3 2.45C3 2.69853 3.20147 2.9 3.45 2.9H4.38545V11.9311H3.45C3.20147 11.9311 3 12.1326 3 12.3811C3 12.6297 3.20147 12.8311 3.45 12.8311H6.42833C6.67686 12.8311 6.87833 12.6297 6.87833 12.3811C6.87833 12.1326 6.67686 11.9311 6.42833 11.9311H5.48545V7.86543H9.49114V11.9311H8.55569C8.30717 11.9311 8.10569 12.1326 8.10569 12.3811C8.10569 12.6297 8.30717 12.8311 8.55569 12.8311H11.534C11.7826 12.8311 11.984 12.6297 11.984 12.3811C11.984 12.1326 11.7826 11.9311 11.534 11.9311H10.5911V2.9H11.534C11.7826 2.9 11.984 2.69853 11.984 2.45C11.984 2.20147 11.7826 2 11.534 2H8.55569Z"
1068
+ fill="currentColor"
1069
+ />
1070
+ </symbol>
1071
+ <symbol id="icon-pushLeft" viewBox="0 0 15 15">
1072
+ <path
1073
+ fillRule="evenodd"
1074
+ clipRule="evenodd"
1075
+ d="M2.05005 13.5C2.05005 13.7485 2.25152 13.95 2.50005 13.95C2.74858 13.95 2.95005 13.7485 2.95005 13.5L2.95005 1.49995C2.95005 1.25142 2.74858 1.04995 2.50005 1.04995C2.25152 1.04995 2.05005 1.25142 2.05005 1.49995L2.05005 13.5ZM8.4317 11.0681C8.60743 11.2439 8.89236 11.2439 9.06809 11.0681C9.24383 10.8924 9.24383 10.6075 9.06809 10.4317L6.58629 7.94993L14.5 7.94993C14.7485 7.94993 14.95 7.74846 14.95 7.49993C14.95 7.2514 14.7485 7.04993 14.5 7.04993L6.58629 7.04993L9.06809 4.56813C9.24383 4.39239 9.24383 4.10746 9.06809 3.93173C8.89236 3.75599 8.60743 3.75599 8.4317 3.93173L5.1817 7.18173C5.00596 7.35746 5.00596 7.64239 5.1817 7.81812L8.4317 11.0681Z"
1076
+ fill="currentColor"
1077
+ />
1078
+ </symbol>
1079
+ <symbol id="icon-pushRight" viewBox="0 0 15 15">
1080
+ <path
1081
+ fillRule="evenodd"
1082
+ clipRule="evenodd"
1083
+ d="M12.95 1.50005C12.95 1.25152 12.7485 1.05005 12.5 1.05005C12.2514 1.05005 12.05 1.25152 12.05 1.50005L12.05 13.5C12.05 13.7486 12.2514 13.95 12.5 13.95C12.7485 13.95 12.95 13.7486 12.95 13.5L12.95 1.50005ZM6.5683 3.93188C6.39257 3.75614 6.10764 3.75614 5.93191 3.93188C5.75617 4.10761 5.75617 4.39254 5.93191 4.56827L8.41371 7.05007L0.499984 7.05007C0.251456 7.05007 0.0499847 7.25155 0.0499847 7.50007C0.0499846 7.7486 0.251457 7.95007 0.499984 7.95007L8.41371 7.95007L5.93191 10.4319C5.75617 10.6076 5.75617 10.8925 5.93191 11.0683C6.10764 11.244 6.39257 11.244 6.56831 11.0683L9.8183 7.81827C9.99404 7.64254 9.99404 7.35761 9.8183 7.18188L6.5683 3.93188Z"
1084
+ fill="currentColor"
1085
+ />
1086
+ </symbol>
1087
+ <symbol id="icon-pushUp" viewBox="0 0 15 15">
1088
+ <path
1089
+ fillRule="evenodd"
1090
+ clipRule="evenodd"
1091
+ d="M1.50005 1.05005C1.25152 1.05005 1.05005 1.25152 1.05005 1.50005C1.05005 1.74858 1.25152 1.95005 1.50005 1.95005L13.5 1.95005C13.7486 1.95005 13.95 1.74858 13.95 1.50005C13.95 1.25152 13.7486 1.05005 13.5 1.05005H1.50005ZM3.93188 7.43169C3.75614 7.60743 3.75614 7.89236 3.93188 8.06809C4.10761 8.24383 4.39254 8.24383 4.56827 8.06809L7.05007 5.58629V13.5C7.05007 13.7485 7.25155 13.95 7.50007 13.95C7.7486 13.95 7.95007 13.7485 7.95007 13.5L7.95007 5.58629L10.4319 8.06809C10.6076 8.24383 10.8925 8.24383 11.0683 8.06809C11.244 7.89235 11.244 7.60743 11.0683 7.43169L7.81827 4.18169C7.64254 4.00596 7.35761 4.00596 7.18188 4.18169L3.93188 7.43169Z"
1092
+ fill="currentColor"
1093
+ />
1094
+ </symbol>
1095
+ <symbol id="icon-pushDown" viewBox="0 0 15 15">
1096
+ <path
1097
+ fillRule="evenodd"
1098
+ clipRule="evenodd"
1099
+ d="M13.5 13.95C13.7485 13.95 13.95 13.7485 13.95 13.5C13.95 13.2514 13.7485 13.05 13.5 13.05L1.49995 13.05C1.25142 13.05 1.04995 13.2514 1.04995 13.5C1.04995 13.7485 1.25142 13.95 1.49995 13.95L13.5 13.95ZM11.0681 7.5683C11.2439 7.39257 11.2439 7.10764 11.0681 6.93191C10.8924 6.75617 10.6075 6.75617 10.4317 6.93191L7.94993 9.41371L7.94993 1.49998C7.94993 1.25146 7.74846 1.04998 7.49993 1.04998C7.2514 1.04998 7.04993 1.25146 7.04993 1.49998L7.04993 9.41371L4.56813 6.93191C4.39239 6.75617 4.10746 6.75617 3.93173 6.93191C3.75599 7.10764 3.75599 7.39257 3.93173 7.5683L7.18173 10.8183C7.35746 10.994 7.64239 10.994 7.81812 10.8183L11.0681 7.5683Z"
1100
+ fill="currentColor"
1101
+ />
1102
+ </symbol>
1103
+ <symbol id="icon-bulletList" viewBox="0 0 15 15">
1104
+ <path
1105
+ fillRule="evenodd"
1106
+ clipRule="evenodd"
1107
+ d="M1.5 5.25C1.91421 5.25 2.25 4.91421 2.25 4.5C2.25 4.08579 1.91421 3.75 1.5 3.75C1.08579 3.75 0.75 4.08579 0.75 4.5C0.75 4.91421 1.08579 5.25 1.5 5.25ZM4 4.5C4 4.22386 4.22386 4 4.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H13.5C13.7761 11 14 10.7761 14 10.5C14 10.2239 13.7761 10 13.5 10H4.5ZM2.25 7.5C2.25 7.91421 1.91421 8.25 1.5 8.25C1.08579 8.25 0.75 7.91421 0.75 7.5C0.75 7.08579 1.08579 6.75 1.5 6.75C1.91421 6.75 2.25 7.08579 2.25 7.5ZM1.5 11.25C1.91421 11.25 2.25 10.9142 2.25 10.5C2.25 10.0858 1.91421 9.75 1.5 9.75C1.08579 9.75 0.75 10.0858 0.75 10.5C0.75 10.9142 1.08579 11.25 1.5 11.25Z"
1108
+ fill="currentColor"
1109
+ />
1110
+ </symbol>
1111
+ <symbol id="icon-name106" viewBox="0 0 15 15">
1112
+ <path
1113
+ fillRule="evenodd"
1114
+ clipRule="evenodd"
1115
+ d="M5.39999 4C5.12385 4 4.89999 4.22386 4.89999 4.5C4.89999 4.77614 5.12385 5 5.39999 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H5.39999ZM5.39999 9C5.12385 9 4.89999 9.22386 4.89999 9.5C4.89999 9.77614 5.12385 10 5.39999 10H13.5C13.7761 10 14 9.77614 14 9.5C14 9.22386 13.7761 9 13.5 9H5.39999Z"
1116
+ fill="currentColor"
1117
+ />
1118
+ <path
1119
+ d="M2.50142 3.09091V6H1.88636V3.67472H1.86932L1.20312 4.09233V3.54688L1.9233 3.09091H2.50142ZM1.2358 11V10.5568L2.27131 9.59801C2.35938 9.51278 2.43324 9.43608 2.4929 9.3679C2.5535 9.29972 2.59943 9.23295 2.63068 9.16761C2.66193 9.10133 2.67756 9.02983 2.67756 8.95312C2.67756 8.8679 2.65814 8.79451 2.61932 8.73295C2.58049 8.67045 2.52746 8.62263 2.46023 8.58949C2.39299 8.5554 2.31676 8.53835 2.23153 8.53835C2.14252 8.53835 2.06487 8.55634 1.99858 8.59233C1.93229 8.62831 1.88116 8.67992 1.84517 8.74716C1.80919 8.81439 1.79119 8.89441 1.79119 8.98722H1.20739C1.20739 8.79687 1.25047 8.63163 1.33665 8.49148C1.42282 8.35133 1.54356 8.2429 1.69886 8.16619C1.85417 8.08949 2.03314 8.05114 2.2358 8.05114C2.44413 8.05114 2.62547 8.08807 2.77983 8.16193C2.93513 8.23485 3.05587 8.33617 3.14205 8.46591C3.22822 8.59564 3.27131 8.74432 3.27131 8.91193C3.27131 9.02178 3.24953 9.13021 3.20597 9.23722C3.16335 9.34422 3.08712 9.46307 2.97727 9.59375C2.86742 9.72348 2.71259 9.87926 2.51278 10.0611L2.08807 10.4773V10.4972H3.30966V11H1.2358Z"
1120
+ fill="currentColor"
1121
+ />
1122
+ </symbol>
1123
+ <symbol id="icon-quote" viewBox="0 0 15 15">
1124
+ <path
1125
+ fillRule="evenodd"
1126
+ clipRule="evenodd"
1127
+ d="M9.42503 3.44136C10.0561 3.23654 10.7837 3.2402 11.3792 3.54623C12.7532 4.25224 13.3477 6.07191 12.7946 8C12.5465 8.8649 12.1102 9.70472 11.1861 10.5524C10.262 11.4 8.98034 11.9 8.38571 11.9C8.17269 11.9 8 11.7321 8 11.525C8 11.3179 8.17644 11.15 8.38571 11.15C9.06497 11.15 9.67189 10.7804 10.3906 10.236C10.9406 9.8193 11.3701 9.28633 11.608 8.82191C12.0628 7.93367 12.0782 6.68174 11.3433 6.34901C10.9904 6.73455 10.5295 6.95946 9.97725 6.95946C8.7773 6.95946 8.0701 5.99412 8.10051 5.12009C8.12957 4.28474 8.66032 3.68954 9.42503 3.44136ZM3.42503 3.44136C4.05614 3.23654 4.78366 3.2402 5.37923 3.54623C6.7532 4.25224 7.34766 6.07191 6.79462 8C6.54654 8.8649 6.11019 9.70472 5.1861 10.5524C4.26201 11.4 2.98034 11.9 2.38571 11.9C2.17269 11.9 2 11.7321 2 11.525C2 11.3179 2.17644 11.15 2.38571 11.15C3.06497 11.15 3.67189 10.7804 4.39058 10.236C4.94065 9.8193 5.37014 9.28633 5.60797 8.82191C6.06282 7.93367 6.07821 6.68174 5.3433 6.34901C4.99037 6.73455 4.52948 6.95946 3.97725 6.95946C2.7773 6.95946 2.0701 5.99412 2.10051 5.12009C2.12957 4.28474 2.66032 3.68954 3.42503 3.44136Z"
1128
+ fill="currentColor"
1129
+ />
1130
+ </symbol>
1131
+ <symbol id="icon-code" viewBox="0 0 15 15">
1132
+ <path
1133
+ fillRule="evenodd"
1134
+ clipRule="evenodd"
1135
+ d="M9.96424 2.68571C10.0668 2.42931 9.94209 2.13833 9.6857 2.03577C9.4293 1.93322 9.13832 2.05792 9.03576 2.31432L5.03576 12.3143C4.9332 12.5707 5.05791 12.8617 5.3143 12.9642C5.5707 13.0668 5.86168 12.9421 5.96424 12.6857L9.96424 2.68571ZM3.85355 5.14646C4.04882 5.34172 4.04882 5.6583 3.85355 5.85356L2.20711 7.50001L3.85355 9.14646C4.04882 9.34172 4.04882 9.6583 3.85355 9.85356C3.65829 10.0488 3.34171 10.0488 3.14645 9.85356L1.14645 7.85356C0.951184 7.6583 0.951184 7.34172 1.14645 7.14646L3.14645 5.14646C3.34171 4.9512 3.65829 4.9512 3.85355 5.14646ZM11.1464 5.14646C11.3417 4.9512 11.6583 4.9512 11.8536 5.14646L13.8536 7.14646C14.0488 7.34172 14.0488 7.6583 13.8536 7.85356L11.8536 9.85356C11.6583 10.0488 11.3417 10.0488 11.1464 9.85356C10.9512 9.6583 10.9512 9.34172 11.1464 9.14646L12.7929 7.50001L11.1464 5.85356C10.9512 5.6583 10.9512 5.34172 11.1464 5.14646Z"
1136
+ fill="currentColor"
1137
+ />
1138
+ </symbol>
1139
+ <symbol id="icon-newPage" viewBox="0 0 15 15">
1140
+ <path
1141
+ fillRule="evenodd"
1142
+ clipRule="evenodd"
1143
+ d="M3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V4.70711L9.29289 2H3.5ZM2 2.5C2 1.67157 2.67157 1 3.5 1H9.5C9.63261 1 9.75979 1.05268 9.85355 1.14645L12.7803 4.07322C12.921 4.21388 13 4.40464 13 4.60355V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5ZM4.75 7.5C4.75 7.22386 4.97386 7 5.25 7H7V5.25C7 4.97386 7.22386 4.75 7.5 4.75C7.77614 4.75 8 4.97386 8 5.25V7H9.75C10.0261 7 10.25 7.22386 10.25 7.5C10.25 7.77614 10.0261 8 9.75 8H8V9.75C8 10.0261 7.77614 10.25 7.5 10.25C7.22386 10.25 7 10.0261 7 9.75V8H5.25C4.97386 8 4.75 7.77614 4.75 7.5Z"
1144
+ fill="currentColor"
1145
+ />
1146
+ </symbol>
979
1147
  </defs>
980
1148
  </svg>
981
1149
  );
@@ -87,6 +87,25 @@ export const iconNames = [
87
87
  'enterKey',
88
88
  'gamePiece',
89
89
  'share',
90
+ 'italic',
91
+ 'bold',
92
+ 'capitalization',
93
+ 'underline',
94
+ 'textAlignLeft',
95
+ 'textAlignRight',
96
+ 'textAlignCenter',
97
+ 'textJustify',
98
+ 'paragraph',
99
+ 'highlight',
100
+ 'pushLeft',
101
+ 'pushRight',
102
+ 'pushUp',
103
+ 'pushDown',
104
+ 'bulletList',
105
+ 'name106',
106
+ 'quote',
107
+ 'code',
108
+ 'newPage',
90
109
  ] as const;
91
110
 
92
111
  export type IconName = (typeof iconNames)[number];
@@ -60,7 +60,7 @@ export function Peek({ peekHeight = 120, children, className }: PeekProps) {
60
60
  className={classNames(
61
61
  'h-80px absolute bottom-0 z-1 bg-transparent border-none w-full cursor-pointer border-b border-solid border-white',
62
62
  'focus-visible:(outline-none bg-gradient-to-b from-transparent to-primary-wash border-b border-solid border-primary',
63
- 'after:(content-["-_tap_to_expand_-"] p-3 color-gray9 text-xs flex flex-col justify-end items-center absolute inset-0 top-auto h-80px bg-gradient-to-b from-transparent to-white)',
63
+ 'after:(content-["-_tap_to_expand_-"] p-3 color-gray-dark text-xs flex flex-col justify-end items-center absolute inset-0 top-auto h-80px bg-gradient-to-b from-transparent to-white)',
64
64
  'after:[&[data-state=open]]:content-["-_tap_to_collapse_-"]',
65
65
  )}
66
66
  onClick={toggle}
@@ -45,7 +45,7 @@ export const SelectItem = ({
45
45
  export const SelectItemRoot = withClassName(
46
46
  SelectPrimitive.Item,
47
47
  'layer-components:(text-md leading-4 color-black rounded-sm flex items-center flex-row h-36px pr-4 pl-35px relative select-none)',
48
- 'layer-components:[&[data-disabled]]:(color-gray5 pointer-events-none) [&[data-highlighted]]:(outline-none bg-primary-wash color-black)',
48
+ 'layer-components:[&[data-disabled]]:(color-gray pointer-events-none) [&[data-highlighted]]:(outline-none bg-primary-wash color-black)',
49
49
  'layer-components:[&:first-child]:(rounded-t-lg)',
50
50
  'layer-components:[&:last-child]:(rounded-b-lg)',
51
51
  );
@@ -78,7 +78,7 @@ export const SelectGroup = (props: SelectPrimitive.SelectGroupProps) => {
78
78
  export const SelectRoot = SelectPrimitive.Root;
79
79
  export const selectTriggerClassName = classNames(
80
80
  getButtonClassName({ color: 'default' }),
81
- 'layer-components:([all:unset] inline-flex [&[data-placeholder]]:color-gray8)',
81
+ 'layer-components:([all:unset] inline-flex [&[data-placeholder]]:color-gray-dark)',
82
82
  );
83
83
  export const SelectTriggerBase = withNoNativeRender(
84
84
  withClassName(SelectPrimitive.Trigger, selectTriggerClassName),
@@ -120,7 +120,7 @@ export const SelectLabel = withNoNativeRender(
120
120
  ),
121
121
  );
122
122
  export const SelectSeparator = withNoNativeRender(
123
- withClassName(SelectPrimitive.Separator, 'h-1px bg-gray50 m-1'),
123
+ withClassName(SelectPrimitive.Separator, 'h-1px bg-gray-light m-1'),
124
124
  );
125
125
  export const SelectIcon = withNoNativeRender(
126
126
  ({
@@ -187,7 +187,7 @@ export const NativeSelect = ({
187
187
  <div className={classNames('relative', className)}>
188
188
  <select
189
189
  className={classNames(
190
- 'appearance-none font-inherit bg-white inline-flex items-center justify-center rounded-lg px-3 py-1 pr-8 text-sm gap-2 color-black border-solid border border-gray5 hover:border-gray7 focus:outline-none focus-visible:shadow-focus [&[data-placeholder]]:color-gray8',
190
+ 'appearance-none font-inherit bg-white inline-flex items-center justify-center rounded-lg px-3 py-1 pr-8 text-sm gap-2 color-black border-solid border border-gray hover:border-gray-dark focus:outline-none focus-visible:shadow-focus [&[data-placeholder]]:color-gray-dark',
191
191
  )}
192
192
  {...props}
193
193
  ref={forwardedRef}
@@ -15,7 +15,7 @@ export const TextSkeleton = ({
15
15
  return (
16
16
  <span
17
17
  className={classNames(
18
- 'w-full h-full rounded-md bg-gradient-to-r from-gray1 via-gray2 to-gray1 [background-size:400%_400%] max-w-full animate-skeleton animate-duration-1200 animate-ease-in-out animate-iteration-infinite animate-alternate',
18
+ 'w-full h-full rounded-md bg-gradient-to-r from-gray-wash via-gray-light to-gray-wash [background-size:400%_400%] max-w-full animate-skeleton animate-duration-1200 animate-ease-in-out animate-iteration-infinite animate-alternate',
19
19
  className,
20
20
  )}
21
21
  style={{
@@ -3,11 +3,11 @@ import { withClassName } from '../../hooks/withClassName.js';
3
3
 
4
4
  export const ToggleGroupRoot = withClassName(
5
5
  ToggleGroupPrimitive.Root,
6
- 'inline-flex bg-gray1 rounded-lg gap-1',
6
+ 'inline-flex bg-gray-wash bg-darken-1 rounded-lg gap-1',
7
7
  );
8
8
  export const ToggleGroupItem = withClassName(
9
9
  ToggleGroupPrimitive.Item,
10
- 'rounded-xl bg-gray2 py-1 px-2 flex items-center justify-center cursor-pointer hover:bg-gray3 active:bg-gray4 focus-visible:(shadow-focus outline-off) [&[data-state=on]]:(bg-primary-light border-black)',
10
+ 'rounded-xl color-black bg-gray-light py-sm px-md flex items-center border-none justify-center cursor-pointer hover:bg-darken-2 active:bg-darken-4 focus-visible:(shadow-focus outline-off) [&[data-state=on]]:(bg-primary-light border-black)',
11
11
  );
12
12
 
13
13
  export const ToggleGroup = Object.assign(ToggleGroupRoot, {
@@ -9,7 +9,7 @@ export const H1 = withClassName(
9
9
  export const H2 = withClassName(
10
10
  'h2',
11
11
  baseHeadingClass,
12
- 'layer-components:(text-lg font-title font-bold color-gray9)',
12
+ 'layer-components:(text-lg font-title font-bold color-gray-dark)',
13
13
  );
14
14
  export const H3 = withClassName(
15
15
  'h3',
@@ -98,13 +98,13 @@ function useReactToViewportChanges(
98
98
 
99
99
  update();
100
100
 
101
- window.addEventListener('scroll', update, { passive: true });
101
+ window.addEventListener('scroll', debouncedUpdate, { passive: true });
102
102
  viewport.addEventListener('resize', update);
103
103
  viewport.addEventListener('scroll', debouncedUpdate, { passive: true });
104
104
 
105
105
  return () => {
106
+ window.removeEventListener('scroll', debouncedUpdate);
106
107
  viewport.removeEventListener('resize', update);
107
- window.removeEventListener('scroll', update);
108
108
  viewport.removeEventListener('scroll', debouncedUpdate);
109
109
  };
110
110
  }, [stableCb, disable]);
@@ -8,9 +8,15 @@ import {
8
8
  AvatarList,
9
9
  Box,
10
10
  Checkbox,
11
+ ContextMenu,
11
12
  DateRangePicker,
12
13
  Dialog,
13
14
  DropdownMenu,
15
+ H1,
16
+ H2,
17
+ H3,
18
+ H4,
19
+ HorizontalList,
14
20
  ImageUploader,
15
21
  NavBarItem,
16
22
  NavBarItemIcon,
@@ -19,10 +25,13 @@ import {
19
25
  NavBarItemText,
20
26
  NavBarRoot,
21
27
  Note,
28
+ P,
22
29
  PageContent,
23
30
  PageNav,
24
31
  PageRoot,
25
32
  Progress,
33
+ TextSkeleton,
34
+ ToggleGroup,
26
35
  Tooltip,
27
36
  } from './components/index.js';
28
37
  import { Input } from './components/input/index.js';
@@ -70,6 +79,22 @@ function DemoUI({ className }: { className?: string }) {
70
79
  <Checkbox defaultChecked />
71
80
  <span>Checkbox</span>
72
81
  </Box>
82
+ <ToggleGroup type="single">
83
+ <ToggleGroup.Item value="1">Toggle 1</ToggleGroup.Item>
84
+ <ToggleGroup.Item value="2">Toggle 2</ToggleGroup.Item>
85
+ </ToggleGroup>
86
+ </Box>
87
+ <Box layout="start center" d="col" gap p>
88
+ <H1>Heading 1</H1>
89
+ <H2>Heading 2</H2>
90
+ <H3>Heading 3</H3>
91
+ <H4>Heading 4</H4>
92
+ <P>
93
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do
94
+ eiusmod tempor incididunt ut labore et dolore magna aliqua.
95
+ </P>
96
+ <TextSkeleton maxLength={30} />
97
+ <TextSkeleton maxLength={10} />
73
98
  </Box>
74
99
  <Card>
75
100
  <Card.Main onClick={() => {}}>
@@ -111,9 +136,19 @@ function DemoUI({ className }: { className?: string }) {
111
136
  <AvatarList.Item index={1} name="Jane Doe" />
112
137
  <AvatarList.Item index={2} name="John Smith" />
113
138
  </AvatarList>
114
- <Tooltip content="Hello World">
115
- <Button>Hover me</Button>
116
- </Tooltip>
139
+ <ContextMenu>
140
+ <ContextMenu.Trigger asChild>
141
+ <Tooltip content="Hello World">
142
+ <Button>Hover or right click</Button>
143
+ </Tooltip>
144
+ </ContextMenu.Trigger>
145
+ <ContextMenu.Content>
146
+ <ContextMenu.Arrow />
147
+ <ContextMenu.Item>Item 1</ContextMenu.Item>
148
+ <ContextMenu.Item>Item 2</ContextMenu.Item>
149
+ <ContextMenu.Item>Item 3</ContextMenu.Item>
150
+ </ContextMenu.Content>
151
+ </ContextMenu>
117
152
  <Dialog>
118
153
  <Dialog.Trigger asChild>
119
154
  <Button>Click</Button>
@@ -151,9 +186,19 @@ function DemoUI({ className }: { className?: string }) {
151
186
  <Box>
152
187
  <Note>Note note</Note>
153
188
  </Box>
154
- <ImageUploader className="h-400px" value={null} onChange={() => {}} />
189
+ <Box justify="start" items="start">
190
+ <HorizontalList openDirection="down">
191
+ <Button size="small">One</Button>
192
+ <Button size="small">Two</Button>
193
+ <Button size="small">Three</Button>
194
+ <Button size="small">Four</Button>
195
+ <Button size="small">Five</Button>
196
+ <Button size="small">Six</Button>
197
+ </HorizontalList>
198
+ </Box>
199
+ <ImageUploader className="h-200px" value={null} onChange={() => {}} />
155
200
  <DropdownMenu>
156
- <DropdownMenu.Trigger asChild>
201
+ <DropdownMenu.Trigger asChild className="m-auto">
157
202
  <Button>Dropdown</Button>
158
203
  </DropdownMenu.Trigger>
159
204
  <DropdownMenu.Content>
package/src/uno.preset.ts CHANGED
@@ -25,7 +25,7 @@ export default function presetAglio({
25
25
  },
26
26
  borderScale = 1,
27
27
  roundedness = 1,
28
- saturation = 15,
28
+ saturation = 10,
29
29
  }: {
30
30
  scale?: 'sm' | 'md' | 'lg';
31
31
  interFontLocation?: string;
@@ -506,7 +506,7 @@ export default function presetAglio({
506
506
 
507
507
  shortcuts: {
508
508
  'border-default': 'border border-solid border-black',
509
- 'border-light': 'border border-solid border-gray5',
509
+ 'border-light': 'border border-solid border-gray',
510
510
  'flex-1-0-0': 'flex-grow-1 flex-shrink-0 flex-basis-0',
511
511
  'flex-0-0-auto': 'flex-grow-0 flex-shrink-0 flex-basis-auto',
512
512
  row: 'layer-components:flex layer-components:flex-row layer-components:gap-2 layer-components:items-center',
@@ -557,7 +557,7 @@ export default function presetAglio({
557
557
  --palette-red-30: #ae562d;
558
558
  --palette-red-20: #804020;
559
559
  --palette-red-10: #702604;
560
- --palette-red-00: #321f19;
560
+ --palette-red-00:rgb(52, 39, 35);
561
561
  --palette-green-90: #e8ffef;
562
562
  --palette-green-80: #c2ffe9;
563
563
  --palette-green-70: #92f2d1;
@@ -567,7 +567,7 @@ export default function presetAglio({
567
567
  --palette-green-30: #1f837c;
568
568
  --palette-green-20: #246869;
569
569
  --palette-green-10: #274e50;
570
- --palette-green-00: #18352e;
570
+ --palette-green-00:rgb(32, 48, 44);
571
571
  --palette-yellow-90: #fff9ee;
572
572
  --palette-yellow-80: #fff1c7;
573
573
  --palette-yellow-70: #ffdf7c;
@@ -577,7 +577,7 @@ export default function presetAglio({
577
577
  --palette-yellow-30: #8e5c00;
578
578
  --palette-yellow-20: #714d00;
579
579
  --palette-yellow-10: #634500;
580
- --palette-yellow-00:rgb(59, 45, 0);
580
+ --palette-yellow-00:rgb(56, 50, 30);
581
581
  --palette-blue-90:rgb(231, 246, 255);
582
582
  --palette-blue-80: #c4e7ff;
583
583
  --palette-blue-70: #87d3fc;
@@ -587,7 +587,7 @@ export default function presetAglio({
587
587
  --palette-blue-30: #077da7;
588
588
  --palette-blue-20: #005979;
589
589
  --palette-blue-10: #004c69;
590
- --palette-blue-00: #092c3a;
590
+ --palette-blue-00:rgb(25, 39, 44);
591
591
  --palette-purple-90:rgb(239, 236, 255);
592
592
  --palette-purple-80: #e0e0ff;
593
593
  --palette-purple-70: #c8cdff;