pixelplay 1.2.0 → 1.2.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/CHANGELOG.md CHANGED
@@ -6,7 +6,143 @@ This project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ---
8
8
 
9
- ## [1.2.0] — 2026-04-03
9
+ ## [1.2.1] — 2026-04-21
10
+
11
+ ### Added
12
+
13
+ - **Animation wired to `Alert`**: Enter/exit driven by the active preset's `alert` slice.
14
+ - **Animation wired to `Badge`**: Wrapped in `m.span` with `initial`/`animate`/`exit` from the `badge` preset slice. Supports `AnimatePresence` exit.
15
+ - **Animation wired to `ButtonGroupItem`**: Hover and tap states driven by the `button` preset slice.
16
+ - **Animation wired to `Carousel`**: Slide transitions migrated from CSS `transition-transform` to a Framer Motion `animate` (x/y) driven by the `carousel.slide.transition` preset slice.
17
+ - **Animation wired to `DataTable` rows**: Row `whileHover`/`transition` driven by the `dataTable.row` preset slice.
18
+ - **Animation wired to `DropdownMenu` and `DropdownMenuItem`**: Menu open/close (`initial`/`animate`/`exit`) and item hover driven by `dropdown.menu` and `dropdown.item` preset slices.
19
+ - **Animation wired to `EmptyState`**: Container enter animated via the `emptyState.container` preset slice.
20
+ - **Animation wired to `FileUpload` dropzone**: Dropzone `whileHover` driven by the `fileUpload.dropzone` preset slice.
21
+ - **Animation wired to `Input` and `Textarea`**: Outer border wrappers converted to `m.div`. Hover slant and focus scale driven by the `input.focus` preset slice.
22
+ - **Animation wired to `Menubar`**: `MenubarContent` and `MenubarSubContent` wrapped with `AnimatePresence`; enter/exit driven by `menubar.menu` preset slice.
23
+ - **Animation wired to `MessageReaction`**: Hover/tap driven by the `button` preset slice.
24
+ - **Animation wired to `ChatMessage`**: Message bubble container enter animated via the `messaging.bubble` preset slice.
25
+ - **Animation wired to `NavigationMenu`**: `NavigationMenuContent` wrapped with `AnimatePresence`; enter/exit driven by `navigationMenu.submenu` preset slice.
26
+ - **Animation wired to `RadioGroup` dot**: Selected dot wrapped with `AnimatePresence`; enter/exit driven by `radio.dot` preset slice.
27
+ - **Animation wired to `Slider` thumb**: Thumb `whileHover`/`whileTap` driven by the `slider.thumb` preset slice.
28
+ - **Animation wired to `Tag`**: Tag and dismiss button wrapped with `m.span`/`m.button`; tag enter/exit driven by `tag` preset, dismiss driven by `button` preset.
29
+ - **Animation wired to `Tooltip`**: Enter/exit driven by the `tooltip` preset slice. Playful preset `rotate` values are mirrored by placement (right-side placements get a positive sign, left/center get negative) via a `rotationSign` helper.
30
+
31
+ ### Changed
32
+
33
+ - **`ButtonGroup` / `ButtonGroupItem` token colours**: Replaced all raw `zinc-*`/`gray-*`/`neutral-*` Tailwind scales with `var(--*)` CSS custom property tokens (`--surface`, `--surface-container-*`, `--on-surface`, `--on-surface-variant`, `--outline-variant`).
34
+ - **`SidebarNavDivider`** (`widgets/sidebar-nav`): Replaced raw `<hr>` with the `Separator` shared component.
35
+ - **`SidebarNavSection` title colour**: Changed from `--on-surface-variant` to `--on-surface`.
36
+ - **`DesignThemeContext` personality persistence**: Personality override now written to `localStorage` and restored on mount. Clearing a built-in theme also removes the personality `data-` attribute and the stored personality key. Personality state is read via `useSyncExternalStore` so iframe contexts stay in sync.
37
+ - **`build-custom-theme.ts`**: Generated custom theme object now includes a `personality` field derived from `input.personality`.
38
+
39
+ ### Fixed
40
+
41
+ - **Slider thumb scale standardised across presets**: All five personalities now use `scale: 1.1` on hover and `scale: 1.3` on tap. Previous values were inconsistent (sharp: 1.05/0.95, balanced: 1.2/0.9, soft: 1.3/0.85, subtle: whileTap 0.92).
42
+ - **Playful preset — button**: Reduced hover scale (1.06 → 1.02) and tap scale (0.92 → 0.97) to prevent overly large movement on small buttons.
43
+ - **Playful preset — tooltip**: Tooltip stays tilted while visible (`animate: { rotate: -3 }`) instead of snapping back to 0, reinforcing the playful character.
44
+ - **Playful preset — tag**: Added `initial`/`animate` enter states (`scale: 0.8, rotate: -3` → `scale: 1, rotate: 0`) so tags animate in, not just out.
45
+ - **Playful preset — select / dropdown / menubar menus**: Added a `rotate` component to menu open/close (`-2` initial, `0` animate, `+1` exit) for a subtle 2D slant alongside the existing 3D `rotateX`.
46
+ - **Playful preset — select / dropdown items**: Added `rotate: 0.5` to `whileHover` for a micro-tilt on item highlight.
47
+ - **Playful preset — fileUpload dropzone**: Increased `whileHover` rotation from `0.5` to `1.5` for a more pronounced tilt.
48
+ - **DataTable horizontal scrollbar**: Row hover animation previously applied `x: 3` which extended the painted bounds beyond the table width. Removed the `x` transform; only `backgroundColor` is now applied on hover. (`overflow: clip` on `<tbody>`/`<tr>` is ignored by browsers.)
49
+ - **`Card.CardBody`**: Removed `overflow-y-auto` which was causing unintended internal scroll on card body content.
50
+
51
+ ---
52
+
53
+ ## [1.2.0] — 2026-04-21
54
+
55
+ ### Added
56
+
57
+ - **Animation personality presets**: Five distinct motion personalities — `sharp` (mechanical, fast tweens, no overshoot), `subtle` (restrained, corporate polish), `balanced` (dependable spring, moderate bounce), `soft` (slow, floaty, luxurious with blur), and `playful` (bouncy springs, 3D tilts, rotations). Each personality applies cohesive motion defaults across all animated components. A `reducedMotionPreset` is also included as an automatic fallback when `prefers-reduced-motion` is active.
58
+ - **Card 3D perspective animations**: Pressable `Card` components now animate with `whileHover` and `whileTap` motion states driven by the active personality preset. A `perspective: 1000` style context is applied to pressable cards so playful-preset `rotateX`/`rotateY` tilts render correctly.
59
+ - **Progress animated fill**: The `ProgressBar` fill element now uses a Framer Motion `animate={{ width }}` transition, driven by the active personality preset's indicator transition config.
60
+
61
+ ### Fixed
62
+
63
+ - **Accordion/Collapsible animation**: Content enter/exit animations now correctly read from the `content` slice of the animation preset rather than the flat preset root.
64
+ - **Drawer/Sheet animation**: Overlay and panel transitions now correctly use `overlay.transition` and `content.transition` slices from the preset.
65
+
66
+ ---
67
+
68
+ ## [1.1.3] — 2026-04-06
69
+
70
+ ### Added
71
+
72
+ - **`SectionHeader` chat variant** (`widgets/section-header`): New `variant="chat"` - sticky header for chat detail panels with large avatar, name, status badge, action buttons, and trailing menu
73
+ - **`InfoCard` chat-list variant** (`widgets/info-card`): New `variant="chat-list"` - scrollable conversation list panel with search input, unread indicators, avatar with online status, message preview, and timestamp
74
+ - **`InfoCard` showcase variant** (`widgets/info-card`): New `variant="showcase"` - case-study card with image, stats grid, and link overlay (replaces `WebsiteCaseStudyCard`)
75
+ - **`HeroSection` showcase variant** (`widgets/hero-section`): New `variant="showcase"` - case-study hero with large title, subtitle, description, stat chips, and full-bleed background image (replaces `WebsiteCaseStudyHero`)
76
+ - **New generic widgets**: `content-section`, `text-block`, `media-section` (exports `MediaFullImage`, `MediaDualImage`, `MediaVideo`), `diagram-section`, `showcase-grid` - generic reusable widgets extracted from case-study-specific components
77
+ - **Messaging example page** (`messaging-01`): Full chat application layout with sidebar nav, chat list (`InfoCard variant="chat-list"`), chat detail panel (`SectionHeader variant="chat"`), `ChatMessage` bubbles, typing indicator, file attachments, reactions, and day dividers
78
+ - **Listing example pages** (`listing-03`, `listing-04`, `listing-05`): Three new listing layouts - listing-03 (team member directory table with avatar, role, and status columns), listing-04 (blog/article grid with category filters and featured post), listing-05 (team directory with search, role filters, and detailed member cards)
79
+ - **Messaging examples docs page** (`/ui-kit/examples/messaging`): Docs page listing and previewing the messaging example
80
+ - **Messaging nav entry**: "Email & Messaging" link added to the Examples section in the docs sidebar (`DocsLayoutShell`)
81
+
82
+ ### Changed
83
+
84
+ - **Deprecated widget consolidation**: Removed 9 standalone widget folders (`website-case-study-hero`, `website-case-study-card`, `website-case-study-content`, `website-case-study-text-block`, `website-case-study-images`, `website-case-study-diagram`, `website-case-studies-grid`, `chat-header`, `chat-list`) - functionality merged into generic widgets and variant-based components
85
+ - **Case study pages**: All 3 case-study pages (`digital-diagramming`, `no-code-app-builder`, `personal-finance-webapp`) updated to use new generic widgets (`HeroSection`, `ContentSection`, `TextBlock`, `MediaFullImage`, `MediaDualImage`, `MediaVideo`, `DiagramSection`)
86
+ - **Work pages**: All 4 work pages (`core-fitness-app`, `brainstorming-app`, `gelato-glam-delivery-app`, `kish-coach`) updated to use new generic widget names
87
+ - **Homepage**: `WebsiteCaseStudiesGrid` replaced with `ShowcaseGrid`
88
+ - **Docs demo pages**: All case-study component docs updated to import from new widget paths
89
+
90
+ ---
91
+
92
+ ## [1.1.2] — 2026-04-06
93
+
94
+ ### Added
95
+
96
+ - **`CompanyLogo` component** (`shared/ui/company-logo`): New shared component for company/brand marks — renders a logo image with a coloured initials fallback. Supports 5 sizes (`xs`–`xl`), two shapes (`square`/`rectangle`), 4 radius options, and 12 colour variants (including `--graphic-1` through `--graphic-8` categorical tokens). Exported from `shared/ui/index.ts`
97
+ - **`InfoCard` widget** (`widgets/info-card`): New multi-variant card widget. Variants: `default` (section card with header/body/footer slots and optional menu button), `horizontal` (property listing card with image, star rating, amenities, and price — vertical on mobile, row at xl), `post` (blog/article card with gradient/image banner, author, tags, and social action buttons), `action` (compact pressable card with icon button and description), `stat` (icon + label + value stat card with optional footer slot)
98
+ - **`MapEmbed` widget** (`widgets/map`): New `MapEmbed` component that wraps an `<iframe>` map embed with dark-mode support — auto-applies a CSS invert filter when no `darkSrc` is provided
99
+ - **Listing example pages**: Two new full-page listing layouts — `listing-01` (property search results with sticky sidebar nav, filter bar, horizontal `InfoCard` listing cards, sticky map panel, and pagination) and `listing-02` (remote job board with slim icon sidebar, search/filter controls, scrollable job card list with `CompanyLogo` and `Badge`, and a sticky job detail panel)
100
+ - **Listing examples docs page** (`/ui-kit/examples/listing`): Docs page listing and previewing both listing examples with descriptions
101
+ - **Listing nav entry**: "Listing" link added to the Examples section in the docs sidebar (`DocsLayoutShell`)
102
+ - **`CompanyLogo` docs page** (`/ui-kit/components/company-logo`): Full component documentation — real logos, initials fallback, sizes, shapes, and radius options; also added "Company logo" nav entry in docs sidebar
103
+ - **`Card` docs page expanded**: New sections for Horizontal layout (`InfoCard variant="horizontal"`), Action card, Post card, Gradient header, Card grid, and Compact card patterns; also added "Card" nav entry in docs sidebar
104
+
105
+ ### Changed
106
+
107
+ - **`Tag` lg size**: Updated typography — `text-base font-medium leading-6` (was `text-sm`), `rounded-lg` (was `rounded-md`), `px-3.5` (was `px-3`), dot `h-2.5 w-2.5` (was `h-2 w-2`)
108
+ - **`Card` default shadow**: Changed default `shadow` prop from `"md"` to `"xs"` for a subtler card elevation
109
+ - **`Checkbox` hit area**: Input element repositioned from `inset-0` to `top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2` with `min-h-10 min-w-10` (sm) / `min-h-12 min-w-12` for reliable 44px+ touch targets
110
+ - **`Toggle` hit area**: Added `before:` pseudo-element inset (`-inset-[10px]` for sm, `-inset-3` for default) to expand the tap/click area to minimum touch target size
111
+ - **`dashboards-01`**: Replaced inline `<Card>` + raw action/post markup with `InfoCard variant="action"` and `InfoCard variant="post"` widget
112
+ - **`dashboards-04`**: Replaced manual chart card header markup with `InfoCard variant="default"` widget for all four chart sections
113
+ - **`dashboards-05`**: Replaced manual card markup for "Active users", "How do you acquire users?", and "Channel breakdown" sections with `InfoCard variant="default"`
114
+ - **`dashboards-06`**: Replaced local `SavingsGoalCard` sub-component and inline chart card markup with `InfoCard variant="stat"` and `InfoCard variant="default"`; `SavingsGoalCard` function removed
115
+ - **Surface container tokens** (`build-custom-theme.ts`): Adjusted container level step sizes for both light and dark modes — `low/mid/high/highest` now each step one shade further from the base surface, giving better visual layering across container elevation levels
116
+ - **`calendar-01` / `calendar-03` sticky header**: Removed `border-b border-[var(--outline-variant)]` from the sticky `<header>` element
117
+ - **`calendar-02` profile page header**: Wrapped `PageHeader` in `px-2 pt-2` container; updated tab row to add `lg:pb-4` bottom padding
118
+ - **`next.config.ts`**: Added `i.pravatar.cc` to allowed Next.js image hostnames
119
+
120
+ ---
121
+
122
+ ## [1.1.1] — 2026-04-04
123
+
124
+ ### Added
125
+
126
+ - **Calendar example pages**: Three new full-page calendar layouts — `calendar-01` (monthly view with collapsible sidebar and colour-coded event chips), `calendar-02` (weekly time-grid with rich event detail slideout), and `calendar-03` (daily time-grid for focused day planning)
127
+ - **Calendar examples docs page**: `/ui-kit/examples/calendar/` — docs page listing and previewing all three calendar examples with descriptions
128
+ - **Calendar nav entry**: "Calendar" link added to the Examples section in the docs sidebar (`DocsLayoutShell`)
129
+ - **Calendar examples index**: Calendar added to the examples overview page alongside Dashboards, Settings, and Auth
130
+ - **Rich event detail slideout** (calendar-02): Clicking any event opens a `SlideoutMenu` with colour-gradient header, tags, organiser avatar, time/location/reminder/description rows, guest list with RSVP counts and `Badge` status per guest, file attachments with type-coloured icons, and Edit/Join footer actions
131
+ - **Dynamic event dates** (calendar-02): Events always appear in the current week (Mon–Fri) using `getMondayOfWeek()` and `weekDay(offset)` helpers — no stale hardcoded dates
132
+ - **Compact event cards**: Week/day view renders short events (≤30 min) in a single-line compact layout (`py-0.5`, title · time) to prevent content overflow at small card heights
133
+
134
+ ### Changed
135
+
136
+ - **Calendar event colors — dark mode**: Replaced all hardcoded `--utility-*` color tokens in `colorMap` and `cardColorMap` with theme-adaptive graphic tokens (`--graphic-N-container`, `--on-graphic-N-container`, `--graphic-N`). Event colors now correctly adapt to dark mode and custom brand themes
137
+ - **ViewDropdown positioning**: Changed from `absolute` to `position: fixed` with `getBoundingClientRect()` on open — escapes `overflow: hidden` on the calendar root so the dropdown is never clipped by sticky headers
138
+
139
+ ### Fixed
140
+
141
+ - **Breadcrumb whitespace**: Removed extra space in `<div >` opening tag on docs page
142
+
143
+ ---
144
+
145
+ ## [1.1.0] — 2026-04-03
10
146
 
11
147
  ### Added
12
148
 
@@ -38,6 +174,36 @@ This project adheres to [Semantic Versioning](https://semver.org/).
38
174
 
39
175
  ---
40
176
 
177
+ ## [1.0.5–1.0.15] — 2026-04-01 to 2026-04-03
178
+
179
+ > These versions were published directly to npm and are not individually documented in the changelog. No git tags exist for this range.
180
+
181
+ ---
182
+
183
+ ## [1.0.4] — 2026-04-01
184
+
185
+ ### Added
186
+
187
+ - **Settings examples**: Added `settings-02` (Password & Sessions), `settings-03` (Appearance), and `settings-04` (Billing) to the examples index
188
+ - **Settings — Billing (`settings-04`)**: Plan selector radio cards (Basic/Business/Enterprise) and invoice history DataTable with selectable rows, status badges, and per-row download actions
189
+ - **Auth examples**: Added `auth-05` (Verification — check your email), `auth-06` (Verification — enter OTP code), `auth-07` (Verification — email verified), `auth-08` (Forgot password — email entry), `auth-09` (Forgot password — set new password), and `auth-10` (Forgot password — password reset)
190
+ - **Avatar**: New `3xl` size (96 px) added to `AvatarSize` type and `SIZE_MAP`
191
+ - **OptionCard widget**: New widget and docs page added to component library navigation
192
+
193
+ ### Changed
194
+
195
+ - **Avatar**: `AvatarSize` type expanded with `3xl`; docs updated from 7 to 8 sizes
196
+ - **PageHeader** (cover + left avatar variant): Removed bottom border, upgraded avatar from `2xl` to `3xl`, tightened overlap offset, and added responsive horizontal padding to the info row
197
+ - **SidebarNavFeatureCard**: Removed `flex-col` from container so children control their own layout independently of the close button; action buttons updated from `ghost` to `bordered` variant
198
+
199
+ ### Fixed
200
+
201
+ - **SidebarNavFeatureCard**: Close button is now absolutely positioned so it never overlaps child content
202
+ - **SidebarNavFeatureCard**: Replaced hand-drawn SVG close icon with `X` from `react-feather`
203
+ - **SidebarNavFooter**: Removed stale `padding-right` workaround that was shifting all content rightward
204
+
205
+ ---
206
+
41
207
  ## [1.0.3] — 2026-04-01
42
208
 
43
209
  ### Added
package/dist/index.d.mts CHANGED
@@ -1,7 +1,10 @@
1
- import React$1, { CSSProperties, ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, SVGAttributes } from 'react';
1
+ import React$1, { CSSProperties, ReactNode, ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, SVGAttributes } from 'react';
2
+ import { HTMLMotionProps } from 'framer-motion';
2
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
4
  import { ClassValue } from 'clsx';
4
5
 
6
+ /** Personality presets — combined radius + animation behavior */
7
+ type PersonalityPreset = "sharp" | "subtle" | "balanced" | "soft" | "playful";
5
8
  /** Common size scale used across all components */
6
9
  type SizeScale = "sm" | "md" | "lg";
7
10
  /** Color intent variants */
@@ -19,7 +22,7 @@ interface BaseComponentProps {
19
22
  style?: CSSProperties;
20
23
  }
21
24
 
22
- interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
25
+ interface ButtonProps extends HTMLMotionProps<"button"> {
23
26
  /** Visual color intent */
24
27
  color?: ColorVariant;
25
28
  /** Visual style variant */
@@ -42,7 +45,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
42
45
  isIconOnly?: boolean;
43
46
  }
44
47
 
45
- declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
48
+ declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
46
49
 
47
50
  interface ButtonGroupProps {
48
51
  children: ReactNode;
@@ -62,7 +65,7 @@ interface ButtonGroupItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
62
65
  }
63
66
 
64
67
  declare function ButtonGroup({ children, className }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
65
- declare function ButtonGroupItem({ children, startContent, isIconOnly, isSelected, isDisabled, className, onClick, ...props }: ButtonGroupItemProps): react_jsx_runtime.JSX.Element;
68
+ declare function ButtonGroupItem({ children, startContent, isIconOnly, isSelected, isDisabled, className, onClick, onFocus, onBlur, type, form, name, value, "aria-label": ariaLabel, "aria-pressed": ariaPressed, "aria-expanded": ariaExpanded, id, tabIndex, }: ButtonGroupItemProps): react_jsx_runtime.JSX.Element;
66
69
 
67
70
  type InputVariant = "bordered" | "flat" | "faded" | "underlined";
68
71
  type TextareaResize = "none" | "vertical" | "horizontal" | "both";
@@ -204,7 +207,7 @@ declare namespace Tag {
204
207
  var displayName: string;
205
208
  }
206
209
 
207
- interface CardProps extends HTMLAttributes<HTMLDivElement> {
210
+ interface CardProps extends HTMLMotionProps<"div"> {
208
211
  /** Makes the entire card a pressable/clickable surface */
209
212
  isPressable?: boolean;
210
213
  /** Removes default shadow */
@@ -223,7 +226,7 @@ interface CardBodyProps extends HTMLAttributes<HTMLDivElement> {
223
226
  interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {
224
227
  }
225
228
 
226
- declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
229
+ declare const Card: React$1.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
227
230
  declare const CardHeader: React$1.ForwardRefExoticComponent<CardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
228
231
  declare const CardBody: React$1.ForwardRefExoticComponent<CardBodyProps & React$1.RefAttributes<HTMLDivElement>>;
229
232
  declare const CardFooter: React$1.ForwardRefExoticComponent<CardFooterProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -762,7 +765,7 @@ interface SparklineChartProps {
762
765
  className?: string;
763
766
  }
764
767
 
765
- declare function LineChart({ data, series, size, showLegend, legendPosition, showXAxis, showYAxis, showGrid, showArea, curved, stacked, yAxisLabel, xAxisLabel, className, }: LineChartProps): react_jsx_runtime.JSX.Element;
768
+ declare function LineChart({ data, series: seriesRaw, size, showLegend, legendPosition, showXAxis, showYAxis, showGrid, showArea, curved, stacked, yAxisLabel, xAxisLabel, className, }: LineChartProps): react_jsx_runtime.JSX.Element;
766
769
 
767
770
  declare function BarChart({ data, series, size, showLegend, legendPosition, showXAxis, showYAxis, showGrid, stacked, orientation, yAxisLabel, xAxisLabel, className, }: BarChartProps): react_jsx_runtime.JSX.Element;
768
771
 
@@ -1505,6 +1508,7 @@ type ThemeTokens = {
1505
1508
  };
1506
1509
  declare const lightTheme: ThemeTokens;
1507
1510
  declare const darkTheme: ThemeTokens;
1511
+
1508
1512
  /**
1509
1513
  * Generates a `<style>` block with CSS custom properties for every design
1510
1514
  * theme × light/dark mode. The first theme (inkwell) is output as `:root` / `.dark`.
@@ -1515,4 +1519,4 @@ declare function generateThemeCSS(): string;
1515
1519
 
1516
1520
  declare const PIXELPLAY_VERSION = "1.0.3";
1517
1521
 
1518
- export { type AccountDropdownItem, ActionDropdownCell, type ActionDropdownCellProps, ActionIconsCell, type ActionIconsCellProps, Alert, type AlertColor, type AlertIconStyle, type AlertLayout, type AlertProps, type AttachmentFileType, Avatar, AvatarCell, type AvatarCellProps, type AvatarColor, AvatarGroupCell, type AvatarGroupCellProps, type AvatarGroupItem, type AvatarProps, Badge, BadgeCell, type BadgeCellProps, type BadgeColor, BadgeGroup, type BadgeGroupColor, type BadgeGroupProps, type BadgeGroupSize, type BadgeItem, type BadgeProps, type BadgeSize, BadgesCell, BarChart, type BarChartProps, type BaseChartProps, type BaseComponentProps, Breadcrumb, type BreadcrumbItemData, type BreadcrumbProps, Button, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CarouselArrow, type CarouselArrowColor, type CarouselArrowProps, type CarouselArrowSize, type ChartDataPoint, type ChartSeries, type ChartSize, ChatMessage, type ChatMessageProps, Checkbox, CheckboxCard, type CheckboxCardOption, type CheckboxCardProps, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CircularProgress, type CircularProgressProps, type CircularProgressSize, type CircularProgressVariant, type ColorVariant, type CountryCode, CountryFlag, type CountryFlagProps, type CountryFlagShape, type CountryFlagSize, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, type DateRange, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DonutChart, type DonutChartProps, DropdownMenu, DropdownMenuAvatarHeader, type DropdownMenuAvatarHeaderProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, type EventColor, type FeatureIconColor, type FileType, FileTypeCell, type FileTypeCellProps, FileTypeIcon, type FileTypeIconProps, FileUpload, type FileUploadProps, type FileUploadStatus, type FileUploadVariant, type IndicatorColor, type IndicatorShape, type IndicatorSize, Input, type InputProps, type InputVariant, type LegendPosition, LineChart, type LineChartProps, MegaInput, type MegaInputProps, type MessageAttachment, MessageReaction, type MessageReactionProps, type MessageSide, type MessageType, Modal, type ModalAction, type ModalActionsLayout, type ModalAlign, type ModalAvatarGroupItem, type ModalCheckboxConfig, type ModalLayout, type ModalPosition, type ModalProps, type ModalSize, type ModalUserAvatar, PIXELPLAY_VERSION, Pagination, PaginationIndicator, type PaginationIndicatorProps, type PaginationPageShape, type PaginationProps, type PaginationVariant, ProgressBar, type ProgressBarProps, ProgressCell, type ProgressLabelPlacement, type ProgressSize, RadarChart, type RadarChartProps, RadialChart, type RadialChartProps, type RadiusVariant, RangeSlider, type RangeSliderProps, ScatterChart, type ScatterChartProps, type ScatterDataPoint, type ScatterSeries, Select, type SelectOption, type SelectProps, type SizeScale, type SliderLabelPlacement, SocialButton, type SocialButtonProps, type SocialButtonStyle, type SocialPlatform, SparklineChart, type SparklineChartProps, Spinner, type SpinnerProps, StoreButton, type StoreButtonProps, type StoreButtonSize, type StoreButtonTheme, type StorePlatform, type StyleVariant, type TabItem, Tabs, type TabsProps, Tag, type TagProps, type TagSize, type TextAction, TextActionCell, TextCell, type TextCellProps, Textarea, type TextareaProps, type TextareaResize, type ThemeTokens, type ToastColor, type ToastContextValue, type ToastItem, ToastProvider, Toggle, type ToggleProps, Tooltip, type TooltipColor, type TooltipPlacement, type TooltipProps, TooltipTrigger, type TooltipTriggerProps, type UploadFile, cn, darkTheme, generateThemeCSS, getFileExtColor, getFileExtLabel, lightTheme, useToast };
1522
+ export { type AccountDropdownItem, ActionDropdownCell, type ActionDropdownCellProps, ActionIconsCell, type ActionIconsCellProps, Alert, type AlertColor, type AlertIconStyle, type AlertLayout, type AlertProps, type AttachmentFileType, Avatar, AvatarCell, type AvatarCellProps, type AvatarColor, AvatarGroupCell, type AvatarGroupCellProps, type AvatarGroupItem, type AvatarProps, Badge, BadgeCell, type BadgeCellProps, type BadgeColor, BadgeGroup, type BadgeGroupColor, type BadgeGroupProps, type BadgeGroupSize, type BadgeItem, type BadgeProps, type BadgeSize, BadgesCell, BarChart, type BarChartProps, type BaseChartProps, type BaseComponentProps, Breadcrumb, type BreadcrumbItemData, type BreadcrumbProps, Button, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CarouselArrow, type CarouselArrowColor, type CarouselArrowProps, type CarouselArrowSize, type ChartDataPoint, type ChartSeries, type ChartSize, ChatMessage, type ChatMessageProps, Checkbox, CheckboxCard, type CheckboxCardOption, type CheckboxCardProps, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CircularProgress, type CircularProgressProps, type CircularProgressSize, type CircularProgressVariant, type ColorVariant, type CountryCode, CountryFlag, type CountryFlagProps, type CountryFlagShape, type CountryFlagSize, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, type DateRange, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DonutChart, type DonutChartProps, DropdownMenu, DropdownMenuAvatarHeader, type DropdownMenuAvatarHeaderProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, type EventColor, type FeatureIconColor, type FileType, FileTypeCell, type FileTypeCellProps, FileTypeIcon, type FileTypeIconProps, FileUpload, type FileUploadProps, type FileUploadStatus, type FileUploadVariant, type IndicatorColor, type IndicatorShape, type IndicatorSize, Input, type InputProps, type InputVariant, type LegendPosition, LineChart, type LineChartProps, MegaInput, type MegaInputProps, type MessageAttachment, MessageReaction, type MessageReactionProps, type MessageSide, type MessageType, Modal, type ModalAction, type ModalActionsLayout, type ModalAlign, type ModalAvatarGroupItem, type ModalCheckboxConfig, type ModalLayout, type ModalPosition, type ModalProps, type ModalSize, type ModalUserAvatar, PIXELPLAY_VERSION, Pagination, PaginationIndicator, type PaginationIndicatorProps, type PaginationPageShape, type PaginationProps, type PaginationVariant, type PersonalityPreset, ProgressBar, type ProgressBarProps, ProgressCell, type ProgressLabelPlacement, type ProgressSize, RadarChart, type RadarChartProps, RadialChart, type RadialChartProps, type RadiusVariant, RangeSlider, type RangeSliderProps, ScatterChart, type ScatterChartProps, type ScatterDataPoint, type ScatterSeries, Select, type SelectOption, type SelectProps, type SizeScale, type SliderLabelPlacement, SocialButton, type SocialButtonProps, type SocialButtonStyle, type SocialPlatform, SparklineChart, type SparklineChartProps, Spinner, type SpinnerProps, StoreButton, type StoreButtonProps, type StoreButtonSize, type StoreButtonTheme, type StorePlatform, type StyleVariant, type TabItem, Tabs, type TabsProps, Tag, type TagProps, type TagSize, type TextAction, TextActionCell, TextCell, type TextCellProps, Textarea, type TextareaProps, type TextareaResize, type ThemeTokens, type ToastColor, type ToastContextValue, type ToastItem, ToastProvider, Toggle, type ToggleProps, Tooltip, type TooltipColor, type TooltipPlacement, type TooltipProps, TooltipTrigger, type TooltipTriggerProps, type UploadFile, cn, darkTheme, generateThemeCSS, getFileExtColor, getFileExtLabel, lightTheme, useToast };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
- import React$1, { CSSProperties, ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, SVGAttributes } from 'react';
1
+ import React$1, { CSSProperties, ReactNode, ButtonHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, SVGAttributes } from 'react';
2
+ import { HTMLMotionProps } from 'framer-motion';
2
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
4
  import { ClassValue } from 'clsx';
4
5
 
6
+ /** Personality presets — combined radius + animation behavior */
7
+ type PersonalityPreset = "sharp" | "subtle" | "balanced" | "soft" | "playful";
5
8
  /** Common size scale used across all components */
6
9
  type SizeScale = "sm" | "md" | "lg";
7
10
  /** Color intent variants */
@@ -19,7 +22,7 @@ interface BaseComponentProps {
19
22
  style?: CSSProperties;
20
23
  }
21
24
 
22
- interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
25
+ interface ButtonProps extends HTMLMotionProps<"button"> {
23
26
  /** Visual color intent */
24
27
  color?: ColorVariant;
25
28
  /** Visual style variant */
@@ -42,7 +45,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
42
45
  isIconOnly?: boolean;
43
46
  }
44
47
 
45
- declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
48
+ declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
46
49
 
47
50
  interface ButtonGroupProps {
48
51
  children: ReactNode;
@@ -62,7 +65,7 @@ interface ButtonGroupItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
62
65
  }
63
66
 
64
67
  declare function ButtonGroup({ children, className }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
65
- declare function ButtonGroupItem({ children, startContent, isIconOnly, isSelected, isDisabled, className, onClick, ...props }: ButtonGroupItemProps): react_jsx_runtime.JSX.Element;
68
+ declare function ButtonGroupItem({ children, startContent, isIconOnly, isSelected, isDisabled, className, onClick, onFocus, onBlur, type, form, name, value, "aria-label": ariaLabel, "aria-pressed": ariaPressed, "aria-expanded": ariaExpanded, id, tabIndex, }: ButtonGroupItemProps): react_jsx_runtime.JSX.Element;
66
69
 
67
70
  type InputVariant = "bordered" | "flat" | "faded" | "underlined";
68
71
  type TextareaResize = "none" | "vertical" | "horizontal" | "both";
@@ -204,7 +207,7 @@ declare namespace Tag {
204
207
  var displayName: string;
205
208
  }
206
209
 
207
- interface CardProps extends HTMLAttributes<HTMLDivElement> {
210
+ interface CardProps extends HTMLMotionProps<"div"> {
208
211
  /** Makes the entire card a pressable/clickable surface */
209
212
  isPressable?: boolean;
210
213
  /** Removes default shadow */
@@ -223,7 +226,7 @@ interface CardBodyProps extends HTMLAttributes<HTMLDivElement> {
223
226
  interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {
224
227
  }
225
228
 
226
- declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
229
+ declare const Card: React$1.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
227
230
  declare const CardHeader: React$1.ForwardRefExoticComponent<CardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
228
231
  declare const CardBody: React$1.ForwardRefExoticComponent<CardBodyProps & React$1.RefAttributes<HTMLDivElement>>;
229
232
  declare const CardFooter: React$1.ForwardRefExoticComponent<CardFooterProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -762,7 +765,7 @@ interface SparklineChartProps {
762
765
  className?: string;
763
766
  }
764
767
 
765
- declare function LineChart({ data, series, size, showLegend, legendPosition, showXAxis, showYAxis, showGrid, showArea, curved, stacked, yAxisLabel, xAxisLabel, className, }: LineChartProps): react_jsx_runtime.JSX.Element;
768
+ declare function LineChart({ data, series: seriesRaw, size, showLegend, legendPosition, showXAxis, showYAxis, showGrid, showArea, curved, stacked, yAxisLabel, xAxisLabel, className, }: LineChartProps): react_jsx_runtime.JSX.Element;
766
769
 
767
770
  declare function BarChart({ data, series, size, showLegend, legendPosition, showXAxis, showYAxis, showGrid, stacked, orientation, yAxisLabel, xAxisLabel, className, }: BarChartProps): react_jsx_runtime.JSX.Element;
768
771
 
@@ -1505,6 +1508,7 @@ type ThemeTokens = {
1505
1508
  };
1506
1509
  declare const lightTheme: ThemeTokens;
1507
1510
  declare const darkTheme: ThemeTokens;
1511
+
1508
1512
  /**
1509
1513
  * Generates a `<style>` block with CSS custom properties for every design
1510
1514
  * theme × light/dark mode. The first theme (inkwell) is output as `:root` / `.dark`.
@@ -1515,4 +1519,4 @@ declare function generateThemeCSS(): string;
1515
1519
 
1516
1520
  declare const PIXELPLAY_VERSION = "1.0.3";
1517
1521
 
1518
- export { type AccountDropdownItem, ActionDropdownCell, type ActionDropdownCellProps, ActionIconsCell, type ActionIconsCellProps, Alert, type AlertColor, type AlertIconStyle, type AlertLayout, type AlertProps, type AttachmentFileType, Avatar, AvatarCell, type AvatarCellProps, type AvatarColor, AvatarGroupCell, type AvatarGroupCellProps, type AvatarGroupItem, type AvatarProps, Badge, BadgeCell, type BadgeCellProps, type BadgeColor, BadgeGroup, type BadgeGroupColor, type BadgeGroupProps, type BadgeGroupSize, type BadgeItem, type BadgeProps, type BadgeSize, BadgesCell, BarChart, type BarChartProps, type BaseChartProps, type BaseComponentProps, Breadcrumb, type BreadcrumbItemData, type BreadcrumbProps, Button, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CarouselArrow, type CarouselArrowColor, type CarouselArrowProps, type CarouselArrowSize, type ChartDataPoint, type ChartSeries, type ChartSize, ChatMessage, type ChatMessageProps, Checkbox, CheckboxCard, type CheckboxCardOption, type CheckboxCardProps, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CircularProgress, type CircularProgressProps, type CircularProgressSize, type CircularProgressVariant, type ColorVariant, type CountryCode, CountryFlag, type CountryFlagProps, type CountryFlagShape, type CountryFlagSize, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, type DateRange, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DonutChart, type DonutChartProps, DropdownMenu, DropdownMenuAvatarHeader, type DropdownMenuAvatarHeaderProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, type EventColor, type FeatureIconColor, type FileType, FileTypeCell, type FileTypeCellProps, FileTypeIcon, type FileTypeIconProps, FileUpload, type FileUploadProps, type FileUploadStatus, type FileUploadVariant, type IndicatorColor, type IndicatorShape, type IndicatorSize, Input, type InputProps, type InputVariant, type LegendPosition, LineChart, type LineChartProps, MegaInput, type MegaInputProps, type MessageAttachment, MessageReaction, type MessageReactionProps, type MessageSide, type MessageType, Modal, type ModalAction, type ModalActionsLayout, type ModalAlign, type ModalAvatarGroupItem, type ModalCheckboxConfig, type ModalLayout, type ModalPosition, type ModalProps, type ModalSize, type ModalUserAvatar, PIXELPLAY_VERSION, Pagination, PaginationIndicator, type PaginationIndicatorProps, type PaginationPageShape, type PaginationProps, type PaginationVariant, ProgressBar, type ProgressBarProps, ProgressCell, type ProgressLabelPlacement, type ProgressSize, RadarChart, type RadarChartProps, RadialChart, type RadialChartProps, type RadiusVariant, RangeSlider, type RangeSliderProps, ScatterChart, type ScatterChartProps, type ScatterDataPoint, type ScatterSeries, Select, type SelectOption, type SelectProps, type SizeScale, type SliderLabelPlacement, SocialButton, type SocialButtonProps, type SocialButtonStyle, type SocialPlatform, SparklineChart, type SparklineChartProps, Spinner, type SpinnerProps, StoreButton, type StoreButtonProps, type StoreButtonSize, type StoreButtonTheme, type StorePlatform, type StyleVariant, type TabItem, Tabs, type TabsProps, Tag, type TagProps, type TagSize, type TextAction, TextActionCell, TextCell, type TextCellProps, Textarea, type TextareaProps, type TextareaResize, type ThemeTokens, type ToastColor, type ToastContextValue, type ToastItem, ToastProvider, Toggle, type ToggleProps, Tooltip, type TooltipColor, type TooltipPlacement, type TooltipProps, TooltipTrigger, type TooltipTriggerProps, type UploadFile, cn, darkTheme, generateThemeCSS, getFileExtColor, getFileExtLabel, lightTheme, useToast };
1522
+ export { type AccountDropdownItem, ActionDropdownCell, type ActionDropdownCellProps, ActionIconsCell, type ActionIconsCellProps, Alert, type AlertColor, type AlertIconStyle, type AlertLayout, type AlertProps, type AttachmentFileType, Avatar, AvatarCell, type AvatarCellProps, type AvatarColor, AvatarGroupCell, type AvatarGroupCellProps, type AvatarGroupItem, type AvatarProps, Badge, BadgeCell, type BadgeCellProps, type BadgeColor, BadgeGroup, type BadgeGroupColor, type BadgeGroupProps, type BadgeGroupSize, type BadgeItem, type BadgeProps, type BadgeSize, BadgesCell, BarChart, type BarChartProps, type BaseChartProps, type BaseComponentProps, Breadcrumb, type BreadcrumbItemData, type BreadcrumbProps, Button, ButtonGroup, ButtonGroupItem, type ButtonGroupItemProps, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarEvent, type CalendarProps, type CalendarView, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CarouselArrow, type CarouselArrowColor, type CarouselArrowProps, type CarouselArrowSize, type ChartDataPoint, type ChartSeries, type ChartSize, ChatMessage, type ChatMessageProps, Checkbox, CheckboxCard, type CheckboxCardOption, type CheckboxCardProps, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CircularProgress, type CircularProgressProps, type CircularProgressSize, type CircularProgressVariant, type ColorVariant, type CountryCode, CountryFlag, type CountryFlagProps, type CountryFlagShape, type CountryFlagSize, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, type DateRange, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DonutChart, type DonutChartProps, DropdownMenu, DropdownMenuAvatarHeader, type DropdownMenuAvatarHeaderProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, type EventColor, type FeatureIconColor, type FileType, FileTypeCell, type FileTypeCellProps, FileTypeIcon, type FileTypeIconProps, FileUpload, type FileUploadProps, type FileUploadStatus, type FileUploadVariant, type IndicatorColor, type IndicatorShape, type IndicatorSize, Input, type InputProps, type InputVariant, type LegendPosition, LineChart, type LineChartProps, MegaInput, type MegaInputProps, type MessageAttachment, MessageReaction, type MessageReactionProps, type MessageSide, type MessageType, Modal, type ModalAction, type ModalActionsLayout, type ModalAlign, type ModalAvatarGroupItem, type ModalCheckboxConfig, type ModalLayout, type ModalPosition, type ModalProps, type ModalSize, type ModalUserAvatar, PIXELPLAY_VERSION, Pagination, PaginationIndicator, type PaginationIndicatorProps, type PaginationPageShape, type PaginationProps, type PaginationVariant, type PersonalityPreset, ProgressBar, type ProgressBarProps, ProgressCell, type ProgressLabelPlacement, type ProgressSize, RadarChart, type RadarChartProps, RadialChart, type RadialChartProps, type RadiusVariant, RangeSlider, type RangeSliderProps, ScatterChart, type ScatterChartProps, type ScatterDataPoint, type ScatterSeries, Select, type SelectOption, type SelectProps, type SizeScale, type SliderLabelPlacement, SocialButton, type SocialButtonProps, type SocialButtonStyle, type SocialPlatform, SparklineChart, type SparklineChartProps, Spinner, type SpinnerProps, StoreButton, type StoreButtonProps, type StoreButtonSize, type StoreButtonTheme, type StorePlatform, type StyleVariant, type TabItem, Tabs, type TabsProps, Tag, type TagProps, type TagSize, type TextAction, TextActionCell, TextCell, type TextCellProps, Textarea, type TextareaProps, type TextareaResize, type ThemeTokens, type ToastColor, type ToastContextValue, type ToastItem, ToastProvider, Toggle, type ToggleProps, Tooltip, type TooltipColor, type TooltipPlacement, type TooltipProps, TooltipTrigger, type TooltipTriggerProps, type UploadFile, cn, darkTheme, generateThemeCSS, getFileExtColor, getFileExtLabel, lightTheme, useToast };