@cognitap/radiant 0.0.53 → 0.0.55
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 +15 -0
- package/dist/library/Alert.d.ts +2 -10
- package/dist/library/Alert.d.ts.map +1 -1
- package/dist/library/Alert.js +1 -1
- package/dist/library/Alert.js.map +1 -1
- package/dist/library/Card.d.ts +2 -9
- package/dist/library/Card.d.ts.map +1 -1
- package/dist/library/Card.js +1 -8
- package/dist/library/Card.js.map +1 -1
- package/dist/library/Combobox.d.ts +1 -1
- package/dist/library/Combobox.d.ts.map +1 -1
- package/dist/library/Command.d.ts +1 -1
- package/dist/library/Command.d.ts.map +1 -1
- package/dist/library/EmptyState.d.ts +33 -0
- package/dist/library/EmptyState.d.ts.map +1 -0
- package/dist/library/EmptyState.js +42 -0
- package/dist/library/EmptyState.js.map +1 -0
- package/dist/library/Select.d.ts +9 -11
- package/dist/library/Select.d.ts.map +1 -1
- package/dist/library/Select.js +9 -13
- package/dist/library/Select.js.map +1 -1
- package/dist/library/Slider.d.ts +2 -2
- package/dist/library/Slider.d.ts.map +1 -1
- package/dist/library/Tabs.d.ts +8 -8
- package/dist/library/Tabs.d.ts.map +1 -1
- package/dist/library/Tabs.js +6 -6
- package/dist/library/Tabs.js.map +1 -1
- package/dist/library/cn.d.ts.map +1 -1
- package/dist/library/cn.js +9 -0
- package/dist/library/cn.js.map +1 -1
- package/dist/library/index.d.ts +5 -3
- package/dist/library/index.d.ts.map +1 -1
- package/dist/library/index.js +1 -0
- package/dist/library/index.js.map +1 -1
- package/dist/library/internal/headings.d.ts +11 -0
- package/dist/library/internal/headings.d.ts.map +1 -0
- package/dist/library/internal/headings.js +3 -0
- package/dist/library/internal/headings.js.map +1 -0
- package/dist/library/presentation.d.ts +1 -0
- package/dist/library/presentation.d.ts.map +1 -1
- package/dist/library/styles.css +1 -1
- package/dist/library/themes/components.d.ts +16 -0
- package/dist/library/themes/components.d.ts.map +1 -1
- package/dist/library/themes/components.js +16 -0
- package/dist/library/themes/components.js.map +1 -1
- package/docs/architecture.md +2 -2
- package/package.json +1 -1
- package/src/Alert.tsx +2 -2
- package/src/Card.tsx +2 -10
- package/src/Combobox.tsx +1 -1
- package/src/Command.tsx +1 -1
- package/src/EmptyState.tsx +112 -0
- package/src/Select.tsx +32 -17
- package/src/Slider.tsx +2 -2
- package/src/Tabs.tsx +12 -13
- package/src/cn.ts +9 -0
- package/src/index.ts +20 -1
- package/src/internal/headings.ts +3 -0
- package/src/presentation.ts +1 -0
- package/src/themes/components.ts +16 -0
package/src/index.ts
CHANGED
|
@@ -102,6 +102,7 @@ export type {
|
|
|
102
102
|
TabsListProps,
|
|
103
103
|
TabsTriggerProps,
|
|
104
104
|
TabsContentProps,
|
|
105
|
+
TabsRenderProps,
|
|
105
106
|
TabsState
|
|
106
107
|
} from './Tabs.js'
|
|
107
108
|
export {
|
|
@@ -123,6 +124,7 @@ export type {
|
|
|
123
124
|
SelectOption,
|
|
124
125
|
SelectState,
|
|
125
126
|
SelectTriggerProps,
|
|
127
|
+
SelectRenderProps,
|
|
126
128
|
SelectValueProps,
|
|
127
129
|
SelectIconProps,
|
|
128
130
|
SelectContentProps,
|
|
@@ -233,7 +235,7 @@ export type { ThemeScopeProps } from './ThemeScope.js'
|
|
|
233
235
|
export type { ButtonProps, ButtonRenderProps, ButtonVariant } from './Button.js'
|
|
234
236
|
export { generateTypography, typographyPresets, typographyRoles } from './typography/index.js'
|
|
235
237
|
export type * from './typography/types.js'
|
|
236
|
-
export type { ControlSize, Tone } from './presentation.js'
|
|
238
|
+
export type { ControlSize, Orientation, Tone } from './presentation.js'
|
|
237
239
|
|
|
238
240
|
export {
|
|
239
241
|
defineThemeDocument,
|
|
@@ -636,3 +638,20 @@ export {
|
|
|
636
638
|
type CommandListProps,
|
|
637
639
|
type CommandItemProps
|
|
638
640
|
} from './Command.js'
|
|
641
|
+
|
|
642
|
+
export {
|
|
643
|
+
EmptyState,
|
|
644
|
+
EmptyStateIcon,
|
|
645
|
+
EmptyStateTitle,
|
|
646
|
+
EmptyStateDescription,
|
|
647
|
+
EmptyStateActions,
|
|
648
|
+
type EmptyStateProps,
|
|
649
|
+
type EmptyStateVariant,
|
|
650
|
+
type EmptyStateTone,
|
|
651
|
+
type EmptyStateIconProps,
|
|
652
|
+
type EmptyStateTitleProps,
|
|
653
|
+
type EmptyStateHeadingLevel,
|
|
654
|
+
type EmptyStateDescriptionProps,
|
|
655
|
+
type EmptyStateActionsProps
|
|
656
|
+
} from './EmptyState.js'
|
|
657
|
+
export type { HeadingLevel } from './internal/headings.js'
|
package/src/presentation.ts
CHANGED
|
@@ -7,6 +7,7 @@ type ActionPresentation = VariantProps<typeof actionVariants>
|
|
|
7
7
|
export type ButtonVariant = NonNullable<ActionPresentation['variant']>
|
|
8
8
|
export type Tone = NonNullable<ActionPresentation['tone']>
|
|
9
9
|
export type ControlSize = 'small' | 'medium' | 'large'
|
|
10
|
+
export type Orientation = 'horizontal' | 'vertical'
|
|
10
11
|
|
|
11
12
|
export type PartStyle = { className?: string; style?: ThemeStyle }
|
|
12
13
|
export type ControlParts = { wrapper?: PartStyle; label?: PartStyle; indicator?: PartStyle }
|
package/src/themes/components.ts
CHANGED
|
@@ -2,6 +2,22 @@ import { kebabCase } from './tokens.js'
|
|
|
2
2
|
|
|
3
3
|
/** Explicit component slots; omitted slots reset to CSS fallback semantics. */
|
|
4
4
|
export const componentRegistry = {
|
|
5
|
+
emptyState: {
|
|
6
|
+
padding: 'css',
|
|
7
|
+
gap: 'css',
|
|
8
|
+
radius: 'css',
|
|
9
|
+
borderWidth: 'css',
|
|
10
|
+
borderColor: 'css',
|
|
11
|
+
background: 'css',
|
|
12
|
+
color: 'css',
|
|
13
|
+
iconSize: 'css',
|
|
14
|
+
iconColor: 'css',
|
|
15
|
+
titleSize: 'css',
|
|
16
|
+
titleWeight: 'weight',
|
|
17
|
+
descriptionSize: 'css',
|
|
18
|
+
descriptionColor: 'css',
|
|
19
|
+
actionsGap: 'css'
|
|
20
|
+
},
|
|
5
21
|
command: { resultsMaxHeight: 'css' },
|
|
6
22
|
navLink: {
|
|
7
23
|
fontFamily: 'css',
|