@design-system-rte/react 1.15.0 → 1.16.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.
package/README.md CHANGED
@@ -1,4 +1,12 @@
1
- ### Installation Instructions
1
+ ### Installation
2
+
3
+ ```bash
4
+ npm install @design-system-rte/react
5
+ ```
6
+
7
+ `@design-system-rte/core` is installed automatically as a dependency. See the [root README](https://github.com/rte-france/design-system-rte#quick-install) for other packages.
8
+
9
+ ### Setup
2
10
 
3
11
  1. **Add Design System base styles:**
4
12
 
@@ -33,6 +41,8 @@
33
41
  </body>
34
42
  ```
35
43
 
44
+ `data-theme` is required on each themed scope. When `data-mode` is omitted, the mode is inherited from an ancestor carrying `data-mode`. If no ancestor defines a mode, `light` is used as the default.
45
+
36
46
  4. **Use Components:**
37
47
 
38
48
  Implement the different components as documented in the [Storybook](https://opensource.rte-france.com/design-system-rte/?path=/docs/react_composants-button--docs) provided with the library.
@@ -11,5 +11,5 @@ interface TreeviewItemProps extends coreTreeviewItem, Omit<React.HTMLAttributes<
11
11
  isChecked?: boolean;
12
12
  onClick?: (id: string) => void;
13
13
  }
14
- declare const TreeviewItem: ({ id, treeId, itemIndex, labelText, icon, disabled, isCompact, hasCheckbox, isOpen, hasIcon, hasBadge, items, borderTypes, actionIcon, actionMenuItems, depth, onOpenChange, onChange, onActionIconClick, onCheckedIdsChange, selectedId, checkedIds, }: TreeviewItemProps) => import("react").JSX.Element;
14
+ declare const TreeviewItem: ({ id, treeId, itemIndex, labelText, icon, disabled, isCompact, hasCheckbox, isOpen, hasBadge, items, borderTypes, actionIcon, actionMenuItems, depth, onOpenChange, onChange, onActionIconClick, onCheckedIdsChange, selectedId, checkedIds, }: TreeviewItemProps) => import("react").JSX.Element;
15
15
  export default TreeviewItem;