oneslash-design-system 1.2.14 → 1.2.16

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 (44) hide show
  1. package/dist/components/tableCell.d.ts +4 -1
  2. package/dist/components/tableCell.jsx +5 -2
  3. package/dist/components/tableHeaderCell.d.ts +4 -1
  4. package/dist/components/tableHeaderCell.jsx +5 -2
  5. package/dist/index.d.ts +8 -0
  6. package/dist/index.js +8 -0
  7. package/dist/output.css +6 -0
  8. package/dist/tsconfig.tsbuildinfo +1 -0
  9. package/package.json +27 -4
  10. package/.claude/settings.local.json +0 -9
  11. package/.eslintrc.json +0 -3
  12. package/components/alert.tsx +0 -132
  13. package/components/button.tsx +0 -120
  14. package/components/checkBox.tsx +0 -60
  15. package/components/emptyBox.tsx +0 -33
  16. package/components/iconButton.tsx +0 -103
  17. package/components/loadingScreen.tsx +0 -30
  18. package/components/menu.tsx +0 -35
  19. package/components/menuItem.tsx +0 -117
  20. package/components/modal.tsx +0 -85
  21. package/components/navigation.tsx +0 -27
  22. package/components/popover.tsx +0 -69
  23. package/components/radioGroup.tsx +0 -50
  24. package/components/select.tsx +0 -253
  25. package/components/tab.tsx +0 -85
  26. package/components/tableCell.tsx +0 -15
  27. package/components/tableContainer.tsx +0 -15
  28. package/components/tableHeader.tsx +0 -15
  29. package/components/tableHeaderCell.tsx +0 -15
  30. package/components/tableRow.tsx +0 -15
  31. package/components/tabsContainer.tsx +0 -23
  32. package/components/tag.tsx +0 -81
  33. package/components/textField.tsx +0 -116
  34. package/components/textarea.tsx +0 -120
  35. package/components/timeStamp.tsx +0 -65
  36. package/components/tooltip.tsx +0 -66
  37. package/components/userImage.tsx +0 -64
  38. package/designTokens.js +0 -234
  39. package/index.css +0 -8
  40. package/index.ts +0 -21
  41. package/next.config.mjs +0 -4
  42. package/postcss.config.mjs +0 -8
  43. package/tailwind.config.ts +0 -232
  44. package/tsconfig.json +0 -37
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  interface TableCellProps {
3
3
  children: React.ReactNode;
4
+ width?: string;
5
+ minWidth?: string;
6
+ align?: 'left' | 'center' | 'right';
4
7
  }
5
- export default function TableCell({ children }: TableCellProps): React.JSX.Element;
8
+ export default function TableCell({ children, width, minWidth, align }: TableCellProps): React.JSX.Element;
6
9
  export {};
@@ -1,8 +1,11 @@
1
1
  'use client';
2
2
  import React from 'react';
3
3
  export default function TableCell(_a) {
4
- var children = _a.children;
5
- return (<div className="flex-1 p-2 text-body2 text-light-text-primary dark:text-dark-text-primary border-t border-light-misc-divider dark:border-dark-misc-divider">
4
+ var children = _a.children, width = _a.width, minWidth = _a.minWidth, _b = _a.align, align = _b === void 0 ? 'left' : _b;
5
+ var alignClass = align === 'center' ? 'text-center' : align === 'right' ? 'text-right' : 'text-left';
6
+ var widthStyle = width ? { width: width, minWidth: minWidth || width } : {};
7
+ var flexClass = width ? '' : 'flex-1';
8
+ return (<div className={"".concat(flexClass, " p-2 text-body2 text-light-text-primary dark:text-dark-text-primary border-t border-light-misc-divider dark:border-dark-misc-divider ").concat(alignClass)} style={widthStyle}>
6
9
  {children}
7
10
  </div>);
8
11
  }
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  interface TableHeaderCellProps {
3
3
  children: React.ReactNode;
4
+ width?: string;
5
+ minWidth?: string;
6
+ align?: 'left' | 'center' | 'right';
4
7
  }
5
- export default function TableHeaderCell({ children }: TableHeaderCellProps): React.JSX.Element;
8
+ export default function TableHeaderCell({ children, width, minWidth, align }: TableHeaderCellProps): React.JSX.Element;
6
9
  export {};
@@ -1,8 +1,11 @@
1
1
  'use client';
2
2
  import React from 'react';
3
3
  export default function TableHeaderCell(_a) {
4
- var children = _a.children;
5
- return (<div className="flex-1 p-2 text-body2 text-light-text-primary dark:text-dark-text-primary">
4
+ var children = _a.children, width = _a.width, minWidth = _a.minWidth, _b = _a.align, align = _b === void 0 ? 'left' : _b;
5
+ var alignClass = align === 'center' ? 'text-center' : align === 'right' ? 'text-right' : 'text-left';
6
+ var widthStyle = width ? { width: width, minWidth: minWidth || width } : {};
7
+ var flexClass = width ? '' : 'flex-1';
8
+ return (<div className={"".concat(flexClass, " p-2 text-body2 text-light-text-primary dark:text-dark-text-primary ").concat(alignClass)} style={widthStyle}>
6
9
  {children}
7
10
  </div>);
8
11
  }
package/dist/index.d.ts CHANGED
@@ -11,9 +11,17 @@ export * from './components/menuItem';
11
11
  export * from './components/modal';
12
12
  export * from './components/navigation';
13
13
  export * from './components/popover';
14
+ export * from './components/radioGroup';
14
15
  export * from './components/select';
15
16
  export * from './components/tab';
17
+ export * from './components/tableCell';
18
+ export * from './components/tableContainer';
19
+ export * from './components/tableHeader';
20
+ export * from './components/tableHeaderCell';
21
+ export * from './components/tableRow';
22
+ export * from './components/tabsContainer';
16
23
  export * from './components/tag';
24
+ export * from './components/textarea';
17
25
  export * from './components/textField';
18
26
  export * from './components/timeStamp';
19
27
  export * from './components/tooltip';
package/dist/index.js CHANGED
@@ -11,9 +11,17 @@ export * from './components/menuItem';
11
11
  export * from './components/modal';
12
12
  export * from './components/navigation';
13
13
  export * from './components/popover';
14
+ export * from './components/radioGroup';
14
15
  export * from './components/select';
15
16
  export * from './components/tab';
17
+ export * from './components/tableCell';
18
+ export * from './components/tableContainer';
19
+ export * from './components/tableHeader';
20
+ export * from './components/tableHeaderCell';
21
+ export * from './components/tableRow';
22
+ export * from './components/tabsContainer';
16
23
  export * from './components/tag';
24
+ export * from './components/textarea';
17
25
  export * from './components/textField';
18
26
  export * from './components/timeStamp';
19
27
  export * from './components/tooltip';
package/dist/output.css CHANGED
@@ -944,9 +944,15 @@ video {
944
944
  padding-top: 3px;
945
945
  padding-bottom: 3px;
946
946
  }
947
+ .text-left {
948
+ text-align: left;
949
+ }
947
950
  .text-center {
948
951
  text-align: center;
949
952
  }
953
+ .text-right {
954
+ text-align: right;
955
+ }
950
956
  .text-body1 {
951
957
  font-size: 16px;
952
958
  }