rudiment-ui 0.1.0 → 0.3.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.
Files changed (124) hide show
  1. package/README.md +325 -35
  2. package/dist/components/Alert/Alert.d.ts +2 -2
  3. package/dist/components/Alert/Alert.d.ts.map +1 -1
  4. package/dist/components/AppShell/AppShell.d.ts +48 -0
  5. package/dist/components/AppShell/AppShell.d.ts.map +1 -0
  6. package/dist/components/Avatar/Avatar.d.ts +2 -2
  7. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  8. package/dist/components/Badge/Badge.d.ts +2 -2
  9. package/dist/components/Badge/Badge.d.ts.map +1 -1
  10. package/dist/components/Breadcrumb/Breadcrumb.d.ts +14 -0
  11. package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  12. package/dist/components/Button/Button.d.ts +2 -2
  13. package/dist/components/Button/Button.d.ts.map +1 -1
  14. package/dist/components/Card/Card.d.ts +8 -8
  15. package/dist/components/Card/Card.d.ts.map +1 -1
  16. package/dist/components/Charts/BarChart/BarChart.d.ts +7 -3
  17. package/dist/components/Charts/BarChart/BarChart.d.ts.map +1 -1
  18. package/dist/components/Charts/DonutChart/DonutChart.d.ts +4 -4
  19. package/dist/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
  20. package/dist/components/Charts/LineChart/LineChart.d.ts +8 -3
  21. package/dist/components/Charts/LineChart/LineChart.d.ts.map +1 -1
  22. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  23. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
  24. package/dist/components/Checkbox/CheckboxGroup.d.ts +2 -2
  25. package/dist/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
  26. package/dist/components/CircularProgress/CircularProgress.d.ts +2 -2
  27. package/dist/components/CircularProgress/CircularProgress.d.ts.map +1 -1
  28. package/dist/components/Dialog/Dialog.d.ts +2 -2
  29. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  30. package/dist/components/Divider/Divider.d.ts +15 -0
  31. package/dist/components/Divider/Divider.d.ts.map +1 -0
  32. package/dist/components/Dot/Dot.d.ts +20 -0
  33. package/dist/components/Dot/Dot.d.ts.map +1 -0
  34. package/dist/components/Footer/Footer.d.ts +31 -0
  35. package/dist/components/Footer/Footer.d.ts.map +1 -0
  36. package/dist/components/Icon/Icon.d.ts +2 -2
  37. package/dist/components/Icon/Icon.d.ts.map +1 -1
  38. package/dist/components/IconButton/IconButton.d.ts +2 -2
  39. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  40. package/dist/components/Image/Image.d.ts +18 -0
  41. package/dist/components/Image/Image.d.ts.map +1 -0
  42. package/dist/components/Input/Input.d.ts +2 -2
  43. package/dist/components/Input/Input.d.ts.map +1 -1
  44. package/dist/components/Kanban/KanbanBoard.d.ts +12 -12
  45. package/dist/components/Kanban/KanbanBoard.d.ts.map +1 -1
  46. package/dist/components/Kanban/KanbanCard.d.ts +2 -2
  47. package/dist/components/Kanban/KanbanCard.d.ts.map +1 -1
  48. package/dist/components/Kanban/KanbanColumn.d.ts +5 -5
  49. package/dist/components/Kanban/KanbanColumn.d.ts.map +1 -1
  50. package/dist/components/Link/Link.d.ts +16 -0
  51. package/dist/components/Link/Link.d.ts.map +1 -0
  52. package/dist/components/Menu/Keyboard.d.ts +2 -2
  53. package/dist/components/Menu/Keyboard.d.ts.map +1 -1
  54. package/dist/components/Menu/Menu.d.ts +2 -2
  55. package/dist/components/Menu/Menu.d.ts.map +1 -1
  56. package/dist/components/Menu/MenuItem.d.ts +11 -2
  57. package/dist/components/Menu/MenuItem.d.ts.map +1 -1
  58. package/dist/components/Menu/MenuSection.d.ts +2 -2
  59. package/dist/components/Menu/MenuSection.d.ts.map +1 -1
  60. package/dist/components/Menu/MenuSeparator.d.ts +5 -0
  61. package/dist/components/Menu/MenuSeparator.d.ts.map +1 -0
  62. package/dist/components/Menu/MenuTrigger.d.ts +2 -2
  63. package/dist/components/Menu/MenuTrigger.d.ts.map +1 -1
  64. package/dist/components/Menu/SubmenuTrigger.d.ts +5 -0
  65. package/dist/components/Menu/SubmenuTrigger.d.ts.map +1 -0
  66. package/dist/components/NavItem/NavItem.d.ts +2 -2
  67. package/dist/components/NavItem/NavItem.d.ts.map +1 -1
  68. package/dist/components/PageHeader/PageHeader.d.ts +12 -0
  69. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
  70. package/dist/components/Pagination/Pagination.d.ts +14 -0
  71. package/dist/components/Pagination/Pagination.d.ts.map +1 -0
  72. package/dist/components/ProgressBar/ProgressBar.d.ts +15 -3
  73. package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
  74. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
  75. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  76. package/dist/components/Rating/Rating.d.ts +18 -0
  77. package/dist/components/Rating/Rating.d.ts.map +1 -0
  78. package/dist/components/SectionHeader/SectionHeader.d.ts +12 -0
  79. package/dist/components/SectionHeader/SectionHeader.d.ts.map +1 -0
  80. package/dist/components/Select/Option.d.ts +3 -0
  81. package/dist/components/Select/Option.d.ts.map +1 -0
  82. package/dist/components/Select/Select.d.ts +2 -2
  83. package/dist/components/Select/Select.d.ts.map +1 -1
  84. package/dist/components/StatCard/StatCard.d.ts +2 -2
  85. package/dist/components/StatCard/StatCard.d.ts.map +1 -1
  86. package/dist/components/Stepper/Stepper.d.ts +17 -0
  87. package/dist/components/Stepper/Stepper.d.ts.map +1 -0
  88. package/dist/components/Switch/Switch.d.ts +2 -2
  89. package/dist/components/Switch/Switch.d.ts.map +1 -1
  90. package/dist/components/Tag/Tag.d.ts +2 -2
  91. package/dist/components/Tag/Tag.d.ts.map +1 -1
  92. package/dist/components/Textarea/Textarea.d.ts +17 -0
  93. package/dist/components/Textarea/Textarea.d.ts.map +1 -0
  94. package/dist/components/Tooltip/Tooltip.d.ts +4 -4
  95. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  96. package/dist/components/TopBar/TopBar.d.ts +18 -0
  97. package/dist/components/TopBar/TopBar.d.ts.map +1 -0
  98. package/dist/index.css +1 -1
  99. package/dist/index.d.ts +109 -85
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +1424 -945
  102. package/dist/layouts/Box/Box.d.ts +2 -2
  103. package/dist/layouts/Box/Box.d.ts.map +1 -1
  104. package/dist/layouts/Center/Center.d.ts +2 -2
  105. package/dist/layouts/Center/Center.d.ts.map +1 -1
  106. package/dist/layouts/Cluster/Cluster.d.ts +2 -2
  107. package/dist/layouts/Cluster/Cluster.d.ts.map +1 -1
  108. package/dist/layouts/Cover/Cover.d.ts +2 -2
  109. package/dist/layouts/Cover/Cover.d.ts.map +1 -1
  110. package/dist/layouts/Grid/Grid.d.ts +2 -2
  111. package/dist/layouts/Grid/Grid.d.ts.map +1 -1
  112. package/dist/layouts/Sidebar/Sidebar.d.ts +2 -2
  113. package/dist/layouts/Sidebar/Sidebar.d.ts.map +1 -1
  114. package/dist/layouts/Stack/Stack.d.ts +3 -3
  115. package/dist/layouts/Stack/Stack.d.ts.map +1 -1
  116. package/dist/layouts/Switcher/Switcher.d.ts +2 -2
  117. package/dist/layouts/Switcher/Switcher.d.ts.map +1 -1
  118. package/dist/typography/Heading/Heading.d.ts +11 -2
  119. package/dist/typography/Heading/Heading.d.ts.map +1 -1
  120. package/dist/typography/Prose/Prose.d.ts +2 -2
  121. package/dist/typography/Prose/Prose.d.ts.map +1 -1
  122. package/dist/typography/Text/Text.d.ts +13 -2
  123. package/dist/typography/Text/Text.d.ts.map +1 -1
  124. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
- export interface BoxProps extends React.HTMLAttributes<HTMLElement> {
1
+ export interface RudiBoxProps extends React.HTMLAttributes<HTMLElement> {
2
2
  padding?: string;
3
3
  bordered?: boolean;
4
4
  invert?: boolean;
5
5
  as?: React.ElementType;
6
6
  children?: React.ReactNode;
7
7
  }
8
- export declare const Box: import('react').ForwardRefExoticComponent<BoxProps & import('react').RefAttributes<HTMLElement>>;
8
+ export declare const RudiBox: import('react').ForwardRefExoticComponent<RudiBoxProps & import('react').RefAttributes<HTMLElement>>;
9
9
  //# sourceMappingURL=Box.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/layouts/Box/Box.tsx"],"names":[],"mappings":"AAGA,OAAO,WAAW,CAAA;AAElB,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACjE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,GAAG,kGA+Bd,CAAA"}
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/layouts/Box/Box.tsx"],"names":[],"mappings":"AAGA,OAAO,WAAW,CAAA;AAElB,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACrE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,OAAO,sGA+BlB,CAAA"}
@@ -1,9 +1,9 @@
1
- export interface CenterProps extends React.HTMLAttributes<HTMLElement> {
1
+ export interface RudiCenterProps extends React.HTMLAttributes<HTMLElement> {
2
2
  maxWidth?: string;
3
3
  gutters?: string;
4
4
  intrinsic?: boolean;
5
5
  as?: React.ElementType;
6
6
  children?: React.ReactNode;
7
7
  }
8
- export declare const Center: import('react').ForwardRefExoticComponent<CenterProps & import('react').RefAttributes<HTMLElement>>;
8
+ export declare const RudiCenter: import('react').ForwardRefExoticComponent<RudiCenterProps & import('react').RefAttributes<HTMLElement>>;
9
9
  //# sourceMappingURL=Center.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../src/layouts/Center/Center.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,MAAM,qGA+BjB,CAAA"}
1
+ {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../src/layouts/Center/Center.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,UAAU,yGA+BrB,CAAA"}
@@ -1,9 +1,9 @@
1
- export interface ClusterProps extends React.HTMLAttributes<HTMLElement> {
1
+ export interface RudiClusterProps extends React.HTMLAttributes<HTMLElement> {
2
2
  space?: string;
3
3
  justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
4
4
  align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
5
5
  as?: React.ElementType;
6
6
  children?: React.ReactNode;
7
7
  }
8
- export declare const Cluster: import('react').ForwardRefExoticComponent<ClusterProps & import('react').RefAttributes<HTMLElement>>;
8
+ export declare const RudiCluster: import('react').ForwardRefExoticComponent<RudiClusterProps & import('react').RefAttributes<HTMLElement>>;
9
9
  //# sourceMappingURL=Cluster.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cluster/Cluster.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EACJ,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,eAAe,GACf,cAAc,CAAA;IAClB,KAAK,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;IACrE,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,OAAO,sGA4BlB,CAAA"}
1
+ {"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cluster/Cluster.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EACJ,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,eAAe,GACf,cAAc,CAAA;IAClB,KAAK,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;IACrE,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,WAAW,0GA4BtB,CAAA"}
@@ -1,8 +1,8 @@
1
- export interface CoverProps extends React.HTMLAttributes<HTMLElement> {
1
+ export interface RudiCoverProps extends React.HTMLAttributes<HTMLElement> {
2
2
  minHeight?: string;
3
3
  space?: string;
4
4
  as?: React.ElementType;
5
5
  children?: React.ReactNode;
6
6
  }
7
- export declare const Cover: import('react').ForwardRefExoticComponent<CoverProps & import('react').RefAttributes<HTMLElement>>;
7
+ export declare const RudiCover: import('react').ForwardRefExoticComponent<RudiCoverProps & import('react').RefAttributes<HTMLElement>>;
8
8
  //# sourceMappingURL=Cover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cover.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cover/Cover.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,KAAK,oGA0BhB,CAAA"}
1
+ {"version":3,"file":"Cover.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cover/Cover.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACvE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,SAAS,wGA0BpB,CAAA"}
@@ -1,8 +1,8 @@
1
- export interface GridProps extends React.HTMLAttributes<HTMLElement> {
1
+ export interface RudiGridProps extends React.HTMLAttributes<HTMLElement> {
2
2
  minCellWidth?: string;
3
3
  space?: string;
4
4
  as?: React.ElementType;
5
5
  children?: React.ReactNode;
6
6
  }
7
- export declare const Grid: import('react').ForwardRefExoticComponent<GridProps & import('react').RefAttributes<HTMLElement>>;
7
+ export declare const RudiGrid: import('react').ForwardRefExoticComponent<RudiGridProps & import('react').RefAttributes<HTMLElement>>;
8
8
  //# sourceMappingURL=Grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/layouts/Grid/Grid.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,IAAI,mGA0Bf,CAAA"}
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/layouts/Grid/Grid.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,QAAQ,uGA0BnB,CAAA"}
@@ -1,4 +1,4 @@
1
- export interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
1
+ export interface RudiSidebarProps extends React.HTMLAttributes<HTMLElement> {
2
2
  side?: 'left' | 'right';
3
3
  sideWidth?: string;
4
4
  contentMin?: string;
@@ -7,5 +7,5 @@ export interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
7
7
  as?: React.ElementType;
8
8
  children?: React.ReactNode;
9
9
  }
10
- export declare const Sidebar: import('react').ForwardRefExoticComponent<SidebarProps & import('react').RefAttributes<HTMLElement>>;
10
+ export declare const RudiSidebar: import('react').ForwardRefExoticComponent<RudiSidebarProps & import('react').RefAttributes<HTMLElement>>;
11
11
  //# sourceMappingURL=Sidebar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/layouts/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACrE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,OAAO,sGAmClB,CAAA"}
1
+ {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/layouts/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,WAAW,0GAmCtB,CAAA"}
@@ -1,5 +1,5 @@
1
- export interface StackProps extends React.HTMLAttributes<HTMLElement> {
2
- /** CSS spacing value. Defaults to --token-layout-stack-space-default token. */
1
+ export interface RudiStackProps extends React.HTMLAttributes<HTMLElement> {
2
+ /** CSS spacing value. Defaults to --rudi-layout-stack-space-default token. */
3
3
  space?: string;
4
4
  /** Apply spacing recursively to all nested elements, not just direct children. */
5
5
  recursive?: boolean;
@@ -9,5 +9,5 @@ export interface StackProps extends React.HTMLAttributes<HTMLElement> {
9
9
  as?: React.ElementType;
10
10
  children?: React.ReactNode;
11
11
  }
12
- export declare const Stack: import('react').ForwardRefExoticComponent<StackProps & import('react').RefAttributes<HTMLElement>>;
12
+ export declare const RudiStack: import('react').ForwardRefExoticComponent<RudiStackProps & import('react').RefAttributes<HTMLElement>>;
13
13
  //# sourceMappingURL=Stack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/layouts/Stack/Stack.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACnE,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,KAAK,oGAsDhB,CAAA"}
1
+ {"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/layouts/Stack/Stack.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACvE,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,SAAS,wGAsDpB,CAAA"}
@@ -1,9 +1,9 @@
1
- export interface SwitcherProps extends React.HTMLAttributes<HTMLElement> {
1
+ export interface RudiSwitcherProps extends React.HTMLAttributes<HTMLElement> {
2
2
  threshold?: string;
3
3
  space?: string;
4
4
  limit?: number;
5
5
  as?: React.ElementType;
6
6
  children?: React.ReactNode;
7
7
  }
8
- export declare const Switcher: import('react').ForwardRefExoticComponent<SwitcherProps & import('react').RefAttributes<HTMLElement>>;
8
+ export declare const RudiSwitcher: import('react').ForwardRefExoticComponent<RudiSwitcherProps & import('react').RefAttributes<HTMLElement>>;
9
9
  //# sourceMappingURL=Switcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switcher.d.ts","sourceRoot":"","sources":["../../../src/layouts/Switcher/Switcher.tsx"],"names":[],"mappings":"AAEA,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,QAAQ,uGA6BpB,CAAA"}
1
+ {"version":3,"file":"Switcher.d.ts","sourceRoot":"","sources":["../../../src/layouts/Switcher/Switcher.tsx"],"names":[],"mappings":"AAEA,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,YAAY,2GA6BxB,CAAA"}
@@ -1,8 +1,17 @@
1
- export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
1
+ import { RudiTypographyAlign, RudiTypographyTone, RudiTypographyWeight } from '../Text/Text';
2
+ export interface RudiHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
2
3
  level: 1 | 2 | 3 | 4 | 5 | 6;
3
4
  size?: 1 | 2 | 3 | 4 | 5 | 6;
5
+ /** Font weight, overriding the size default. */
6
+ weight?: RudiTypographyWeight;
7
+ /** Semantic text color. */
8
+ tone?: RudiTypographyTone;
9
+ /** Text alignment. */
10
+ align?: RudiTypographyAlign;
11
+ /** Removes the element's default block margin. */
12
+ noMargin?: boolean;
4
13
  children: React.ReactNode;
5
14
  className?: string;
6
15
  }
7
- export declare const Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
16
+ export declare const RudiHeading: import('react').ForwardRefExoticComponent<RudiHeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
8
17
  //# sourceMappingURL=Heading.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/typography/Heading/Heading.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IAC5E,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC5B,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,OAAO,6GAkBnB,CAAA"}
1
+ {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/typography/Heading/Heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IAChF,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC5B,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC5B,gDAAgD;IAChD,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,sBAAsB;IACtB,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,iHAyBvB,CAAA"}
@@ -1,8 +1,8 @@
1
- export interface ProseProps extends React.HTMLAttributes<HTMLElement> {
1
+ export interface RudiProseProps extends React.HTMLAttributes<HTMLElement> {
2
2
  size?: 'sm' | 'base' | 'lg';
3
3
  as?: React.ElementType;
4
4
  children: React.ReactNode;
5
5
  className?: string;
6
6
  }
7
- export declare const Prose: import('react').ForwardRefExoticComponent<ProseProps & import('react').RefAttributes<HTMLElement>>;
7
+ export declare const RudiProse: import('react').ForwardRefExoticComponent<RudiProseProps & import('react').RefAttributes<HTMLElement>>;
8
8
  //# sourceMappingURL=Prose.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Prose.d.ts","sourceRoot":"","sources":["../../../src/typography/Prose/Prose.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACnE,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAC3B,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,KAAK,oGAiBhB,CAAA"}
1
+ {"version":3,"file":"Prose.d.ts","sourceRoot":"","sources":["../../../src/typography/Prose/Prose.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACvE,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAC3B,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,SAAS,wGAiBpB,CAAA"}
@@ -1,8 +1,19 @@
1
- export interface TextProps extends React.HTMLAttributes<HTMLElement> {
1
+ export type RudiTypographyWeight = 'regular' | 'medium' | 'semibold' | 'bold';
2
+ export type RudiTypographyTone = 'default' | 'subtle' | 'disabled' | 'brand' | 'inverted' | 'success' | 'warning' | 'error' | 'info';
3
+ export type RudiTypographyAlign = 'start' | 'center' | 'end' | 'justify';
4
+ export interface RudiTextProps extends React.HTMLAttributes<HTMLElement> {
2
5
  variant?: 'body' | 'body-sm' | 'caption' | 'overline' | 'code';
3
6
  as?: React.ElementType;
7
+ /** Font weight, overriding the variant default. */
8
+ weight?: RudiTypographyWeight;
9
+ /** Semantic text color. */
10
+ tone?: RudiTypographyTone;
11
+ /** Text alignment. */
12
+ align?: RudiTypographyAlign;
13
+ /** Removes the element's default block margin. */
14
+ noMargin?: boolean;
4
15
  children: React.ReactNode;
5
16
  className?: string;
6
17
  }
7
- export declare const Text: import('react').ForwardRefExoticComponent<TextProps & import('react').RefAttributes<HTMLElement>>;
18
+ export declare const RudiText: import('react').ForwardRefExoticComponent<RudiTextProps & import('react').RefAttributes<HTMLElement>>;
8
19
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/typography/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAClE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAA;IAC9D,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,IAAI,mGAaf,CAAA"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/typography/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAA;AAC7E,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,QAAQ,GACR,UAAU,GACV,OAAO,GACP,UAAU,GACV,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAA;AACV,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAA;AAExE,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAA;IAC9D,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,mDAAmD;IACnD,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,sBAAsB;IACtB,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,uGA8BnB,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rudiment-ui",
3
- "version": "0.1.0",
4
- "description": "Accessible React component library built on React Aria, with layout primitives, charts, and a three-tier design token architecture supporting six built-in themes.",
3
+ "version": "0.3.0",
4
+ "description": "Accessible React component library built on React Aria, with layout primitives, charts, and a three-tier design token architecture supporting eight built-in themes.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
7
  "dev": "storybook dev -p 6006",
@@ -9,7 +9,7 @@
9
9
  "prepare": "npm run build:tokens && npm run build",
10
10
  "prepublishOnly": "npm run build:tokens && npm run build",
11
11
  "build-storybook": "storybook build",
12
- "build:tokens": "style-dictionary build --config tokens/style-dictionary.config.mjs && style-dictionary build --config tokens/style-dictionary.config.dark.mjs && style-dictionary build --config tokens/style-dictionary.config.teal.mjs && style-dictionary build --config tokens/style-dictionary.config.teal-dark.mjs && style-dictionary build --config tokens/style-dictionary.config.cyberpunk.mjs && style-dictionary build --config tokens/style-dictionary.config.cyberpunk-dark.mjs",
12
+ "build:tokens": "style-dictionary build --config tokens/style-dictionary.config.mjs && style-dictionary build --config tokens/style-dictionary.config.dark.mjs && style-dictionary build --config tokens/style-dictionary.config.roomy.mjs && style-dictionary build --config tokens/style-dictionary.config.roomy-dark.mjs && style-dictionary build --config tokens/style-dictionary.config.soft.mjs && style-dictionary build --config tokens/style-dictionary.config.soft-dark.mjs && style-dictionary build --config tokens/style-dictionary.config.compressed.mjs && style-dictionary build --config tokens/style-dictionary.config.compressed-dark.mjs",
13
13
  "test": "vitest",
14
14
  "test:coverage": "vitest --coverage",
15
15
  "test:watch": "vitest --watch"