@ramme-io/ui 1.2.2 → 1.3.0

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.
@@ -1,35 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconName } from './Icon';
3
3
 
4
- /** @wizard
5
- * @name Button
6
- * @description The primary interactive element. Supports polymorphism (rendering as a link) via the 'asChild' prop.
7
- * @category Input
8
- * @props
9
- * - name: variant
10
- * type: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'link' | 'accent'
11
- * description: The visual style of the button.
12
- * default: 'primary'
13
- * - name: size
14
- * type: 'sm' | 'md' | 'lg' | 'icon'
15
- * description: The size of the button.
16
- * default: 'md'
17
- * - name: loading
18
- * type: boolean
19
- * description: If true, replaces content with a spinner.
20
- * default: false
21
- * - name: iconLeft
22
- * type: IconName
23
- * description: Optional icon to display before the text.
24
- * - name: asChild
25
- * type: boolean
26
- * description: If true, delegates rendering to the child element (e.g. for Links).
27
- * default: false
28
- * - name: onClick
29
- * type: () => void
30
- * description: Callback fired when the button is clicked.
31
- * @id button
32
- */
33
4
  declare const buttonVariants: (props?: ({
34
5
  variant?: "link" | "ghost" | "outline" | "primary" | "secondary" | "danger" | "accent" | null | undefined;
35
6
  size?: "sm" | "md" | "lg" | "icon" | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramme-io/ui",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "The structural component library for the Ramme Framework.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -15,7 +15,7 @@
15
15
  "import": "./dist/index.es.js",
16
16
  "require": "./dist/index.umd.js"
17
17
  },
18
- "./style.css": "./dist/style.css",
18
+ "./index.css": "./dist/index.css",
19
19
  "./tailwind.preset.js": "./tailwind.preset.js",
20
20
  "./package.json": "./package.json"
21
21
  },
@@ -24,17 +24,6 @@
24
24
  "tailwind.preset.js",
25
25
  "style.css"
26
26
  ],
27
- "scripts": {
28
- "dev": "vite",
29
- "generate:manifest": "node scripts/generate-manifest.js",
30
- "generate:registry": "node scripts/generate-registry.js",
31
- "generate": "npm run generate:manifest && npm run generate:registry",
32
- "build": "npm run generate && vite build",
33
- "prepare": "npm run build",
34
- "storybook": "storybook dev -p 6006",
35
- "build-storybook": "storybook build",
36
- "bundle:ai": "repomix --ignore '**/*.lock,**/dist/**,**/storybook-static/**' --output 'ramme-ui-context.txt'"
37
- },
38
27
  "peerDependencies": {
39
28
  "react": ">=18.2.0",
40
29
  "react-dom": ">=18.2.0",
@@ -57,7 +46,8 @@
57
46
  "recharts": "^2.12.7",
58
47
  "tailwind-merge": "^3.3.1",
59
48
  "tippy.js": "^6.3.7",
60
- "zod": "^4.1.13"
49
+ "zod": "^3.23.8",
50
+ "@ramme-io/kernel": "1.3.0"
61
51
  },
62
52
  "devDependencies": {
63
53
  "@storybook/addon-essentials": "8.2.2",
@@ -86,5 +76,15 @@
86
76
  "vite": "^5.3.1",
87
77
  "vite-plugin-dts": "^3.9.1",
88
78
  "glob": "^10.3.10"
79
+ },
80
+ "scripts": {
81
+ "dev": "vite",
82
+ "generate:manifest": "node scripts/generate-manifest.js",
83
+ "generate:registry": "node scripts/generate-registry.js",
84
+ "generate": "npm run generate:manifest && npm run generate:registry",
85
+ "build": "npm run generate && vite build",
86
+ "storybook": "storybook dev -p 6006",
87
+ "build-storybook": "storybook build",
88
+ "bundle:ai": "repomix --ignore '**/*.lock,**/dist/**,**/storybook-static/**' --output 'ramme-ui-context.txt'"
89
89
  }
90
- }
90
+ }
@@ -1,3 +1,4 @@
1
+ // packages/ui/tailwind.preset.js
1
2
  /** @type {import('tailwindcss').Config} */
2
3
  module.exports = {
3
4
  theme: {
@@ -32,7 +33,6 @@ module.exports = {
32
33
  DEFAULT: 'rgb(var(--app-card-bg-color) / <alpha-value>)',
33
34
  foreground: 'rgb(var(--app-text-color) / <alpha-value>)',
34
35
  },
35
- // ADDED: Notification Colors
36
36
  info: {
37
37
  DEFAULT: 'rgb(var(--app-info-color) / <alpha-value>)',
38
38
  foreground: 'rgb(var(--app-info-foreground-color) / <alpha-value>)',
@@ -46,10 +46,9 @@ module.exports = {
46
46
  foreground: 'rgb(var(--app-warning-foreground-color) / <alpha-value>)',
47
47
  },
48
48
  error: {
49
- DEFAULT: 'rgb(var(--app-danger-color) / <alpha-value>)', // Re-using danger for error
49
+ DEFAULT: 'rgb(var(--app-danger-color) / <alpha-value>)',
50
50
  foreground: 'rgb(var(--app-danger-foreground-color) / <alpha-value>)',
51
51
  },
52
- // ADDED: Chart Colors
53
52
  chart: {
54
53
  1: 'rgb(var(--app-chart-1) / <alpha-value>)',
55
54
  2: 'rgb(var(--app-chart-2) / <alpha-value>)',
@@ -58,9 +57,6 @@ module.exports = {
58
57
  5: 'rgb(var(--app-chart-5) / <alpha-value>)',
59
58
  },
60
59
  },
61
- borderColor: {
62
- DEFAULT: 'rgb(var(--app-border-color) / <alpha-value>)',
63
- },
64
60
  borderRadius: {
65
61
  lg: `var(--app-border-radius-lg)`,
66
62
  md: `var(--app-border-radius-md)`,
@@ -70,14 +66,7 @@ module.exports = {
70
66
  sans: ['var(--app-font-sans)'],
71
67
  serif: ['var(--app-font-serif)'],
72
68
  },
73
- fontSize: {
74
- xs: ['calc(var(--app-font-size-base) * 0.75)', { lineHeight: '1rem' }],
75
- sm: ['calc(var(--app-font-size-base) * 0.875)', { lineHeight: '1.25rem' }],
76
- base: ['var(--app-font-size-base)', { lineHeight: '1.5rem' }],
77
- lg: ['calc(var(--app-font-size-base) * 1.125)', { lineHeight: '1.75rem' }],
78
- xl: ['calc(var(--app-font-size-base) * 1.25)', { lineHeight: '1.75rem' }],
79
- },
80
69
  },
81
70
  },
82
- plugins: [],
71
+ plugins: [], // Add tailwindcss-animate here if needed later
83
72
  };