@sproutsocial/racine 31.7.14 → 31.7.15

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,22 @@
1
1
  # Change Log
2
2
 
3
+ ## 31.7.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a0b98f1]
8
+ - Updated dependencies [ea120a6]
9
+ - Updated dependencies [690479a]
10
+ - Updated dependencies [c36361c]
11
+ - Updated dependencies [a635951]
12
+ - @sproutsocial/seeds-react-character-counter@1.0.8
13
+ - @sproutsocial/seeds-react-grid@0.2.13
14
+ - @sproutsocial/seeds-react-duration@1.0.32
15
+ - @sproutsocial/seeds-react-image@1.0.29
16
+ - @sproutsocial/seeds-react-empty-state@1.0.31
17
+ - @sproutsocial/seeds-react-avatar@1.1.25
18
+ - @sproutsocial/seeds-react-message@1.0.59
19
+
3
20
  ## 31.7.14
4
21
 
5
22
  ### Patch Changes
@@ -751,6 +751,41 @@
751
751
  }
752
752
 
753
753
  /* end @layer components */
754
+ /* --- seeds-react-character-counter --- */
755
+ /**
756
+ * Seeds CharacterCounter component classes
757
+ * Use these instead of writing out individual Tailwind utility classes.
758
+ *
759
+ * Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
760
+ * CSS variable definitions and dark mode support.
761
+ *
762
+ * Usage:
763
+ * <div class="seeds-character-counter" role="status">5</div>
764
+ *
765
+ * Rules live in `@layer components` so that consumer Tailwind utilities
766
+ * (e.g. `mx-200`, `p-300`) win in the cascade and can override these component
767
+ * styles, rather than tying/beating them on specificity.
768
+ */
769
+
770
+ @layer components {
771
+ .seeds-character-counter {
772
+ font-family: var(--font-family);
773
+ font-size: var(--font-size-200);
774
+ line-height: 1;
775
+ font-weight: var(--font-weight-semibold);
776
+ font-variant-numeric: tabular-nums;
777
+ color: var(--color-text-subtext);
778
+ }
779
+
780
+ .seeds-character-counter-mini {
781
+ font-size: var(--font-size-100);
782
+ }
783
+
784
+ .seeds-character-counter-overlimit {
785
+ color: var(--color-text-error);
786
+ }
787
+ }
788
+
754
789
  /* --- seeds-react-chat-bubble --- */
755
790
  /**
756
791
  * Seeds ChatBubble component classes
@@ -1275,6 +1310,95 @@
1275
1310
  }
1276
1311
  }
1277
1312
 
1313
+ /* --- seeds-react-duration --- */
1314
+ /**
1315
+ * Seeds Duration component classes
1316
+ * Use these instead of writing out individual Tailwind utility classes.
1317
+ *
1318
+ * Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
1319
+ * CSS variable definitions and dark mode support (consistent with other Seeds
1320
+ * components). font-variant-numeric has no design token, so this rule uses none.
1321
+ *
1322
+ * Usage:
1323
+ * <span class="seeds-duration">1m 30s</span>
1324
+ */
1325
+
1326
+ @layer components {
1327
+ .seeds-duration {
1328
+ font-variant-numeric: tabular-nums;
1329
+ }
1330
+ }
1331
+
1332
+ /* --- seeds-react-empty-state --- */
1333
+ /**
1334
+ * Seeds EmptyState component classes
1335
+ * Use these instead of writing out individual Tailwind utility classes.
1336
+ *
1337
+ * Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
1338
+ * CSS variable definitions and dark mode support.
1339
+ *
1340
+ * Usage:
1341
+ * <div class="seeds-empty-state">...</div>
1342
+ *
1343
+ * Rules live in @layer components so that consumer Tailwind utilities
1344
+ * (e.g. mx-200, p-300) win in the cascade and can override these component
1345
+ * styles, rather than tying/beating them on specificity.
1346
+ */
1347
+
1348
+ @layer components {
1349
+ .seeds-empty-state {
1350
+ max-width: 400px;
1351
+ margin-inline: auto;
1352
+ }
1353
+
1354
+ .seeds-empty-state-media {
1355
+ display: flex;
1356
+ flex-direction: column;
1357
+ justify-content: center;
1358
+ margin-bottom: var(--space-450);
1359
+ }
1360
+
1361
+ .seeds-empty-state-content {
1362
+ text-align: center;
1363
+ }
1364
+
1365
+ .seeds-empty-state-headline {
1366
+ margin: 0;
1367
+ padding-left: 0;
1368
+ padding-right: 0;
1369
+ font-family: var(--font-family);
1370
+ color: var(--color-text-headline);
1371
+ font-weight: var(--font-weight-semibold);
1372
+ font-size: var(--font-size-400);
1373
+ line-height: var(--line-height-400);
1374
+ }
1375
+
1376
+ .seeds-empty-state-subtext {
1377
+ margin: 0;
1378
+ margin-top: var(--space-400);
1379
+ padding-left: 0;
1380
+ padding-right: 0;
1381
+ font-family: var(--font-family);
1382
+ color: var(--color-text-subtext);
1383
+ font-weight: var(--font-weight-normal);
1384
+ font-size: var(--font-size-200);
1385
+ line-height: var(--line-height-200);
1386
+ }
1387
+
1388
+ .seeds-empty-state-actions {
1389
+ margin-top: var(--space-450);
1390
+ }
1391
+
1392
+ /* -empty MUST follow the base rule: equal specificity, source order wins */
1393
+ .seeds-empty-state-actions-empty {
1394
+ margin-top: 0;
1395
+ }
1396
+
1397
+ .seeds-empty-state-secondary-action {
1398
+ margin-top: var(--space-400);
1399
+ }
1400
+ }
1401
+
1278
1402
  /* --- seeds-react-fieldset --- */
1279
1403
  /**
1280
1404
  * Seeds Fieldset component classes
@@ -1378,6 +1502,95 @@
1378
1502
  }
1379
1503
  }
1380
1504
 
1505
+ /* --- seeds-react-grid --- */
1506
+ /**
1507
+ * Seeds Grid component classes.
1508
+ *
1509
+ * Scalar column/gap values are applied inline by GridTailwind (jsdom-safe and
1510
+ * they win over these rules). These rules provide sane defaults and drive the
1511
+ * responsive cases: GridTailwind sets --sg-* custom properties per breakpoint
1512
+ * and the media queries below promote them, resolving the sm -> md -> lg -> xl
1513
+ * cascade. Breakpoints match @sproutsocial/seeds-react-theme
1514
+ * (sm 640 / md 768 / lg 1024 / xl 1280).
1515
+ *
1516
+ * All rules are wrapped in `@layer components` so consumer Tailwind utilities
1517
+ * (unlayered) win the cascade, matching button.css.
1518
+ */
1519
+
1520
+ @layer components {
1521
+ .seeds-grid {
1522
+ display: grid;
1523
+ grid-template-columns: var(--sg-cols, repeat(1, 1fr));
1524
+ row-gap: var(--sg-row-gap, 0);
1525
+ column-gap: var(--sg-col-gap, 0);
1526
+ }
1527
+
1528
+ @media (min-width: 640px) {
1529
+ .seeds-grid {
1530
+ grid-template-columns: var(--sg-cols-sm, var(--sg-cols, repeat(1, 1fr)));
1531
+ row-gap: var(--sg-row-gap-sm, var(--sg-row-gap, 0));
1532
+ column-gap: var(--sg-col-gap-sm, var(--sg-col-gap, 0));
1533
+ }
1534
+ }
1535
+
1536
+ @media (min-width: 768px) {
1537
+ .seeds-grid {
1538
+ grid-template-columns: var(
1539
+ --sg-cols-md,
1540
+ var(--sg-cols-sm, var(--sg-cols, repeat(1, 1fr)))
1541
+ );
1542
+ row-gap: var(--sg-row-gap-md, var(--sg-row-gap-sm, var(--sg-row-gap, 0)));
1543
+ column-gap: var(
1544
+ --sg-col-gap-md,
1545
+ var(--sg-col-gap-sm, var(--sg-col-gap, 0))
1546
+ );
1547
+ }
1548
+ }
1549
+
1550
+ @media (min-width: 1024px) {
1551
+ .seeds-grid {
1552
+ grid-template-columns: var(
1553
+ --sg-cols-lg,
1554
+ var(--sg-cols-md, var(--sg-cols-sm, var(--sg-cols, repeat(1, 1fr))))
1555
+ );
1556
+ row-gap: var(
1557
+ --sg-row-gap-lg,
1558
+ var(--sg-row-gap-md, var(--sg-row-gap-sm, var(--sg-row-gap, 0)))
1559
+ );
1560
+ column-gap: var(
1561
+ --sg-col-gap-lg,
1562
+ var(--sg-col-gap-md, var(--sg-col-gap-sm, var(--sg-col-gap, 0)))
1563
+ );
1564
+ }
1565
+ }
1566
+
1567
+ @media (min-width: 1280px) {
1568
+ .seeds-grid {
1569
+ grid-template-columns: var(
1570
+ --sg-cols-xl,
1571
+ var(
1572
+ --sg-cols-lg,
1573
+ var(--sg-cols-md, var(--sg-cols-sm, var(--sg-cols, repeat(1, 1fr))))
1574
+ )
1575
+ );
1576
+ row-gap: var(
1577
+ --sg-row-gap-xl,
1578
+ var(
1579
+ --sg-row-gap-lg,
1580
+ var(--sg-row-gap-md, var(--sg-row-gap-sm, var(--sg-row-gap, 0)))
1581
+ )
1582
+ );
1583
+ column-gap: var(
1584
+ --sg-col-gap-xl,
1585
+ var(
1586
+ --sg-col-gap-lg,
1587
+ var(--sg-col-gap-md, var(--sg-col-gap-sm, var(--sg-col-gap, 0)))
1588
+ )
1589
+ );
1590
+ }
1591
+ }
1592
+ }
1593
+
1381
1594
  /* --- seeds-react-icon --- */
1382
1595
  /**
1383
1596
  * Seeds Icon component classes
@@ -1416,6 +1629,26 @@
1416
1629
  }
1417
1630
  }
1418
1631
 
1632
+ /* --- seeds-react-image --- */
1633
+ /**
1634
+ * Seeds Image component classes
1635
+ * Use these instead of writing out individual Tailwind utility classes.
1636
+ *
1637
+ * Usage:
1638
+ * <img class="seeds-image" />
1639
+ * <img class="seeds-image seeds-image-loading" />
1640
+ */
1641
+
1642
+ @layer components {
1643
+ .seeds-image {
1644
+ display: block;
1645
+ }
1646
+
1647
+ .seeds-image-loading {
1648
+ opacity: 0;
1649
+ }
1650
+ }
1651
+
1419
1652
  /* --- seeds-react-indicator --- */
1420
1653
  /**
1421
1654
  * Seeds Indicator component classes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "31.7.14",
3
+ "version": "31.7.15",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -74,14 +74,14 @@
74
74
  "dependencies": {
75
75
  "@size-limit/file": "^11.1.6",
76
76
  "@sproutsocial/seeds-react-accordion": "^0.4.59",
77
- "@sproutsocial/seeds-react-avatar": "^1.1.24",
77
+ "@sproutsocial/seeds-react-avatar": "^1.1.25",
78
78
  "@sproutsocial/seeds-react-badge": "^2.0.42",
79
79
  "@sproutsocial/seeds-react-banner": "^1.1.31",
80
80
  "@sproutsocial/seeds-react-box": "^1.1.28",
81
81
  "@sproutsocial/seeds-react-breadcrumb": "^1.1.14",
82
82
  "@sproutsocial/seeds-react-button": "^2.3.4",
83
83
  "@sproutsocial/seeds-react-card": "^1.1.50",
84
- "@sproutsocial/seeds-react-character-counter": "^1.0.7",
84
+ "@sproutsocial/seeds-react-character-counter": "^1.0.8",
85
85
  "@sproutsocial/seeds-react-chart-legend": "^1.0.49",
86
86
  "@sproutsocial/seeds-react-chat-bubble": "^0.2.5",
87
87
  "@sproutsocial/seeds-react-checkbox": "^1.3.50",
@@ -92,14 +92,14 @@
92
92
  "@sproutsocial/seeds-react-data-table": "^2.6.32",
93
93
  "@sproutsocial/seeds-react-datepicker": "^1.0.47",
94
94
  "@sproutsocial/seeds-react-drawer": "^2.2.17",
95
- "@sproutsocial/seeds-react-duration": "^1.0.31",
96
- "@sproutsocial/seeds-react-empty-state": "^1.0.30",
95
+ "@sproutsocial/seeds-react-duration": "^1.0.32",
96
+ "@sproutsocial/seeds-react-empty-state": "^1.0.31",
97
97
  "@sproutsocial/seeds-react-fieldset": "^1.0.31",
98
98
  "@sproutsocial/seeds-react-form-field": "^1.1.25",
99
- "@sproutsocial/seeds-react-grid": "^0.2.12",
99
+ "@sproutsocial/seeds-react-grid": "^0.2.13",
100
100
  "@sproutsocial/seeds-react-hooks": "^3.2.7",
101
101
  "@sproutsocial/seeds-react-icon": "^2.4.8",
102
- "@sproutsocial/seeds-react-image": "^1.0.28",
102
+ "@sproutsocial/seeds-react-image": "^1.0.29",
103
103
  "@sproutsocial/seeds-react-indicator": "^1.0.48",
104
104
  "@sproutsocial/seeds-react-input": "^1.5.37",
105
105
  "@sproutsocial/seeds-react-keyboard-key": "^1.0.30",
@@ -108,7 +108,7 @@
108
108
  "@sproutsocial/seeds-react-list": "^0.3.36",
109
109
  "@sproutsocial/seeds-react-loader": "^1.0.30",
110
110
  "@sproutsocial/seeds-react-loader-button": "^1.0.55",
111
- "@sproutsocial/seeds-react-message": "^1.0.58",
111
+ "@sproutsocial/seeds-react-message": "^1.0.59",
112
112
  "@sproutsocial/seeds-react-mixins": "^4.3.12",
113
113
  "@sproutsocial/seeds-react-modal": "^2.5.32",
114
114
  "@sproutsocial/seeds-react-narrative-kit": "^0.6.3",