@aspect-ops/exon-ui 0.1.0 → 0.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.
Files changed (52) hide show
  1. package/README.md +341 -16
  2. package/dist/components/Accordion/Accordion.svelte +2 -2
  3. package/dist/components/Accordion/AccordionItem.svelte +2 -2
  4. package/dist/components/Chatbot/ChatMessage.svelte +143 -0
  5. package/dist/components/Chatbot/ChatMessage.svelte.d.ts +8 -0
  6. package/dist/components/Chatbot/Chatbot.svelte +640 -0
  7. package/dist/components/Chatbot/Chatbot.svelte.d.ts +22 -0
  8. package/dist/components/Chatbot/index.d.ts +3 -0
  9. package/dist/components/Chatbot/index.js +2 -0
  10. package/dist/components/Chatbot/types.d.ts +48 -0
  11. package/dist/components/Chatbot/types.js +2 -0
  12. package/dist/components/ContactForm/ContactForm.svelte +564 -0
  13. package/dist/components/ContactForm/ContactForm.svelte.d.ts +44 -0
  14. package/dist/components/ContactForm/index.d.ts +1 -0
  15. package/dist/components/ContactForm/index.js +1 -0
  16. package/dist/components/DoughnutChart/DoughnutChart.svelte +372 -0
  17. package/dist/components/DoughnutChart/DoughnutChart.svelte.d.ts +25 -0
  18. package/dist/components/DoughnutChart/index.d.ts +1 -0
  19. package/dist/components/DoughnutChart/index.js +1 -0
  20. package/dist/components/FAB/FAB.svelte +5 -1
  21. package/dist/components/FAB/FABGroup.svelte +10 -2
  22. package/dist/components/FileUpload/FileUpload.svelte +12 -12
  23. package/dist/components/Mermaid/Mermaid.svelte +206 -0
  24. package/dist/components/Mermaid/Mermaid.svelte.d.ts +28 -0
  25. package/dist/components/Mermaid/index.d.ts +1 -0
  26. package/dist/components/Mermaid/index.js +1 -0
  27. package/dist/components/Mermaid/mermaid.d.ts +21 -0
  28. package/dist/components/NumberInput/NumberInput.svelte +293 -0
  29. package/dist/components/NumberInput/NumberInput.svelte.d.ts +16 -0
  30. package/dist/components/NumberInput/index.d.ts +1 -0
  31. package/dist/components/NumberInput/index.js +1 -0
  32. package/dist/components/Pagination/Pagination.svelte +243 -0
  33. package/dist/components/Pagination/Pagination.svelte.d.ts +10 -0
  34. package/dist/components/Pagination/index.d.ts +1 -0
  35. package/dist/components/Pagination/index.js +1 -0
  36. package/dist/components/Popover/PopoverTrigger.svelte +1 -3
  37. package/dist/components/ToggleGroup/ToggleGroup.svelte +91 -0
  38. package/dist/components/ToggleGroup/ToggleGroup.svelte.d.ts +13 -0
  39. package/dist/components/ToggleGroup/ToggleGroupItem.svelte +158 -0
  40. package/dist/components/ToggleGroup/ToggleGroupItem.svelte.d.ts +9 -0
  41. package/dist/components/ToggleGroup/index.d.ts +3 -0
  42. package/dist/components/ToggleGroup/index.js +2 -0
  43. package/dist/components/ViewCounter/ViewCounter.svelte +157 -0
  44. package/dist/components/ViewCounter/ViewCounter.svelte.d.ts +17 -0
  45. package/dist/components/ViewCounter/index.d.ts +1 -0
  46. package/dist/components/ViewCounter/index.js +1 -0
  47. package/dist/index.d.ts +13 -1
  48. package/dist/index.js +12 -0
  49. package/dist/styles/tokens.css +2 -1
  50. package/dist/types/index.d.ts +1 -1
  51. package/dist/types/input.d.ts +35 -0
  52. package/package.json +2 -1
@@ -0,0 +1,17 @@
1
+ interface Props {
2
+ /** Unique identifier for the content being viewed */
3
+ slug: string;
4
+ /** Whether to show the "views" label */
5
+ showLabel?: boolean;
6
+ /** Whether to track the view (POST to API) or just display */
7
+ trackView?: boolean;
8
+ /** Custom class */
9
+ class?: string;
10
+ /** Callback to get current view count */
11
+ onGetCount?: (slug: string) => Promise<number>;
12
+ /** Callback to track/increment view */
13
+ onTrackView?: (slug: string) => Promise<number>;
14
+ }
15
+ declare const ViewCounter: import("svelte").Component<Props, {}, "">;
16
+ type ViewCounter = ReturnType<typeof ViewCounter>;
17
+ export default ViewCounter;
@@ -0,0 +1 @@
1
+ export { default as ViewCounter } from './ViewCounter.svelte';
@@ -0,0 +1 @@
1
+ export { default as ViewCounter } from './ViewCounter.svelte';
package/dist/index.d.ts CHANGED
@@ -16,6 +16,12 @@ export { SearchInput } from './components/SearchInput/index.js';
16
16
  export { DatePicker } from './components/DatePicker/index.js';
17
17
  export { FileUpload } from './components/FileUpload/index.js';
18
18
  export { OTPInput } from './components/OTPInput/index.js';
19
+ export { TimePicker } from './components/TimePicker/index.js';
20
+ export { Rating } from './components/Rating/index.js';
21
+ export { ToggleGroup, ToggleGroupItem } from './components/ToggleGroup/index.js';
22
+ export { NumberInput } from './components/NumberInput/index.js';
23
+ export { Pagination } from './components/Pagination/index.js';
24
+ export { Chip, ChipGroup } from './components/Chip/index.js';
19
25
  export { default as Tabs } from './components/Tabs/Tabs.svelte';
20
26
  export { default as TabList } from './components/Tabs/TabList.svelte';
21
27
  export { default as TabTrigger } from './components/Tabs/TabTrigger.svelte';
@@ -71,4 +77,10 @@ export { ActionSheet, ActionSheetItem } from './components/ActionSheet/index.js'
71
77
  export { PullToRefresh } from './components/PullToRefresh/index.js';
72
78
  export { SwipeActions, SwipeAction } from './components/SwipeActions/index.js';
73
79
  export { FAB, FABGroup } from './components/FAB/index.js';
74
- export type { ButtonProps, ButtonVariant, ButtonSize, TypographyProps, TypographyVariant, IconProps, IconSize, BadgeProps, BadgeVariant, LinkProps, InputSize, TextInputType, FormFieldProps, TextInputProps, TextareaProps, SelectOption, SelectProps, CheckboxProps, RadioProps, RadioGroupProps, SwitchProps, SearchInputProps, DatePickerProps, FileUploadProps, OTPInputProps, TimeFormat, TimePickerProps, RatingProps, TabsOrientation, TabsProps, TabListProps, TabTriggerProps, TabContentProps, MenuProps, MenuTriggerProps, MenuContentProps, MenuItemProps, MenuSeparatorProps, MenuSubProps, MenuSubTriggerProps, MenuSubContentProps, BreadcrumbItemData, BreadcrumbsProps, BreadcrumbItemProps, BottomNavItemData, BottomNavProps, BottomNavItemProps, NavItemProps, NavbarProps, SidebarItemData, SidebarProps, SidebarItemProps, SidebarGroupProps, StepperOrientation, StepperProps, StepperStepProps, AlertVariant, AlertProps, ToastVariant, ToastPosition, ToastData, ToastProps, ToastContainerProps, ModalSize, ModalProps, ModalHeaderProps, ModalBodyProps, ModalFooterProps, ProgressSize, ProgressBarProps, ProgressCircleProps, SpinnerProps, TooltipSide, TooltipProps, PopoverSide, PopoverProps, PopoverTriggerProps, PopoverContentProps, SkeletonVariant, SkeletonProps, CardVariant, CardProps, CardHeaderProps, CardBodyProps, CardFooterProps, AvatarSize, AvatarShape, AvatarProps, AvatarGroupProps, TagVariant, TagSize, TagProps, ChipVariant, ChipColor, ChipSize, ChipProps, ChipGroupProps, EmptyStateSize, EmptyStateProps, ListProps, ListItemProps, TableProps, TableHeadProps, TableHeaderAlign, TableHeaderSortDirection, TableHeaderProps, TableBodyProps, TableRowProps, TableCellAlign, TableCellProps, AccordionProps, AccordionItemProps, SliderProps, CarouselProps, CarouselSlideProps, ImageObjectFit, ImageRounded, ImageProps, ContainerSize, ContainerProps, GridAlign, GridJustify, SpacingToken, GridProps, GridItemProps, StackDirection, StackProps, DividerOrientation, DividerProps, SpacerSize, SpacerProps, AspectRatioPreset, AspectRatioProps, CenterProps, BoxProps, SafeAreaEdge, SafeAreaProps, BottomSheetSnapPoint, BottomSheetProps, BottomSheetHeaderProps, BottomSheetBodyProps, ActionSheetAction, ActionSheetProps, ActionSheetItemProps, PullToRefreshProps, SwipeActionSide, SwipeActionData, SwipeActionsProps, SwipeActionProps, FABSize, FABPosition, FABProps, FABAction, FABGroupProps } from './types/index.js';
80
+ export { Chatbot, ChatMessage } from './components/Chatbot/index.js';
81
+ export type { ChatMessage as ChatMessageType, MessageRole, LeadData, ChatbotProps } from './components/Chatbot/types.js';
82
+ export { ContactForm } from './components/ContactForm/index.js';
83
+ export { ViewCounter } from './components/ViewCounter/index.js';
84
+ export { Mermaid } from './components/Mermaid/index.js';
85
+ export { DoughnutChart } from './components/DoughnutChart/index.js';
86
+ export type { ButtonProps, ButtonVariant, ButtonSize, TypographyProps, TypographyVariant, IconProps, IconSize, BadgeProps, BadgeVariant, LinkProps, InputSize, TextInputType, FormFieldProps, TextInputProps, TextareaProps, SelectOption, SelectProps, CheckboxProps, RadioProps, RadioGroupProps, SwitchProps, SearchInputProps, DatePickerProps, FileUploadProps, OTPInputProps, TimeFormat, TimePickerProps, RatingProps, ToggleGroupType, ToggleGroupOrientation, ToggleGroupProps, ToggleGroupItemProps, NumberInputProps, PaginationProps, TabsOrientation, TabsProps, TabListProps, TabTriggerProps, TabContentProps, MenuProps, MenuTriggerProps, MenuContentProps, MenuItemProps, MenuSeparatorProps, MenuSubProps, MenuSubTriggerProps, MenuSubContentProps, BreadcrumbItemData, BreadcrumbsProps, BreadcrumbItemProps, BottomNavItemData, BottomNavProps, BottomNavItemProps, NavItemProps, NavbarProps, SidebarItemData, SidebarProps, SidebarItemProps, SidebarGroupProps, StepperOrientation, StepperProps, StepperStepProps, AlertVariant, AlertProps, ToastVariant, ToastPosition, ToastData, ToastProps, ToastContainerProps, ModalSize, ModalProps, ModalHeaderProps, ModalBodyProps, ModalFooterProps, ProgressSize, ProgressBarProps, ProgressCircleProps, SpinnerProps, TooltipSide, TooltipProps, PopoverSide, PopoverProps, PopoverTriggerProps, PopoverContentProps, SkeletonVariant, SkeletonProps, CardVariant, CardProps, CardHeaderProps, CardBodyProps, CardFooterProps, AvatarSize, AvatarShape, AvatarProps, AvatarGroupProps, TagVariant, TagSize, TagProps, ChipVariant, ChipColor, ChipSize, ChipProps, ChipGroupProps, EmptyStateSize, EmptyStateProps, ListProps, ListItemProps, TableProps, TableHeadProps, TableHeaderAlign, TableHeaderSortDirection, TableHeaderProps, TableBodyProps, TableRowProps, TableCellAlign, TableCellProps, AccordionProps, AccordionItemProps, SliderProps, CarouselProps, CarouselSlideProps, ImageObjectFit, ImageRounded, ImageProps, ContainerSize, ContainerProps, GridAlign, GridJustify, SpacingToken, GridProps, GridItemProps, StackDirection, StackProps, DividerOrientation, DividerProps, SpacerSize, SpacerProps, AspectRatioPreset, AspectRatioProps, CenterProps, BoxProps, SafeAreaEdge, SafeAreaProps, BottomSheetSnapPoint, BottomSheetProps, BottomSheetHeaderProps, BottomSheetBodyProps, ActionSheetAction, ActionSheetProps, ActionSheetItemProps, PullToRefreshProps, SwipeActionSide, SwipeActionData, SwipeActionsProps, SwipeActionProps, FABSize, FABPosition, FABProps, FABAction, FABGroupProps } from './types/index.js';
package/dist/index.js CHANGED
@@ -20,6 +20,12 @@ export { SearchInput } from './components/SearchInput/index.js';
20
20
  export { DatePicker } from './components/DatePicker/index.js';
21
21
  export { FileUpload } from './components/FileUpload/index.js';
22
22
  export { OTPInput } from './components/OTPInput/index.js';
23
+ export { TimePicker } from './components/TimePicker/index.js';
24
+ export { Rating } from './components/Rating/index.js';
25
+ export { ToggleGroup, ToggleGroupItem } from './components/ToggleGroup/index.js';
26
+ export { NumberInput } from './components/NumberInput/index.js';
27
+ export { Pagination } from './components/Pagination/index.js';
28
+ export { Chip, ChipGroup } from './components/Chip/index.js';
23
29
  // Navigation Components
24
30
  export { default as Tabs } from './components/Tabs/Tabs.svelte';
25
31
  export { default as TabList } from './components/Tabs/TabList.svelte';
@@ -80,3 +86,9 @@ export { ActionSheet, ActionSheetItem } from './components/ActionSheet/index.js'
80
86
  export { PullToRefresh } from './components/PullToRefresh/index.js';
81
87
  export { SwipeActions, SwipeAction } from './components/SwipeActions/index.js';
82
88
  export { FAB, FABGroup } from './components/FAB/index.js';
89
+ // Website Components
90
+ export { Chatbot, ChatMessage } from './components/Chatbot/index.js';
91
+ export { ContactForm } from './components/ContactForm/index.js';
92
+ export { ViewCounter } from './components/ViewCounter/index.js';
93
+ export { Mermaid } from './components/Mermaid/index.js';
94
+ export { DoughnutChart } from './components/DoughnutChart/index.js';
@@ -153,7 +153,8 @@
153
153
  * Scale: 1.2 → 1.25
154
154
  * ======================================== */
155
155
 
156
- --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
156
+ --font-family:
157
+ 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
157
158
  --font-family-mono: ui-monospace, 'SF Mono', Menlo, Monaco, 'Cascadia Code', monospace;
158
159
 
159
160
  /* Fluid type scale */
@@ -131,4 +131,4 @@ export type { AlertVariant, AlertProps, ToastVariant, ToastPosition, ToastData,
131
131
  export type { CardVariant, CardProps, CardHeaderProps, CardBodyProps, CardFooterProps, AvatarSize, AvatarShape, AvatarProps, AvatarGroupProps, TagVariant, TagSize, TagProps, ChipVariant, ChipColor, ChipSize, ChipProps, ChipGroupProps, EmptyStateSize, EmptyStateProps, ListProps, ListItemProps, TableProps, TableHeadProps, TableHeaderAlign, TableHeaderSortDirection, TableHeaderProps, TableBodyProps, TableRowProps, TableCellAlign, TableCellProps, AccordionProps, AccordionItemProps, SliderProps, CarouselProps, CarouselSlideProps, ImageObjectFit, ImageRounded, ImageProps } from './data-display.js';
132
132
  export type { ContainerSize, ContainerProps, GridAlign, GridJustify, SpacingToken, GridProps, GridItemProps, StackDirection, StackProps, DividerOrientation, DividerProps, SpacerSize, SpacerProps, AspectRatioPreset, AspectRatioProps, CenterProps, BoxProps } from './layout.js';
133
133
  export type { SafeAreaEdge, SafeAreaProps, BottomSheetSnapPoint, BottomSheetProps, BottomSheetHeaderProps, BottomSheetBodyProps, ActionSheetAction, ActionSheetProps, ActionSheetItemProps, PullToRefreshProps, SwipeActionSide, SwipeActionData, SwipeActionsProps, SwipeActionProps, FABSize, FABPosition, FABProps, FABAction, FABGroupProps } from './mobile.js';
134
- export type { SearchInputProps, DatePickerProps, FileUploadProps, OTPInputProps, TimeFormat, TimePickerProps, RatingProps } from './input.js';
134
+ export type { SearchInputProps, DatePickerProps, FileUploadProps, OTPInputProps, TimeFormat, TimePickerProps, RatingProps, ToggleGroupType, ToggleGroupOrientation, ToggleGroupProps, ToggleGroupItemProps, NumberInputProps, PaginationProps } from './input.js';
@@ -65,3 +65,38 @@ export interface RatingProps {
65
65
  showValue?: boolean;
66
66
  class?: string;
67
67
  }
68
+ export type ToggleGroupType = 'single' | 'multiple';
69
+ export type ToggleGroupOrientation = 'horizontal' | 'vertical';
70
+ export interface ToggleGroupProps {
71
+ type?: ToggleGroupType;
72
+ value?: string | string[];
73
+ onValueChange?: (value: string | string[]) => void;
74
+ disabled?: boolean;
75
+ orientation?: ToggleGroupOrientation;
76
+ class?: string;
77
+ }
78
+ export interface ToggleGroupItemProps {
79
+ value: string;
80
+ disabled?: boolean;
81
+ class?: string;
82
+ }
83
+ export interface NumberInputProps {
84
+ value?: number | null;
85
+ min?: number;
86
+ max?: number;
87
+ step?: number;
88
+ disabled?: boolean;
89
+ placeholder?: string;
90
+ name?: string;
91
+ id?: string;
92
+ error?: boolean;
93
+ class?: string;
94
+ onValueChange?: (value: number | null) => void;
95
+ }
96
+ export interface PaginationProps {
97
+ currentPage: number;
98
+ totalPages: number;
99
+ siblingCount?: number;
100
+ onPageChange?: (page: number) => void;
101
+ class?: string;
102
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspect-ops/exon-ui",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Reusable Svelte UI components for web and Capacitor mobile apps",
5
5
  "author": "Exon Team",
6
6
  "license": "MIT",
@@ -98,6 +98,7 @@
98
98
  "husky": "^9.1.7",
99
99
  "jsdom": "^25.0.0",
100
100
  "lint-staged": "^16.2.7",
101
+ "mermaid": "^11.12.2",
101
102
  "prettier": "^3.0.0",
102
103
  "prettier-plugin-svelte": "^3.0.0",
103
104
  "publint": "^0.2.0",