@stackone/malachite 2.83.1 → 2.84.1

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 (41) hide show
  1. package/COMPONENTS.md +3 -3
  2. package/dist/assets/icons/forbidden.svg.js +173 -3
  3. package/dist/assets/icons/forbidden.svg.js.map +1 -1
  4. package/dist/assets/icons/navbar_collapse.svg.js +3 -1
  5. package/dist/assets/icons/navbar_collapse.svg.js.map +1 -1
  6. package/dist/assets/icons/navbar_expand.svg.js +3 -1
  7. package/dist/assets/icons/navbar_expand.svg.js.map +1 -1
  8. package/dist/assets/icons/not_found.svg.js +143 -3
  9. package/dist/assets/icons/not_found.svg.js.map +1 -1
  10. package/dist/assets/icons/required_field_indicator.svg.js +7 -1
  11. package/dist/assets/icons/required_field_indicator.svg.js.map +1 -1
  12. package/dist/assets/icons/source.svg.js +4 -2
  13. package/dist/assets/icons/source.svg.js.map +1 -1
  14. package/dist/assets/icons/webhook_signing_secret.svg.js +3 -1
  15. package/dist/assets/icons/webhook_signing_secret.svg.js.map +1 -1
  16. package/dist/components/Accordion.js +124 -101
  17. package/dist/components/Accordion.js.map +1 -1
  18. package/dist/components/ActionMenu.js +174 -169
  19. package/dist/components/ActionMenu.js.map +1 -1
  20. package/dist/components/Alert.js +31 -31
  21. package/dist/components/Alert.js.map +1 -1
  22. package/dist/components/Button.js.map +1 -1
  23. package/dist/components/PinnedCornerCap.js +23 -0
  24. package/dist/components/PinnedCornerCap.js.map +1 -0
  25. package/dist/components/ShadowEscape.js +49 -78
  26. package/dist/components/ShadowEscape.js.map +1 -1
  27. package/dist/components/Table/Table.js +291 -310
  28. package/dist/components/Table/Table.js.map +1 -1
  29. package/dist/components/actionMenuStyles.js +86 -68
  30. package/dist/components/actionMenuStyles.js.map +1 -1
  31. package/dist/components/buttonStyles.js +2 -0
  32. package/dist/components/buttonStyles.js.map +1 -1
  33. package/dist/components/optionRowStyles.js +10 -9
  34. package/dist/components/optionRowStyles.js.map +1 -1
  35. package/dist/components/usePinned.js +38 -0
  36. package/dist/components/usePinned.js.map +1 -0
  37. package/dist/index.d.ts +23 -1
  38. package/dist/tailwind.css.js +1 -1
  39. package/dist/theme.js +21 -16
  40. package/dist/theme.js.map +1 -1
  41. package/package.json +1 -1
package/dist/theme.js CHANGED
@@ -620,17 +620,22 @@ const E = [
620
620
  background: "rgb(70, 70, 70)",
621
621
  foreground: "rgb(255, 255, 255)"
622
622
  },
623
+ // Each status colour at 10% over card.background, solid rather than translucent so the
624
+ // text keeps AA (warning, the lowest, 4.52:1) on whatever surface the alert sits on.
623
625
  success: {
624
- background: "rgba(0, 175, 102, 0.08)",
625
- foreground: "rgb(2, 122, 66)"
626
+ background: "rgb(27, 45, 37)",
627
+ foreground: "rgb(20, 170, 100)"
628
+ // text.success
626
629
  },
627
630
  error: {
628
- background: "rgba(197, 63, 63, 0.08)",
629
- foreground: "rgb(237, 53, 54)"
631
+ background: "rgb(47, 33, 33)",
632
+ foreground: "rgb(255, 80, 80)"
633
+ // text.error
630
634
  },
631
635
  warning: {
632
- background: "rgba(241, 139, 10, 0.08)",
633
- foreground: "rgb(150, 88, 10)"
636
+ background: "rgb(51, 41, 28)",
637
+ foreground: "rgb(200, 130, 20)"
638
+ // text.warning
634
639
  },
635
640
  assistant: {
636
641
  // The dark violet the assistant Tag and diff palette already use; the light
@@ -935,12 +940,12 @@ const E = [
935
940
  boxShadow: "none",
936
941
  // The designed container is a flat grey frame, not elevated
937
942
  header: {
938
- background: "rgb(42, 42, 42)",
939
- // Dark theme header surface
943
+ // Matches `background`, as in light: the header and section bars sit on the frame.
944
+ background: "rgb(23, 23, 23)",
940
945
  foreground: "rgb(237, 237, 237)",
941
946
  // Dark theme text emphasis
942
- border: "rgb(75, 85, 99)"
943
- // Dark theme header border
947
+ border: "rgb(64, 64, 64)"
948
+ // card.border
944
949
  },
945
950
  row: {
946
951
  background: "rgb(30, 30, 30)",
@@ -949,8 +954,8 @@ const E = [
949
954
  // Dark theme row text
950
955
  hoverBackground: "rgb(42, 42, 42)",
951
956
  // Dark theme row hover
952
- border: "rgb(75, 85, 99)",
953
- // Dark theme row border
957
+ border: "rgb(64, 64, 64)",
958
+ // card.border
954
959
  // Not the light theme's brand green: over a near-black row it composites darker
955
960
  // than hoverBackground. 20%, because at 15% the step past hover was 1.12:1.
956
961
  selectedBackground: "rgba(34, 197, 94, 0.2)",
@@ -959,13 +964,13 @@ const E = [
959
964
  selectedForeground: "rgb(34, 197, 94)"
960
965
  // 5.09:1 — text needs AA 4.5:1
961
966
  },
962
- border: "rgb(75, 85, 99)",
963
- // Dark theme table border
967
+ border: "rgb(64, 64, 64)",
968
+ // card.border
964
969
  borderedRow: {
965
970
  background: "rgb(30, 30, 30)",
966
971
  // Matches row.background and card.background
967
- outline: "rgb(75, 85, 99)"
968
- // Dark theme bordered row outline
972
+ outline: "rgb(64, 64, 64)"
973
+ // card.border, as light's is
969
974
  },
970
975
  rowVariant: {
971
976
  success: {