@redis-ui/components 47.5.0 → 47.5.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redis-ui/components",
3
3
  "license": "UNLICENSED",
4
- "version": "47.5.0",
4
+ "version": "47.5.2",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "repository": "git@github.com:redislabsdev/redis-ui.git",
@@ -29,7 +29,7 @@
29
29
  "test": "vitest"
30
30
  },
31
31
  "peerDependencies": {
32
- "@redis-ui/icons": "^8.0.0",
32
+ "@redis-ui/icons": "^8.0.0 || ^9.0.0",
33
33
  "@redis-ui/styles": "^16.4.1",
34
34
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
35
35
  "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
@@ -21,7 +21,7 @@ or `style.width`/`height` for custom sizing. See the [Icons](./references/Icons.
21
21
 
22
22
  ```tsx
23
23
  import { EditIcon, DeleteIcon, iconVariants, type IconVariant } from '@redis-ui/icons';
24
- import { RedisIcon } from '@redis-ui/icons/multicolor';
24
+ import { RedisLogoDarkMinIcon } from '@redis-ui/icons/multicolor';
25
25
  ```
26
26
 
27
27
  ## Key Patterns
@@ -7,7 +7,7 @@ Icon set published in `@redis-ui/icons`. Two flavors are available:
7
7
 
8
8
  ```tsx
9
9
  import { StarsIcon, EditIcon, DeleteIcon } from '@redis-ui/icons';
10
- import { RedisIcon } from '@redis-ui/icons/multicolor';
10
+ import { RedisLogoDarkMinIcon } from '@redis-ui/icons/multicolor';
11
11
  ```
12
12
 
13
13
  Type and variant exports:
@@ -52,10 +52,10 @@ their colors are baked in.
52
52
 
53
53
  ```tsx
54
54
  import { StarsIcon } from '@redis-ui/icons';
55
- import { RedisIcon } from '@redis-ui/icons/multicolor';
55
+ import { RedisLogoDarkMinIcon } from '@redis-ui/icons/multicolor';
56
56
 
57
57
  <StarsIcon size="XL" variant="success" />
58
- <RedisIcon />
58
+ <RedisLogoDarkMinIcon />
59
59
  ```
60
60
 
61
61
  ### Sizes and Variants
@@ -96,7 +96,7 @@ import { PaginationInfoLabelProps } from '@redis-ui/components';
96
96
  import { columns, tableData } from './TableStory.data';
97
97
 
98
98
  const renderRowCount: PaginationInfoLabelProps['renderer'] = ({ visibleItemCount, totalItemCount }) =>
99
- `Showing ${visibleItemCount} out of ${totalItemCount} rows`;
99
+ `Showing ${visibleItemCount} out of ${totalItemCount} ${totalItemCount === 1 ? 'row' : 'rows'}`;
100
100
 
101
101
  const renderPageCount: PaginationInfoLabelProps['renderer'] = ({ pageIndex, pageCount }) =>
102
102
  `${pageIndex + 1} of ${pageCount}`;
@@ -158,14 +158,14 @@ This slot inherits `TypographyBodyProps` except `children` and renders footer te
158
158
  ```tsx
159
159
  import { SideBar } from '@redis-ui/components';
160
160
  import { ShardIcon } from '@redis-ui/icons';
161
- import { RedisIcon } from '@redis-ui/icons/multicolor';
161
+ import { RedisLogoDarkMinIcon } from '@redis-ui/icons/multicolor';
162
162
  import { useArgState } from '../../helpers/useArgState';
163
163
 
164
164
  const [expanded, onToggle] = useArgState({ arg: true, getNewState: (arg) => !arg });
165
165
 
166
166
  <SideBar isExpanded={expanded}>
167
167
  <SideBar.Header onToggle={onToggle}>
168
- <SideBar.SideBarLogo logoIcon={RedisIcon} />
168
+ <SideBar.SideBarLogo logoIcon={RedisLogoDarkMinIcon} />
169
169
  </SideBar.Header>
170
170
  <SideBar.Item tooltipProps={{ text: 'tooltip' }}>
171
171
  <SideBar.Item.Icon icon={ShardIcon} />
@@ -187,7 +187,7 @@ const [expanded, onToggle] = useArgState({ arg: true, getNewState: (arg) => !arg
187
187
  import { SideBar } from '@redis-ui/components';
188
188
  import { PlusIcon } from '@redis-ui/icons';
189
189
  import { useState } from 'react';
190
- import { RedisIcon } from '@redis-ui/icons/multicolor';
190
+ import { RedisLogoDarkMinIcon } from '@redis-ui/icons/multicolor';
191
191
  import { items } from './SideBar.data';
192
192
 
193
193
  const [expanded, setExpanded] = useState(true);
@@ -195,7 +195,7 @@ const [activeLink, setActiveLink] = useState(items.top[0].content);
195
195
 
196
196
  <SideBar isExpanded={expanded} style={{ maxHeight: '55rem', height: 'calc(100vh - 2rem)' }}>
197
197
  <SideBar.Header onToggle={() => setExpanded(!expanded)}>
198
- <SideBar.SideBarLogo logoIcon={RedisIcon} />
198
+ <SideBar.SideBarLogo logoIcon={RedisLogoDarkMinIcon} />
199
199
  </SideBar.Header>
200
200
  <SideBar.ScrollContainer>
201
201
  <SideBar.ItemsContainer>
@@ -277,7 +277,7 @@ const [activeLink, setActiveLink] = useState(items.top[0].content);
277
277
  import { SideBar } from '@redis-ui/components';
278
278
  import { PlusIcon } from '@redis-ui/icons';
279
279
  import { useState } from 'react';
280
- import { RedisIcon } from '@redis-ui/icons/multicolor';
280
+ import { RedisLogoDarkMinIcon } from '@redis-ui/icons/multicolor';
281
281
  import { groups } from './SideBar.data';
282
282
 
283
283
  const [expanded, setExpanded] = useState(true);
@@ -289,7 +289,7 @@ const [activeLink, setActiveLink] = useState(groups[0].items[0].content);
289
289
  expandedWidth="35rem"
290
290
  >
291
291
  <SideBar.Header onToggle={() => setExpanded(!expanded)}>
292
- <SideBar.SideBarLogo logoIcon={RedisIcon} />
292
+ <SideBar.SideBarLogo logoIcon={RedisLogoDarkMinIcon} />
293
293
  </SideBar.Header>
294
294
  <SideBar.ScrollContainer>
295
295
  {groups.map((group, groupIdx) => (
@@ -340,7 +340,7 @@ const [activeLink, setActiveLink] = useState(groups[0].items[0].content);
340
340
  ```tsx
341
341
  import { SideBar } from '@redis-ui/components';
342
342
  import { useState } from 'react';
343
- import { RedisIcon } from '@redis-ui/icons/multicolor';
343
+ import { RedisLogoDarkMinIcon } from '@redis-ui/icons/multicolor';
344
344
  import { StoryHList } from '../../helpers/Story.style';
345
345
 
346
346
  const [expanded, setExpanded] = useState(true);
@@ -348,7 +348,7 @@ const [expanded, setExpanded] = useState(true);
348
348
  const content = (
349
349
  <>
350
350
  <SideBar.Header onToggle={() => setExpanded((val) => !val)}>
351
- <SideBar.SideBarLogo logoIcon={RedisIcon} />
351
+ <SideBar.SideBarLogo logoIcon={RedisLogoDarkMinIcon} />
352
352
  </SideBar.Header>
353
353
  <SideBar.Footer>
354
354
  <SideBar.Footer.MetaData>