@cmgfi/clear-ds 1.1.1 → 1.1.3
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +54 -5
- package/dist/index.mjs +3674 -3585
- package/dist/index.mjs.map +1 -1
- package/dist/llms.txt +3 -3
- package/dist/styles.d.ts +1 -0
- package/dist/tokens/tokens.css +3 -3
- package/dist/tokens/tokens.d.ts +1 -0
- package/package.json +10 -4
package/dist/llms.txt
CHANGED
|
@@ -187,7 +187,7 @@ import type { ButtonProps, ButtonVariant, ButtonSize } from '@cmgfi/clear-ds';
|
|
|
187
187
|
|
|
188
188
|
Props:
|
|
189
189
|
- `variant`: `'primary' | 'secondary' | 'ghost' | 'danger' | 'link'` — default `'primary'`
|
|
190
|
-
- `size`: `'md' | '
|
|
190
|
+
- `size`: `'sm' | 'md' | 'lg'` — `sm` = 24px height, `md` = 36px height (default), `lg` = 40px height
|
|
191
191
|
- `leadingIcon`: ReactNode — rendered before the label
|
|
192
192
|
- `trailingIcon`: ReactNode — rendered after the label
|
|
193
193
|
- `badge`: `string | number` — red notification badge rendered after the label
|
|
@@ -215,7 +215,7 @@ import type { IconButtonProps } from '@cmgfi/clear-ds';
|
|
|
215
215
|
Props:
|
|
216
216
|
- `icon`: ReactNode — the icon to display (e.g. `<i className="pi pi-search" />`)
|
|
217
217
|
- `variant`: `ButtonVariant` — same variants as Button, default `'primary'`
|
|
218
|
-
- `size`: `'md' | '
|
|
218
|
+
- `size`: `'sm' | 'md' | 'lg'` — `sm` = 24×24px, `md` = 36×36px (default), `lg` = 40×40px
|
|
219
219
|
- `aria-label`: string — **required** (no visible text)
|
|
220
220
|
- `disabled`: boolean
|
|
221
221
|
- Extends `React.ButtonHTMLAttributes<HTMLButtonElement>`
|
|
@@ -1482,7 +1482,7 @@ The full interactive best practices reference is in Storybook under **Best Pract
|
|
|
1482
1482
|
|
|
1483
1483
|
### Mobile & Responsive
|
|
1484
1484
|
- Design for 375px (iPhone SE) as the smallest mobile viewport
|
|
1485
|
-
- Minimum touch target: 44×44px (use `Button md` =
|
|
1485
|
+
- Minimum touch target: 44×44px (use `Button md` = 36px for mobile; supplement with padding to reach 44px)
|
|
1486
1486
|
- Test at 375px, 768px, 1024px, 1440px
|
|
1487
1487
|
- Stack form fields vertically on mobile; never use multi-column form layouts below 768px
|
|
1488
1488
|
|
package/dist/styles.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/dist/tokens/tokens.css
CHANGED
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
--breakpoint-lg: 1200px;
|
|
31
31
|
|
|
32
32
|
--font-family: 'Open Sans', sans-serif;
|
|
33
|
-
--color-text:
|
|
34
|
-
--color-text-secondary:
|
|
33
|
+
--color-text: var(--navy-800);
|
|
34
|
+
--color-text-secondary: var(--navy-400);
|
|
35
35
|
|
|
36
36
|
/* --- Teal ---
|
|
37
37
|
Core brand color for key interactive elements */
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
--color-status-info-border: var(--blue-200); /* Info borders */
|
|
254
254
|
|
|
255
255
|
/* ── Focus Rings ─────────────────────────────────────────────────────── */
|
|
256
|
-
--focus-ring: 0 0 0 2px var(--surface-50), 0 0 0
|
|
256
|
+
--focus-ring: 0 0 0 2px var(--surface-50), 0 0 0 4px var(--teal-700); /* Standard keyboard focus */
|
|
257
257
|
--focus-ring-inset: inset 0 0 0 2px var(--teal-700); /* Inset variant — menus, popovers */
|
|
258
258
|
|
|
259
259
|
/* ── Border Radius ───────────────────────────────────────────────────── */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmgfi/clear-ds",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "CMG Financial — Clear Design System React component library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmg",
|
|
@@ -27,15 +27,21 @@
|
|
|
27
27
|
"require": "./dist/index.cjs",
|
|
28
28
|
"types": "./dist/index.d.ts"
|
|
29
29
|
},
|
|
30
|
-
"./tokens":
|
|
31
|
-
|
|
30
|
+
"./tokens": {
|
|
31
|
+
"types": "./dist/tokens/tokens.d.ts",
|
|
32
|
+
"default": "./dist/tokens/tokens.css"
|
|
33
|
+
},
|
|
34
|
+
"./styles": {
|
|
35
|
+
"types": "./dist/styles.d.ts",
|
|
36
|
+
"default": "./dist/index.css"
|
|
37
|
+
}
|
|
32
38
|
},
|
|
33
39
|
"files": [
|
|
34
40
|
"dist"
|
|
35
41
|
],
|
|
36
42
|
"scripts": {
|
|
37
43
|
"build": "vite build",
|
|
38
|
-
"postbuild": "mkdir -p dist/tokens && cp src/tokens/tokens.css dist/tokens/tokens.css",
|
|
44
|
+
"postbuild": "mkdir -p dist/tokens && cp src/tokens/tokens.css dist/tokens/tokens.css && cp src/tokens/tokens.d.ts dist/tokens/tokens.d.ts && cp src/styles.d.ts dist/styles.d.ts",
|
|
39
45
|
"build:watch": "vite build --watch",
|
|
40
46
|
"storybook": "storybook dev -p 6006",
|
|
41
47
|
"build-storybook": "storybook build",
|