@forgedevstack/bear 1.2.4 → 1.2.5

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 (40) hide show
  1. package/dist/components/Card/Card.types.d.ts +1 -2
  2. package/dist/components/Chat/Chat.const.cjs +1 -1
  3. package/dist/components/Chat/Chat.const.d.ts +1 -1
  4. package/dist/components/Chat/Chat.const.js +1 -1
  5. package/dist/components/ColorSwatch/ColorSwatch.cjs +1 -1
  6. package/dist/components/ColorSwatch/ColorSwatch.js +8 -8
  7. package/dist/components/CommandPalette/CommandPalette.cjs +1 -1
  8. package/dist/components/CommandPalette/CommandPalette.js +71 -71
  9. package/dist/components/DiffSquares/DiffSquares.cjs +1 -1
  10. package/dist/components/DiffSquares/DiffSquares.js +11 -11
  11. package/dist/components/MentionsInput/MentionsInput.cjs +1 -1
  12. package/dist/components/MentionsInput/MentionsInput.js +114 -92
  13. package/dist/components/MentionsInput/MentionsInput.types.d.ts +4 -0
  14. package/dist/components/MessageList/MessageList.cjs +1 -0
  15. package/dist/components/MessageList/MessageList.const.cjs +1 -0
  16. package/dist/components/MessageList/MessageList.const.d.ts +23 -0
  17. package/dist/components/MessageList/MessageList.const.js +30 -0
  18. package/dist/components/MessageList/MessageList.d.ts +19 -0
  19. package/dist/components/MessageList/MessageList.js +182 -0
  20. package/dist/components/MessageList/MessageList.types.d.ts +72 -0
  21. package/dist/components/MessageList/MessageList.utils.cjs +1 -0
  22. package/dist/components/MessageList/MessageList.utils.d.ts +6 -0
  23. package/dist/components/MessageList/MessageList.utils.js +35 -0
  24. package/dist/components/MessageList/index.d.ts +2 -0
  25. package/dist/components/Toast/Toast.cjs +1 -1
  26. package/dist/components/Toast/Toast.d.ts +3 -6
  27. package/dist/components/Toast/Toast.js +82 -76
  28. package/dist/components/Toast/Toast.types.d.ts +9 -0
  29. package/dist/components/Toast/index.d.ts +1 -1
  30. package/dist/components/TreeSelect/TreeSelect.cjs +1 -1
  31. package/dist/components/TreeSelect/TreeSelect.js +22 -22
  32. package/dist/components/index.cjs +1 -1
  33. package/dist/components/index.d.ts +3 -1
  34. package/dist/components/index.js +144 -142
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.js +228 -226
  37. package/dist/styles/_message-list.css +42 -0
  38. package/dist/styles/main.css +1 -0
  39. package/dist/styles.css +47 -0
  40. package/package.json +15 -2
@@ -0,0 +1,42 @@
1
+ /* MessageList theme-aware styles — CSS variables flip with light/dark mode */
2
+
3
+ .Bear-MessageList {
4
+ background-color: var(--bear-bg-primary);
5
+ border-color: var(--bear-border-default);
6
+ }
7
+
8
+ .Bear-MessageList__day-line {
9
+ background-color: var(--bear-border-default);
10
+ }
11
+
12
+ .Bear-MessageList__day-label {
13
+ color: var(--bear-text-secondary);
14
+ }
15
+
16
+ .Bear-MessageList__author {
17
+ color: var(--bear-text-primary);
18
+ }
19
+
20
+ .Bear-MessageList__timestamp {
21
+ color: var(--bear-text-secondary);
22
+ }
23
+
24
+ .Bear-MessageList__bubble {
25
+ background-color: var(--bear-bg-secondary);
26
+ color: var(--bear-text-primary);
27
+ }
28
+
29
+ .Bear-MessageList__bubble--own {
30
+ background-color: var(--bear-primary-500);
31
+ color: var(--bear-text-inverted, #fff);
32
+ }
33
+
34
+ .Bear-MessageList__new-messages {
35
+ background-color: var(--bear-primary-500);
36
+ color: var(--bear-text-inverted, #fff);
37
+ transition: opacity 200ms ease-in-out;
38
+ }
39
+
40
+ .Bear-MessageList__empty {
41
+ color: var(--bear-text-secondary);
42
+ }
@@ -1,5 +1,6 @@
1
1
  @import './_base.css';
2
2
  @import './_buttons.css';
3
3
  @import './_alerts.css';
4
+ @import './_message-list.css';
4
5
  @import './_effects.css';
5
6
  @import './_marquee.css';
package/dist/styles.css CHANGED
@@ -169803,6 +169803,49 @@
169803
169803
  background-color: var(--bear-danger-500);
169804
169804
  }
169805
169805
 
169806
+ /* MessageList theme-aware styles — CSS variables flip with light/dark mode */
169807
+
169808
+ .Bear-MessageList {
169809
+ background-color: var(--bear-bg-primary);
169810
+ border-color: var(--bear-border-default);
169811
+ }
169812
+
169813
+ .Bear-MessageList__day-line {
169814
+ background-color: var(--bear-border-default);
169815
+ }
169816
+
169817
+ .Bear-MessageList__day-label {
169818
+ color: var(--bear-text-secondary);
169819
+ }
169820
+
169821
+ .Bear-MessageList__author {
169822
+ color: var(--bear-text-primary);
169823
+ }
169824
+
169825
+ .Bear-MessageList__timestamp {
169826
+ color: var(--bear-text-secondary);
169827
+ }
169828
+
169829
+ .Bear-MessageList__bubble {
169830
+ background-color: var(--bear-bg-secondary);
169831
+ color: var(--bear-text-primary);
169832
+ }
169833
+
169834
+ .Bear-MessageList__bubble--own {
169835
+ background-color: var(--bear-primary-500);
169836
+ color: var(--bear-text-inverted, #fff);
169837
+ }
169838
+
169839
+ .Bear-MessageList__new-messages {
169840
+ background-color: var(--bear-primary-500);
169841
+ color: var(--bear-text-inverted, #fff);
169842
+ transition: opacity 200ms ease-in-out;
169843
+ }
169844
+
169845
+ .Bear-MessageList__empty {
169846
+ color: var(--bear-text-secondary);
169847
+ }
169848
+
169806
169849
  @keyframes bounce-custom {
169807
169850
  0%, 100% { transform: translateY(0); }
169808
169851
  50% { transform: translateY(var(--bounce-height, -20px)); }
@@ -170524,6 +170567,10 @@
170524
170567
  background-color: rgba(120, 53, 15, 0.2);
170525
170568
  }
170526
170569
 
170570
+ .hover\:bear-opacity-90:hover {
170571
+ opacity: 0.9;
170572
+ }
170573
+
170527
170574
  .focus\:bear-bg-gray-100:focus {
170528
170575
  background-color: #f3f4f6;
170529
170576
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgedevstack/bear",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Strong, reliable React UI components. AeroCraft-powered, zero config required. The protective force of ForgeStack.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -55,10 +55,21 @@
55
55
  "build:modules": "cp -r src/styles dist/styles && cp -r src/postcss dist/postcss",
56
56
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
57
57
  "test": "vitest",
58
+ "test:run": "vitest run",
58
59
  "portal": "cd portal && npm run dev",
59
60
  "portal:install": "cd portal && npm install",
60
61
  "portal:build": "cd portal && npm run build",
61
- "prepublishOnly": "npm run build"
62
+ "sanity": "bash scripts/pre-commit.sh",
63
+ "prepublishOnly": "npm run build",
64
+ "prepare": "husky"
65
+ },
66
+ "lint-staged": {
67
+ "src/**/*.{ts,tsx}": [
68
+ "eslint --fix --max-warnings 0"
69
+ ],
70
+ "portal/src/**/*.{ts,tsx}": [
71
+ "eslint --fix --max-warnings 0"
72
+ ]
62
73
  },
63
74
  "peerDependencies": {
64
75
  "react": ">=18.0.0",
@@ -74,6 +85,8 @@
74
85
  "@vitejs/plugin-react": "^4.3.4",
75
86
  "eslint": "^9.18.0",
76
87
  "eslint-plugin-react-hooks": "^5.1.0",
88
+ "husky": "^9.1.7",
89
+ "lint-staged": "^17.0.7",
77
90
  "postcss": "^8.5.1",
78
91
  "postcss-cli": "^11.0.0",
79
92
  "postcss-import": "^16.1.1",