@xcelsior/ui-spreadsheets 1.0.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 (37) hide show
  1. package/.storybook/main.ts +27 -0
  2. package/.storybook/preview.tsx +28 -0
  3. package/.turbo/turbo-build.log +22 -0
  4. package/CHANGELOG.md +9 -0
  5. package/biome.json +3 -0
  6. package/dist/index.d.mts +687 -0
  7. package/dist/index.d.ts +687 -0
  8. package/dist/index.js +3459 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/index.mjs +3417 -0
  11. package/dist/index.mjs.map +1 -0
  12. package/package.json +51 -0
  13. package/postcss.config.js +5 -0
  14. package/src/components/ColorPickerPopover.tsx +73 -0
  15. package/src/components/ColumnHeaderActions.tsx +139 -0
  16. package/src/components/CommentModals.tsx +137 -0
  17. package/src/components/KeyboardShortcutsModal.tsx +119 -0
  18. package/src/components/RowIndexColumnHeader.tsx +70 -0
  19. package/src/components/Spreadsheet.stories.tsx +1146 -0
  20. package/src/components/Spreadsheet.tsx +1005 -0
  21. package/src/components/SpreadsheetCell.tsx +341 -0
  22. package/src/components/SpreadsheetFilterDropdown.tsx +341 -0
  23. package/src/components/SpreadsheetHeader.tsx +111 -0
  24. package/src/components/SpreadsheetSettingsModal.tsx +555 -0
  25. package/src/components/SpreadsheetToolbar.tsx +346 -0
  26. package/src/hooks/index.ts +40 -0
  27. package/src/hooks/useSpreadsheetComments.ts +132 -0
  28. package/src/hooks/useSpreadsheetFiltering.ts +379 -0
  29. package/src/hooks/useSpreadsheetHighlighting.ts +201 -0
  30. package/src/hooks/useSpreadsheetKeyboardShortcuts.ts +149 -0
  31. package/src/hooks/useSpreadsheetPinning.ts +203 -0
  32. package/src/hooks/useSpreadsheetUndoRedo.ts +167 -0
  33. package/src/index.ts +31 -0
  34. package/src/types.ts +612 -0
  35. package/src/utils.ts +16 -0
  36. package/tsconfig.json +30 -0
  37. package/tsup.config.ts +12 -0
@@ -0,0 +1,27 @@
1
+ import type { StorybookConfig } from '@storybook/react-vite';
2
+
3
+ const config: StorybookConfig = {
4
+ stories: ['../src/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
5
+ addons: [
6
+ '@storybook/addon-links',
7
+ '@storybook/addon-essentials',
8
+ '@storybook/addon-interactions',
9
+ ],
10
+ framework: {
11
+ name: '@storybook/react-vite',
12
+ options: {},
13
+ },
14
+ docs: {
15
+ autodocs: 'tag',
16
+ },
17
+ typescript: {
18
+ check: false,
19
+ reactDocgen: 'react-docgen-typescript',
20
+ reactDocgenTypescriptOptions: {
21
+ shouldExtractLiteralValuesFromEnum: true,
22
+ propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
23
+ },
24
+ },
25
+ };
26
+
27
+ export default config;
@@ -0,0 +1,28 @@
1
+ import '@xcelsior/design-system/styles';
2
+ import type { Preview } from '@storybook/react';
3
+ import { ToastContainer } from '@xcelsior/design-system';
4
+
5
+ const preview: Preview = {
6
+ parameters: {
7
+ actions: { argTypesRegex: '^on[A-Z].*' },
8
+ controls: {
9
+ matchers: {
10
+ color: /(background|color)$/i,
11
+ date: /Date$/,
12
+ },
13
+ },
14
+ docs: {
15
+ toc: true,
16
+ },
17
+ },
18
+ tags: ['autodocs'],
19
+ decorators: [
20
+ (Story) => (
21
+ <ToastContainer>
22
+ <Story />
23
+ </ToastContainer>
24
+ ),
25
+ ],
26
+ };
27
+
28
+ export default preview;
@@ -0,0 +1,22 @@
1
+
2
+ > @xcelsior/ui-spreadsheets@1.0.1 build /home/circleci/repo/packages/ui/ui-spreadsheets
3
+ > tsup && tsc --noEmit
4
+
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Using tsup config: /home/circleci/repo/packages/ui/ui-spreadsheets/tsup.config.ts
9
+ CLI Target: es2020
10
+ CLI Cleaning output folder
11
+ CJS Build start
12
+ ESM Build start
13
+ CJS dist/index.js 146.68 KB
14
+ CJS dist/index.js.map 2.62 MB
15
+ CJS ⚡️ Build success in 691ms
16
+ ESM dist/index.mjs 136.04 KB
17
+ ESM dist/index.mjs.map 2.62 MB
18
+ ESM ⚡️ Build success in 691ms
19
+ DTS Build start
20
+ DTS ⚡️ Build success in 9511ms
21
+ DTS dist/index.d.ts 22.18 KB
22
+ DTS dist/index.d.mts 22.18 KB
package/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # @xcelsior/ui-spreadsheets
2
+
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1a1ea53: add spreadsheet components
8
+ - Updated dependencies [1a1ea53]
9
+ - @xcelsior/design-system@1.0.6
package/biome.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "//"
3
+ }