@sproutsocial/racine 31.7.26 → 31.7.27

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Change Log
2
2
 
3
+ ## 31.7.27
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [736b022]
8
+ - Updated dependencies [8842be3]
9
+ - Updated dependencies [9d7c36d]
10
+ - @sproutsocial/seeds-react-character-counter@1.1.0
11
+ - @sproutsocial/seeds-react-avatar@1.2.0
12
+ - @sproutsocial/seeds-react-hooks@3.4.0
13
+ - @sproutsocial/seeds-react-message@1.0.66
14
+ - @sproutsocial/seeds-react-drawer@2.2.23
15
+ - @sproutsocial/seeds-react-input@1.5.43
16
+ - @sproutsocial/seeds-react-panel@1.2.2
17
+ - @sproutsocial/seeds-react-peek-in@0.6.2
18
+ - @sproutsocial/seeds-react-popout@2.5.24
19
+ - @sproutsocial/seeds-react-token@1.5.21
20
+ - @sproutsocial/seeds-react-token-input@1.4.65
21
+ - @sproutsocial/seeds-react-accordion@0.4.68
22
+
3
23
  ## 31.7.26
4
24
 
5
25
  ### Patch Changes
@@ -289,6 +289,55 @@
289
289
  }
290
290
  }
291
291
 
292
+ /* --- seeds-react-avatar --- */
293
+ /**
294
+ * Seeds DualAvatar component classes
295
+ * Use these instead of writing out individual Tailwind utility classes.
296
+ *
297
+ * Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
298
+ * CSS variable definitions and dark mode support, plus avatar.css for the
299
+ * two Avatars themselves.
300
+ *
301
+ * Usage:
302
+ * <div class="seeds-dual-avatar" style="--seeds-dual-avatar-offset: 4px">
303
+ * <div class="seeds-avatar ...">JD</div>
304
+ * <div class="seeds-avatar seeds-dual-avatar-secondary ...">JR</div>
305
+ * </div>
306
+ *
307
+ * The overhang is driven by the --seeds-dual-avatar-offset custom property, set
308
+ * inline by the component as a fraction of its `size` prop and inherited by the
309
+ * secondary avatar.
310
+ *
311
+ * This file sits alongside avatar.css rather than inside src/DualAvatar/ because
312
+ * racine's stylesheet aggregation globs `src/*.css` per package and does not
313
+ * recurse into subdirectories.
314
+ *
315
+ * Rules live in `@layer components` so that consumer Tailwind utilities win in
316
+ * the cascade and can override these component styles.
317
+ */
318
+
319
+ @layer components {
320
+ .seeds-dual-avatar {
321
+ position: relative;
322
+ display: inline-flex;
323
+ flex-shrink: 0;
324
+ }
325
+
326
+ .seeds-avatar.seeds-dual-avatar-secondary {
327
+ position: absolute;
328
+ right: calc(-1 * var(--seeds-dual-avatar-offset));
329
+ bottom: calc(-1 * var(--seeds-dual-avatar-offset));
330
+ }
331
+
332
+ /*
333
+ * An image secondary has no border of its own (.seeds-avatar sets border: none),
334
+ * so it needs a ring to separate it from the primary underneath.
335
+ */
336
+ .seeds-avatar.seeds-dual-avatar-secondary:not(.seeds-avatar-fallback) {
337
+ box-shadow: 0 0 0 1px var(--color-container-bg-base);
338
+ }
339
+ }
340
+
292
341
  /* --- seeds-react-badge --- */
293
342
  /**
294
343
  * Seeds Badge component classes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "31.7.26",
3
+ "version": "31.7.27",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -73,15 +73,15 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@size-limit/file": "^11.1.6",
76
- "@sproutsocial/seeds-react-accordion": "^0.4.67",
77
- "@sproutsocial/seeds-react-avatar": "^1.1.29",
76
+ "@sproutsocial/seeds-react-accordion": "^0.4.68",
77
+ "@sproutsocial/seeds-react-avatar": "^1.2.0",
78
78
  "@sproutsocial/seeds-react-badge": "^2.0.46",
79
79
  "@sproutsocial/seeds-react-banner": "^1.1.36",
80
80
  "@sproutsocial/seeds-react-box": "^1.1.32",
81
81
  "@sproutsocial/seeds-react-breadcrumb": "^1.1.18",
82
82
  "@sproutsocial/seeds-react-button": "^2.3.9",
83
83
  "@sproutsocial/seeds-react-card": "^1.1.55",
84
- "@sproutsocial/seeds-react-character-counter": "^1.0.10",
84
+ "@sproutsocial/seeds-react-character-counter": "^1.1.0",
85
85
  "@sproutsocial/seeds-react-chart-legend": "^1.0.54",
86
86
  "@sproutsocial/seeds-react-chat-bubble": "^0.2.7",
87
87
  "@sproutsocial/seeds-react-checkbox": "^1.3.55",
@@ -91,33 +91,33 @@
91
91
  "@sproutsocial/seeds-react-content-header": "^0.3.1",
92
92
  "@sproutsocial/seeds-react-data-table": "^2.6.38",
93
93
  "@sproutsocial/seeds-react-datepicker": "^1.0.51",
94
- "@sproutsocial/seeds-react-drawer": "^2.2.22",
94
+ "@sproutsocial/seeds-react-drawer": "^2.2.23",
95
95
  "@sproutsocial/seeds-react-duration": "^1.0.36",
96
96
  "@sproutsocial/seeds-react-empty-state": "^1.0.35",
97
97
  "@sproutsocial/seeds-react-fieldset": "^1.0.35",
98
98
  "@sproutsocial/seeds-react-form-field": "^1.1.29",
99
99
  "@sproutsocial/seeds-react-grid": "^0.2.17",
100
- "@sproutsocial/seeds-react-hooks": "^3.3.2",
100
+ "@sproutsocial/seeds-react-hooks": "^3.4.0",
101
101
  "@sproutsocial/seeds-react-icon": "^2.5.2",
102
102
  "@sproutsocial/seeds-react-image": "^1.0.33",
103
103
  "@sproutsocial/seeds-react-indicator": "^1.0.52",
104
- "@sproutsocial/seeds-react-input": "^1.5.42",
104
+ "@sproutsocial/seeds-react-input": "^1.5.43",
105
105
  "@sproutsocial/seeds-react-keyboard-key": "^1.0.34",
106
106
  "@sproutsocial/seeds-react-label": "^1.0.34",
107
107
  "@sproutsocial/seeds-react-link": "^1.1.24",
108
108
  "@sproutsocial/seeds-react-list": "^0.4.0",
109
109
  "@sproutsocial/seeds-react-loader": "^1.0.34",
110
110
  "@sproutsocial/seeds-react-loader-button": "^1.0.60",
111
- "@sproutsocial/seeds-react-message": "^1.0.65",
111
+ "@sproutsocial/seeds-react-message": "^1.0.66",
112
112
  "@sproutsocial/seeds-react-mixins": "^4.3.16",
113
113
  "@sproutsocial/seeds-react-modal": "^2.6.1",
114
114
  "@sproutsocial/seeds-react-narrative-kit": "^0.6.7",
115
115
  "@sproutsocial/seeds-react-numeral": "^1.0.60",
116
116
  "@sproutsocial/seeds-react-pagination": "^0.1.33",
117
- "@sproutsocial/seeds-react-panel": "^1.2.1",
118
- "@sproutsocial/seeds-react-peek-in": "^0.6.1",
117
+ "@sproutsocial/seeds-react-panel": "^1.2.2",
118
+ "@sproutsocial/seeds-react-peek-in": "^0.6.2",
119
119
  "@sproutsocial/seeds-react-partner-logo": "^1.7.24",
120
- "@sproutsocial/seeds-react-popout": "^2.5.23",
120
+ "@sproutsocial/seeds-react-popout": "^2.5.24",
121
121
  "@sproutsocial/seeds-react-portal": "^1.2.0",
122
122
  "@sproutsocial/seeds-react-progress": "^0.2.19",
123
123
  "@sproutsocial/seeds-react-radio": "^1.3.35",
@@ -134,8 +134,8 @@
134
134
  "@sproutsocial/seeds-react-text": "^1.5.5",
135
135
  "@sproutsocial/seeds-react-textarea": "^1.0.33",
136
136
  "@sproutsocial/seeds-react-toast": "^1.0.54",
137
- "@sproutsocial/seeds-react-token": "^1.5.20",
138
- "@sproutsocial/seeds-react-token-input": "^1.4.64",
137
+ "@sproutsocial/seeds-react-token": "^1.5.21",
138
+ "@sproutsocial/seeds-react-token-input": "^1.4.65",
139
139
  "@sproutsocial/seeds-react-tooltip": "^1.1.39",
140
140
  "@sproutsocial/seeds-react-theme": "^4.5.1",
141
141
  "@sproutsocial/seeds-react-theme-provider": "^1.1.29",
@@ -163,7 +163,7 @@
163
163
  "@sproutsocial/seeds-motion": "^1.8.2",
164
164
  "@sproutsocial/seeds-networkcolor": "^2.22.0",
165
165
  "@sproutsocial/seeds-partner-logos": "^2.4.1",
166
- "@sproutsocial/seeds-react-menu": "^1.18.1",
166
+ "@sproutsocial/seeds-react-menu": "^1.18.2",
167
167
  "@sproutsocial/seeds-react-testing-library": "*",
168
168
  "@sproutsocial/seeds-space": "^0.8.1",
169
169
  "@sproutsocial/seeds-testing": "*",