@ecopages/radiant-ui 0.2.3 → 0.2.4
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 +1 -1
- package/dist/components/ui/autocomplete/autocomplete.d.ts +1 -1
- package/dist/components/ui/autocomplete/autocomplete.script.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/calendar/calendar.script.d.ts +1 -1
- package/dist/components/ui/carousel/carousel.d.ts +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +1 -1
- package/dist/components/ui/cycle-toggle/cycle-toggle.d.ts +1 -1
- package/dist/components/ui/cycle-toggle/index.d.ts +1 -1
- package/dist/components/ui/date-field/date-field.d.ts +1 -1
- package/dist/components/ui/date-input/date-input-segment-dom.d.ts +1 -1
- package/dist/components/ui/date-input/date-input.script.d.ts +1 -1
- package/dist/components/ui/date-range-picker/date-range-picker.d.ts +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +1 -1
- package/dist/components/ui/disclosure/disclosure.d.ts +1 -1
- package/dist/components/ui/heading/heading.d.ts +1 -1
- package/dist/components/ui/headline/headline.d.ts +1 -1
- package/dist/components/ui/input/input.d.ts +1 -1
- package/dist/components/ui/menu-button/menu-button.d.ts +1 -1
- package/dist/components/ui/menubar/menubar.d.ts +1 -1
- package/dist/components/ui/number-field/number-field.d.ts +1 -1
- package/dist/components/ui/select/select.d.ts +1 -1
- package/dist/components/ui/sidebar/sidebar.d.ts +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +1 -1
- package/dist/components/ui/tag-group/tag-group.d.ts +1 -1
- package/dist/components/ui/textarea/textarea.d.ts +1 -1
- package/dist/lib/mask/date-mask.d.ts +1 -1
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ pnpm run build:lib # generate exports + build JS/types + compile CSS
|
|
|
48
48
|
|
|
49
49
|
`test:storybook` runs stories through the Vitest addon (no Storybook dev server). `test:ssr:smoke` and `test:ssr` spawn Storybook, visit stories in Playwright, and fail on `.radiant-ssr-error` banners or disallowed page errors. For stories expected to mount, the harness waits briefly for content or an SSR error banner before checking the result. Empty mounts fail only for stories listed in `scripts/storybook-ssr-harness.ts` (`expectsMount` / `allowEmptyMount`).
|
|
50
50
|
|
|
51
|
-
Published CSS under `dist/` is **already compiled** (Tailwind `@apply` resolved). Theme and token values remain CSS custom properties so apps can swap themes at runtime. The package does not minify CSS.
|
|
51
|
+
Published CSS under `dist/` is **already compiled** (Tailwind `@apply` resolved). Theme and token values remain CSS custom properties so apps can swap themes at runtime. The package does not minify CSS. Published declaration imports are rewritten to package-relative paths during `build:lib`, and `test:package` rejects unresolved source aliases.
|
|
52
52
|
|
|
53
53
|
Component entries register their nested custom elements as well as their own host. The package's `sideEffects` list preserves source `*.script.ts` / `*.script.tsx` registration modules during the library build and built `index.js` entries during consumer bundling. Removing those source side effects can leave nested Derived Trees as empty tags during SSR. `build:lib` runs `test:package` against isolated imports of the built date compositions and sidebar trigger to verify registration and server-rendered markup.
|
|
54
54
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps, JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeInputProps } from '
|
|
2
|
+
import type { NativeInputProps } from '../../../lib/native-element-props';
|
|
3
3
|
import type { RuiAutocomplete as RuiAutocompleteElement, RuiAutocompleteProps } from './autocomplete.script';
|
|
4
4
|
import './autocomplete.script';
|
|
5
5
|
export type RuiAutocompleteInputProps = NativeInputProps & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RadiantElement } from '@ecopages/radiant';
|
|
2
|
-
import { type TextFilterSensitivity } from '
|
|
2
|
+
import { type TextFilterSensitivity } from '../../../lib/text-filter';
|
|
3
3
|
export type RuiAutocompleteProps = {
|
|
4
4
|
/** Filter sensitivity. Default: `base` (case-insensitive contains). */
|
|
5
5
|
sensitivity?: TextFilterSensitivity;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxElementProps } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
export type RuiButtonVariant = 'filled' | 'outline' | 'destructive' | 'ghost' | 'link';
|
|
4
4
|
export type RuiButtonSize = 'none' | 'sm' | 'md' | 'lg';
|
|
5
5
|
type RuiButtonChrome = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RadiantElement } from '@ecopages/radiant';
|
|
2
2
|
import type { EventEmitter } from '@ecopages/radiant/tools/event-emitter';
|
|
3
|
-
import { type CalendarSelectionMode, type CalendarWeek } from '
|
|
3
|
+
import { type CalendarSelectionMode, type CalendarWeek } from '../../../lib/intl-date';
|
|
4
4
|
export type RuiCalendarPageBehavior = 'visible' | 'single';
|
|
5
5
|
export type RuiCalendarProps = {
|
|
6
6
|
value?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsxCustomElementAttributes, type JsxElementProps, type JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import { type RuiCarousel as RuiCarouselElement, type RuiCarouselProps } from './carousel.script';
|
|
4
4
|
import './carousel.script';
|
|
5
5
|
export type RuiCarouselSlideData = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps, JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps, NativeInputProps } from '
|
|
2
|
+
import type { NativeButtonProps, NativeInputProps } from '../../../lib/native-element-props';
|
|
3
3
|
import { type RuiListboxOptionData } from '../listbox';
|
|
4
4
|
import type { RuiCombobox as RuiComboboxElement, RuiComboboxProps } from './combobox.script';
|
|
5
5
|
import './combobox.script';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import type { RuiCycleToggle as RuiCycleToggleElement, RuiCycleToggleProps } from './cycle-toggle.script';
|
|
4
4
|
import './cycle-toggle.script';
|
|
5
5
|
export type RuiCycleToggleItemProps = Omit<JsxElementProps<HTMLSpanElement>, 'id'> & {
|
|
@@ -2,4 +2,4 @@ export { RuiCycleToggle as RuiCycleToggleElement, type RuiCycleToggleProps, type
|
|
|
2
2
|
export { RuiCycleToggle, RuiCycleToggleButton, RuiCycleToggleItem } from './cycle-toggle';
|
|
3
3
|
export type { RuiCycleToggleButtonProps, RuiCycleToggleItemProps } from './cycle-toggle';
|
|
4
4
|
export { ThemeItemLabel, ThemePreferenceIcon, ThemePreferenceItemContent, type ThemePreference, } from './theme-preference-icons';
|
|
5
|
-
export { cycleValue } from '
|
|
5
|
+
export { cycleValue } from '../../../lib/cycle-value';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import { type RuiCalendarElement, type RuiCalendarProps } from '../calendar';
|
|
4
4
|
import { type RuiDateInputElement, type RuiDateInputProps } from '../date-input';
|
|
5
5
|
import type { RuiDateField as RuiDateFieldElement, RuiDateFieldProps } from './date-field.script';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormAssociatedElement, type FormValue } from '@ecopages/radiant/form-associated-element';
|
|
2
2
|
import type { EventEmitter } from '@ecopages/radiant/tools/event-emitter';
|
|
3
|
-
import { type DatePartType, type DateSegmentModel } from '
|
|
3
|
+
import { type DatePartType, type DateSegmentModel } from '../../../lib/intl-date';
|
|
4
4
|
export type RuiDateInputProps = {
|
|
5
5
|
value?: string;
|
|
6
6
|
min?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import { type RuiCalendarElement, type RuiCalendarProps } from '../calendar';
|
|
4
4
|
import { type RuiDateInputElement, type RuiDateInputProps } from '../date-input';
|
|
5
5
|
import type { RuiDateRangePicker as RuiDateRangePickerElement, RuiDateRangePickerProps } from './date-range-picker.script';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsxCustomElementAttributes, type JsxElementProps, type JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import type { RuiDialog as RuiDialogElement, RuiDialogProps } from './dialog.script';
|
|
4
4
|
import './dialog.script';
|
|
5
5
|
export type RuiDialogTitleProps = JsxElementProps<HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps, JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import type { RuiDisclosureGroup as RuiDisclosureGroupElement, RuiDisclosureGroupProps } from './disclosure-group.script';
|
|
4
4
|
import './disclosure-group.script';
|
|
5
5
|
import type { RuiDisclosure as RuiDisclosureElement, RuiDisclosureProps } from './disclosure.script';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxElementProps } from '@ecopages/jsx';
|
|
2
|
-
import { type IntrinsicTag } from '
|
|
2
|
+
import { type IntrinsicTag } from '../../../lib/intrinsic';
|
|
3
3
|
import { type RuiHeadlineAs, type RuiHeadlineProps } from '../headline/headline';
|
|
4
4
|
export type RuiHeadingAlign = 'start' | 'center';
|
|
5
5
|
export type RuiHeadingSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import { type IntrinsicProps, type IntrinsicTag } from '
|
|
2
|
+
import { type IntrinsicProps, type IntrinsicTag } from '../../../lib/intrinsic';
|
|
3
3
|
export type RuiHeadlineSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export type RuiHeadlineAs = Extract<IntrinsicTag, 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span'>;
|
|
5
5
|
export type RuiHeadlineProps<Tag extends RuiHeadlineAs = 'h2'> = Omit<IntrinsicProps<Tag>, 'as'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps, JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import { type RuiButtonControlProps } from '../button';
|
|
4
4
|
import { type RuiMenuEntry } from '../shared/menu-entry';
|
|
5
5
|
import type { RuiMenuButton as RuiMenuButtonElement, RuiMenuButtonProps } from './menu-button.script';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps, JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import { type RuiMenuEntry } from '../shared/menu-entry';
|
|
4
4
|
import type { RuiMenubar as RuiMenubarElement, RuiMenubarProps } from './menubar.script';
|
|
5
5
|
import './menubar.script';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps, NativeInputProps } from '
|
|
2
|
+
import type { NativeButtonProps, NativeInputProps } from '../../../lib/native-element-props';
|
|
3
3
|
import type { RuiNumberField as RuiNumberFieldElement, RuiNumberFieldProps } from './number-field.script';
|
|
4
4
|
import './number-field.script';
|
|
5
5
|
export type RuiNumberFieldGroupProps = JsxElementProps<HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps, JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps, NativeInputProps } from '
|
|
2
|
+
import type { NativeButtonProps, NativeInputProps } from '../../../lib/native-element-props';
|
|
3
3
|
import { type RuiListboxOptionData } from '../listbox';
|
|
4
4
|
import type { RuiSelect as RuiSelectElement, RuiSelectProps } from './select.script';
|
|
5
5
|
import './select.script';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsxCustomElementAttributes, type JsxElementProps, type JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import type { RuiSidebar as RuiSidebarElement, RuiSidebarProps } from './sidebar.script';
|
|
4
4
|
import './sidebar.script';
|
|
5
5
|
import './sidebar-trigger.script';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import type { RuiTabs as RuiTabsElement, RuiTabsProps } from './tabs.script';
|
|
4
4
|
import './tabs.script';
|
|
5
5
|
export type RuiTabListProps = JsxElementProps<HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JsxCustomElementAttributes, type JsxElementProps, type JsxRenderable } from '@ecopages/jsx';
|
|
2
|
-
import type { NativeButtonProps } from '
|
|
2
|
+
import type { NativeButtonProps } from '../../../lib/native-element-props';
|
|
3
3
|
import type { RuiTagGroup as RuiTagGroupElement, RuiTagGroupProps } from './tag-group.script';
|
|
4
4
|
import './tag-group.script';
|
|
5
5
|
export type RuiTagListProps = JsxElementProps<HTMLDivElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DatePartType, IntlLocale } from '
|
|
1
|
+
import type { DatePartType, IntlLocale } from '../../lib/intl-date/types';
|
|
2
2
|
/** IMask pattern for locale date digits (`0` = digit slot). */
|
|
3
3
|
export type DateMaskPattern = string;
|
|
4
4
|
declare function getNumericPartOrder(locale: IntlLocale): DatePartType[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecopages/radiant-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Accessible light-DOM UI components built with @ecopages/radiant",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -52,17 +52,18 @@
|
|
|
52
52
|
"storybook": "^10.5.2",
|
|
53
53
|
"tailwindcss": "^4.1.11",
|
|
54
54
|
"ts-dedent": "^2.2.0",
|
|
55
|
+
"tsc-alias": "1.8.10",
|
|
55
56
|
"tsx": "^4.20.6",
|
|
56
57
|
"typescript": "~7.0.2",
|
|
57
58
|
"vite": "^8.1.1",
|
|
58
59
|
"vitest": "^4.1.10",
|
|
59
|
-
"@ecopages/radiant": "0.5.0",
|
|
60
60
|
"@ecopages/jsx": "0.5.0",
|
|
61
61
|
"@ecopages/oxlint-config": "0.0.0",
|
|
62
|
-
"@ecopages/radiant
|
|
62
|
+
"@ecopages/radiant": "0.5.0",
|
|
63
63
|
"@ecopages/signals": "0.5.0",
|
|
64
|
-
"@ecopages/
|
|
65
|
-
"@ecopages/storybook-radiant-vite": "0.1.0"
|
|
64
|
+
"@ecopages/radiant-themes": "0.2.4",
|
|
65
|
+
"@ecopages/storybook-radiant-vite": "0.1.0",
|
|
66
|
+
"@ecopages/vite-plugin-radiant": "0.1.0"
|
|
66
67
|
},
|
|
67
68
|
"exports": {
|
|
68
69
|
"./package.json": "./package.json",
|
|
@@ -573,7 +574,7 @@
|
|
|
573
574
|
"clean": "rm -rf dist",
|
|
574
575
|
"generate:exports": "node --import tsx ./scripts/generate-exports.ts",
|
|
575
576
|
"build:files": "node --import tsx ./scripts/build.ts",
|
|
576
|
-
"build:types": "tsc -p tsconfig.build.json",
|
|
577
|
+
"build:types": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
577
578
|
"build:lib": "pnpm run generate:exports && pnpm run clean && pnpm run build:files && pnpm run build:types && pnpm run copy-styles && pnpm run test:package",
|
|
578
579
|
"test:package": "node --test scripts/package-registration.test.mjs",
|
|
579
580
|
"copy-styles": "node --import tsx ./scripts/copy-styles.ts",
|