rgm-design-system 0.1.0 → 0.2.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.
- package/CHANGELOG.md +31 -0
- package/dist/components/aurora-text.d.ts +6 -0
- package/dist/components/aurora-text.d.ts.map +1 -0
- package/dist/components/chatbot-user-bubble.d.ts +2 -1
- package/dist/components/chatbot-user-bubble.d.ts.map +1 -1
- package/dist/components/chatbot-welcome-hero.d.ts +3 -2
- package/dist/components/chatbot-welcome-hero.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/motion-presence.d.ts +31 -0
- package/dist/components/motion-presence.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/item.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +1011 -898
- package/dist/styles.css +1 -1
- package/package.json +3 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `rgm-design-system` are documented in this file.
|
|
4
|
+
|
|
5
|
+
## 0.2.0 - 2026-06-25
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added `AuroraText`, a preset-aware animated gradient text component derived from shadcn CSS variables.
|
|
10
|
+
- Added `icon` support to `ChatbotWelcomeHero` for app-provided assistant marks.
|
|
11
|
+
- Added `size="sm" | "md" | "lg"` to `ChatbotWelcomeHero`.
|
|
12
|
+
- Added `MotionPresence` with an `enter-up` preset matching the chatbot welcome entrance motion used in `nvcwebapp`.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Updated `ChatbotWelcomeHero` to always render its prompt with the preset-aware aurora text treatment.
|
|
17
|
+
- Simplified Storybook font controls so one font selector updates body and heading font variables together.
|
|
18
|
+
- Improved `ChatbotWelcomeHero` heading line height so descenders are not clipped at larger sizes.
|
|
19
|
+
|
|
20
|
+
## 0.1.1 - 2026-06-25
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Reduced the default `ChatbotUserBubble` text size from a prominent display style to a conversation-friendly default.
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- Added `size="medium"` to `ChatbotUserBubble` for cases that need a slightly larger user message.
|
|
29
|
+
- Added a Storybook example for the medium user bubble size.
|
|
30
|
+
- Added GitHub Actions trusted publishing for npm releases.
|
|
31
|
+
- Added release and API governance skills for changelog, SemVer, and component variant decisions.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type AuroraTextProps = React.ComponentProps<"span">;
|
|
3
|
+
declare function AuroraText({ children, className, ...props }: AuroraTextProps): React.JSX.Element;
|
|
4
|
+
export { AuroraText };
|
|
5
|
+
export type { AuroraTextProps };
|
|
6
|
+
//# sourceMappingURL=aurora-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aurora-text.d.ts","sourceRoot":"","sources":["../../src/components/aurora-text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AAEpD,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,qBAgBrE;AAED,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -12,8 +12,9 @@ type ChatbotUserBubbleProps = Omit<React.ComponentProps<"div">, "children"> & {
|
|
|
12
12
|
copyLabel?: string;
|
|
13
13
|
onBookmark?: React.MouseEventHandler<HTMLButtonElement>;
|
|
14
14
|
onCopy?: React.MouseEventHandler<HTMLButtonElement>;
|
|
15
|
+
size?: "default" | "medium";
|
|
15
16
|
};
|
|
16
|
-
declare function ChatbotUserBubble({ className, children, actions, actionsClassName, bookmarkLabel, copyLabel, onBookmark, onCopy, ...props }: ChatbotUserBubbleProps): React.JSX.Element;
|
|
17
|
+
declare function ChatbotUserBubble({ className, children, actions, actionsClassName, bookmarkLabel, copyLabel, onBookmark, onCopy, size, ...props }: ChatbotUserBubbleProps): React.JSX.Element;
|
|
17
18
|
export { ChatbotUserBubble };
|
|
18
19
|
export type { ChatbotUserBubbleAction, ChatbotUserBubbleProps };
|
|
19
20
|
//# sourceMappingURL=chatbot-user-bubble.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-user-bubble.d.ts","sourceRoot":"","sources":["../../src/components/chatbot-user-bubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACtD,CAAC;AAEF,KAAK,sBAAsB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IAC5E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"chatbot-user-bubble.d.ts","sourceRoot":"","sources":["../../src/components/chatbot-user-bubble.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACtD,CAAC;AAEF,KAAK,sBAAsB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IAC5E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACpD,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC7B,CAAC;AAOF,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,aAA8B,EAC9B,SAA0B,EAC1B,UAAU,EACV,MAAM,EACN,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,sBAAsB,qBAyDxB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,YAAY,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
type ChatbotWelcomeHeroProps = Omit<React.ComponentProps<"section">, "children"> & {
|
|
3
3
|
greeting?: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
4
5
|
name?: string;
|
|
5
6
|
prompt?: string;
|
|
6
|
-
|
|
7
|
+
size?: "sm" | "md" | "lg";
|
|
7
8
|
};
|
|
8
|
-
declare function ChatbotWelcomeHero({ className, greeting, name, prompt,
|
|
9
|
+
declare function ChatbotWelcomeHero({ className, greeting, icon, name, prompt, size, ...props }: ChatbotWelcomeHeroProps): React.JSX.Element;
|
|
9
10
|
export { ChatbotWelcomeHero };
|
|
10
11
|
export type { ChatbotWelcomeHeroProps };
|
|
11
12
|
//# sourceMappingURL=chatbot-welcome-hero.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-welcome-hero.d.ts","sourceRoot":"","sources":["../../src/components/chatbot-welcome-hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"chatbot-welcome-hero.d.ts","sourceRoot":"","sources":["../../src/components/chatbot-welcome-hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,KAAK,uBAAuB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,GAAG;IACjF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B,CAAC;AAgCF,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,QAAyB,EACzB,IAAI,EACJ,IAAa,EACb,MAAoC,EACpC,IAAW,EACX,GAAG,KAAK,EACT,EAAE,uBAAuB,qBAoDzB;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAC9B,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './aurora-text';
|
|
1
2
|
export * from './chatbot-input';
|
|
2
3
|
export * from './chatbot-agent-tool-accordion';
|
|
3
4
|
export * from './chatbot-prompt-category';
|
|
@@ -6,5 +7,6 @@ export * from './chatbot-drawer-header';
|
|
|
6
7
|
export * from './chatbot-history-item';
|
|
7
8
|
export * from './chatbot-user-bubble';
|
|
8
9
|
export * from './chatbot-welcome-hero';
|
|
10
|
+
export * from './motion-presence';
|
|
9
11
|
export * from './ui';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,MAAM,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HTMLMotionProps } from 'motion/react';
|
|
2
|
+
type MotionPresencePreset = "enter-up";
|
|
3
|
+
type MotionPresenceReducedMotion = "user" | "always" | "never";
|
|
4
|
+
type MotionPresenceProps = Omit<HTMLMotionProps<"div">, "initial" | "animate" | "transition"> & {
|
|
5
|
+
animate?: HTMLMotionProps<"div">["animate"];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
initial?: HTMLMotionProps<"div">["initial"];
|
|
8
|
+
preset?: MotionPresencePreset;
|
|
9
|
+
reducedMotion?: MotionPresenceReducedMotion;
|
|
10
|
+
transition?: HTMLMotionProps<"div">["transition"];
|
|
11
|
+
};
|
|
12
|
+
declare const motionPresencePresets: {
|
|
13
|
+
"enter-up": {
|
|
14
|
+
initial: {
|
|
15
|
+
opacity: number;
|
|
16
|
+
y: number;
|
|
17
|
+
};
|
|
18
|
+
animate: {
|
|
19
|
+
opacity: number;
|
|
20
|
+
y: number;
|
|
21
|
+
};
|
|
22
|
+
transition: {
|
|
23
|
+
delay: number;
|
|
24
|
+
duration: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
declare function MotionPresence({ animate, disabled, initial, preset, reducedMotion, transition, ...props }: MotionPresenceProps): import("react").JSX.Element;
|
|
29
|
+
export { MotionPresence, motionPresencePresets };
|
|
30
|
+
export type { MotionPresencePreset, MotionPresenceProps, MotionPresenceReducedMotion, };
|
|
31
|
+
//# sourceMappingURL=motion-presence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion-presence.d.ts","sourceRoot":"","sources":["../../src/components/motion-presence.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAE9E,KAAK,oBAAoB,GAAG,UAAU,CAAC;AACvC,KAAK,2BAA2B,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE/D,KAAK,mBAAmB,GAAG,IAAI,CAC7B,eAAe,CAAC,KAAK,CAAC,EACtB,SAAS,GAAG,SAAS,GAAG,YAAY,CACrC,GAAG;IACF,OAAO,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,aAAa,CAAC,EAAE,2BAA2B,CAAC;IAC5C,UAAU,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC;CACnD,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;CAS1B,CAAC;AAEF,iBAAS,cAAc,CAAC,EACtB,OAAO,EACP,QAAgB,EAChB,OAAO,EACP,MAAmB,EACnB,aAAsB,EACtB,UAAU,EACV,GAAG,KAAK,EACT,EAAE,mBAAmB,+BAgBrB;AAED,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,CAAC;AACjD,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,2BAA2B,GAC5B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
7
|
asChild?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -11,7 +11,7 @@ declare function Item({ className, variant, size, asChild, ...props }: React.Com
|
|
|
11
11
|
asChild?: boolean;
|
|
12
12
|
}): React.JSX.Element;
|
|
13
13
|
declare const itemMediaVariants: (props?: ({
|
|
14
|
-
variant?: "
|
|
14
|
+
variant?: "image" | "default" | "icon" | null | undefined;
|
|
15
15
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
16
16
|
declare function ItemMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): React.JSX.Element;
|
|
17
17
|
declare function ItemContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { Tabs as TabsPrimitive } from 'radix-ui';
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
|
|
5
5
|
declare const tabsListVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "line" | "default" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): React.JSX.Element;
|
|
9
9
|
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
|