@ngrr/ds 0.1.27 → 0.1.31

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 +1,50 @@
1
- # DSN
1
+ # DS-Nagarro
2
+
3
+ AI-first React component library.
4
+
5
+ ---
6
+
7
+ ## For AI agents
8
+
9
+ Read `node_modules/@ngrr/ds/AI.md` before writing any code.
10
+ That file contains all the rules for using this design system correctly — layout, tokens, patterns, and component usage guidelines.
11
+
12
+ Add this to your project's `.cursorrules` to load it automatically:
13
+
14
+ ```
15
+ Read node_modules/@ngrr/ds/AI.md before writing any code.
16
+ ```
17
+
18
+ ---
19
+
20
+ ## Setup
21
+
22
+ ```bash
23
+ npm install @ngrr/ds --legacy-peer-deps
24
+ ```
25
+
26
+ ```tsx
27
+ // main.tsx — before everything else
28
+ import '@ngrr/ds/style.css'
29
+ import '@ngrr/ds/tokens.css'
30
+ ```
31
+
32
+ ```css
33
+ /* index.css */
34
+ html, body { margin: 0; height: 100%; }
35
+ #root { height: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
36
+ ```
37
+
38
+ ---
39
+
40
+ ## Resources
41
+
42
+ - **Storybook:** https://699f3dfd3540c3f346868d55-kmskdmltrn.chromatic.com/
43
+ - **Usage rules:** `node_modules/@ngrr/ds/AI.md`
44
+ - **Contributing:** `AGENTS.md` in the source repository
45
+
46
+ ---
47
+
48
+ ## Stack
49
+
50
+ React 18+ · TypeScript · Styled Components v6 · Vite
@@ -1,11 +1,11 @@
1
- export type BadgeSize = 'sm' | 'lg' | 'dot';
1
+ export type BadgeSize = 'sm' | 'dot';
2
2
  export type BadgeVariant = 'highlight-soft' | 'highlight-strong' | 'informative' | 'inverted' | 'critical';
3
3
  export interface BadgeProps {
4
4
  /**
5
5
  * Visual size of the badge.
6
- * - `sm` — 16 × 16 px minimum; shows count text.
7
- * - `lg` — 24 × 24 px minimum; shows count text.
8
- * - `dot` — 8 × 8 px circle; no text; use for presence/status signals only.
6
+ * - `sm` — 16px visual pill (--size-16) inside a transparent wrapper with
7
+ * 4px padding-block (--inset-tiny), giving a 24px total footprint.
8
+ * - `dot` — 8px circle (--size-8); no text; use for presence signals only.
9
9
  * @default 'sm'
10
10
  */
11
11
  size?: BadgeSize;