@economic/taco 2.45.0-alpha.3 → 2.45.0-alpha.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. package/dist/charts/components/Area/AreaChart.d.ts +19 -0
  2. package/dist/charts/components/Bar/BarChart.d.ts +20 -0
  3. package/dist/charts/components/Donut/ActiveShape.d.ts +8 -0
  4. package/dist/charts/components/Donut/CenteredLabel.d.ts +11 -0
  5. package/dist/charts/components/Donut/DonutChart.d.ts +21 -0
  6. package/dist/charts/components/Donut/Legend.d.ts +13 -0
  7. package/dist/charts/components/Donut/util.d.ts +2 -0
  8. package/dist/charts/components/Legend.d.ts +16 -0
  9. package/dist/charts/components/Line/LineChart.d.ts +18 -0
  10. package/dist/charts/components/ResponsiveContainer.d.ts +5 -0
  11. package/dist/charts/components/Tooltip.d.ts +10 -0
  12. package/dist/charts/components/types.d.ts +5 -0
  13. package/dist/charts/utils/color.d.ts +3 -0
  14. package/dist/charts/utils/common.d.ts +37 -0
  15. package/dist/components/RadioGroup/RadioGroup.d.ts +3 -3
  16. package/dist/components/Table3/features/useEditingState.d.ts +1 -1
  17. package/dist/components/Table3/features/useTableEditing.d.ts +4 -3
  18. package/dist/esm/index.css +18 -0
  19. package/dist/esm/packages/taco/src/charts/components/Area/AreaChart.js +67 -0
  20. package/dist/esm/packages/taco/src/charts/components/Area/AreaChart.js.map +1 -0
  21. package/dist/esm/packages/taco/src/charts/components/Bar/BarChart.js +120 -0
  22. package/dist/esm/packages/taco/src/charts/components/Bar/BarChart.js.map +1 -0
  23. package/dist/esm/packages/taco/src/charts/components/Donut/ActiveShape.js +47 -0
  24. package/dist/esm/packages/taco/src/charts/components/Donut/ActiveShape.js.map +1 -0
  25. package/dist/esm/packages/taco/src/charts/components/Donut/CenteredLabel.js +27 -0
  26. package/dist/esm/packages/taco/src/charts/components/Donut/CenteredLabel.js.map +1 -0
  27. package/dist/esm/packages/taco/src/charts/components/Donut/DonutChart.js +170 -0
  28. package/dist/esm/packages/taco/src/charts/components/Donut/DonutChart.js.map +1 -0
  29. package/dist/esm/packages/taco/src/charts/components/Donut/Legend.js +164 -0
  30. package/dist/esm/packages/taco/src/charts/components/Donut/Legend.js.map +1 -0
  31. package/dist/esm/packages/taco/src/charts/components/Donut/util.js +5 -0
  32. package/dist/esm/packages/taco/src/charts/components/Donut/util.js.map +1 -0
  33. package/dist/esm/packages/taco/src/charts/components/Legend.js +145 -0
  34. package/dist/esm/packages/taco/src/charts/components/Legend.js.map +1 -0
  35. package/dist/esm/packages/taco/src/charts/components/Line/LineChart.js +65 -0
  36. package/dist/esm/packages/taco/src/charts/components/Line/LineChart.js.map +1 -0
  37. package/dist/esm/packages/taco/src/charts/components/ResponsiveContainer.js +10 -0
  38. package/dist/esm/packages/taco/src/charts/components/ResponsiveContainer.js.map +1 -0
  39. package/dist/esm/packages/taco/src/charts/components/Tooltip.js +44 -0
  40. package/dist/esm/packages/taco/src/charts/components/Tooltip.js.map +1 -0
  41. package/dist/esm/packages/taco/src/charts/utils/color.js +24 -0
  42. package/dist/esm/packages/taco/src/charts/utils/color.js.map +1 -0
  43. package/dist/esm/packages/taco/src/charts/utils/common.js +34 -0
  44. package/dist/esm/packages/taco/src/charts/utils/common.js.map +1 -0
  45. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +6 -14
  46. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
  47. package/dist/esm/packages/taco/src/components/Dialog/Dialog.js.map +1 -1
  48. package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js +2 -4
  49. package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js.map +1 -1
  50. package/dist/esm/packages/taco/src/components/Input/util.js +1 -1
  51. package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
  52. package/dist/esm/packages/taco/src/components/Listbox/util.js +1 -7
  53. package/dist/esm/packages/taco/src/components/Listbox/util.js.map +1 -1
  54. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
  55. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
  56. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowSelect.js.map +1 -1
  57. package/dist/esm/packages/taco/src/components/Table3/Table3.js +0 -1
  58. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  59. package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
  60. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js +4 -33
  61. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js.map +1 -1
  62. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js +1 -1
  63. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js.map +1 -1
  64. package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js +4 -4
  65. package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js.map +1 -1
  66. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +32 -1
  67. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -1
  68. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +7 -5
  69. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -1
  70. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +4 -1
  71. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -1
  72. package/dist/esm/packages/taco/src/index.js +4 -0
  73. package/dist/esm/packages/taco/src/index.js.map +1 -1
  74. package/dist/esm/packages/taco/src/primitives/Sortable/components/Item.js.map +1 -1
  75. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +5 -4
  76. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -1
  77. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js +6 -0
  78. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -1
  79. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js +2 -2
  80. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -1
  81. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +7 -0
  82. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -1
  83. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +7 -0
  84. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -1
  85. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +2 -1
  86. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -1
  87. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js +3 -1
  88. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -1
  89. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js +3 -2
  90. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -1
  91. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +5 -1
  92. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -1
  93. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  94. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js.map +1 -1
  95. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/sorting.js.map +1 -1
  96. package/dist/esm/packages/taco/tailwind.colors.js +122 -0
  97. package/dist/esm/packages/taco/tailwind.colors.js.map +1 -0
  98. package/dist/index.css +18 -0
  99. package/dist/index.d.ts +5 -0
  100. package/dist/primitives/Table/Core/components/Body/EmptyStateBody.d.ts +1 -0
  101. package/dist/primitives/Table/Core/components/Row/RowContext.d.ts +2 -1
  102. package/dist/primitives/Table/Core/types.d.ts +1 -0
  103. package/dist/taco.cjs.development.js +895 -83
  104. package/dist/taco.cjs.development.js.map +1 -1
  105. package/dist/taco.cjs.production.min.js +1 -1
  106. package/dist/taco.cjs.production.min.js.map +1 -1
  107. package/package.json +6 -4
  108. package/tailwind.colors.js +121 -0
  109. package/tailwind.config.js +3 -2
  110. package/dist/components/Table3/components/Row/Editing/CreateRowButton.d.ts +0 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/taco",
3
- "version": "2.45.0-alpha.3",
3
+ "version": "2.45.0-alpha.5",
4
4
  "description": "> TODO: description",
5
5
  "author": "Matt Daly <matthew.daly@visma.com>",
6
6
  "homepage": "https://github.com/e-conomic/taco#readme",
@@ -16,6 +16,7 @@
16
16
  "files": [
17
17
  "dist",
18
18
  "plugins",
19
+ "tailwind.colors.js",
19
20
  "tailwind.config.js",
20
21
  "types.json"
21
22
  ],
@@ -41,7 +42,6 @@
41
42
  "dependencies": {
42
43
  "@dnd-kit/modifiers": "^7.0.0",
43
44
  "@dnd-kit/sortable": "^7.0.1",
44
- "@economic/taco-tokens": "^1.4.1",
45
45
  "@radix-ui/react-accordion": "1.0.1",
46
46
  "@radix-ui/react-alert-dialog": "1.0.2",
47
47
  "@radix-ui/react-checkbox": "1.0.1",
@@ -55,7 +55,7 @@
55
55
  "@radix-ui/react-switch": "1.0.1",
56
56
  "@radix-ui/react-tabs": "1.0.1",
57
57
  "@radix-ui/react-tooltip": "1.0.2",
58
- "@radix-ui/react-use-controllable-state": "^1.0.0",
58
+ "@radix-ui/react-use-controllable-state": "1.0.0",
59
59
  "@react-aria/focus": "^3.9.0",
60
60
  "@react-aria/interactions": "^3.12.0",
61
61
  "@tanstack/react-table": "^8.20.5",
@@ -70,6 +70,7 @@
70
70
  "react-table": "^7.8.0",
71
71
  "react-window": "^1.8.8",
72
72
  "react-window-infinite-loader": "^1.0.8",
73
+ "recharts": "^2.13.3",
73
74
  "typeface-open-sans": "^1.1.13",
74
75
  "uuid": "^9.0.0"
75
76
  },
@@ -94,6 +95,7 @@
94
95
  "@types/react-window-infinite-loader": "^1.0.6",
95
96
  "@types/uuid": "^7.0.3",
96
97
  "autoprefixer": "^10.4.13",
98
+ "babel-plugin-module-resolver": "^5.0.2",
97
99
  "fast-sort": "^2.2.0",
98
100
  "identity-obj-proxy": "^3.0.0",
99
101
  "jest": "^29.6.1",
@@ -128,5 +130,5 @@
128
130
  "not ie < 11"
129
131
  ]
130
132
  },
131
- "gitHead": "8034e77e1f5d1202c029b166415db41589ca55b0"
133
+ "gitHead": "4bf1cc3d74d90de072106573584ecd831721f9e1"
132
134
  }
@@ -0,0 +1,121 @@
1
+ // NOTE: this file is intentianally a js file so that it can be consumed by tailwind.config.js
2
+
3
+ const THEME_COLORS = {
4
+ transparent: 'transparent',
5
+ current: 'currentColor',
6
+ white: '#fff',
7
+ black: '#1c1c1c',
8
+ brand: {
9
+ vismaRed: '#E70641',
10
+ paleOrange: '#FFF5E5',
11
+ sunsetOrange: '#E89C2E',
12
+ midnightBlue: '#29283E',
13
+ coolBlue: '#F5F7F9',
14
+ },
15
+ grey: {
16
+ lightest: '#fafafa',
17
+ light: '#F6F6F6',
18
+ DEFAULT: '#EBEBEB',
19
+ dark: '#DDDDDD',
20
+ darker: '#ACACAC',
21
+ darkest: '#595959',
22
+ darkNew: '#a5a6a9',
23
+ 50: '#fafafa',
24
+ 100: '#F6F6F6',
25
+ 200: '#EBEBEB',
26
+ 300: '#DDDDDD',
27
+ 500: '#ACACAC',
28
+ 700: '#595959',
29
+ 900: '#303030',
30
+ },
31
+ purple: {
32
+ lightest: '#585c74',
33
+ light: '#4b4f64',
34
+ DEFAULT: '#3d4153',
35
+ dark: '#353a48',
36
+ darker: '#29283e',
37
+ darkest: '#212032',
38
+ darkNew_1: '#373647',
39
+ darkNew_2: '#414050',
40
+ 100: '#EEE5FF',
41
+ 200: '#ddd1ff',
42
+ 300: '#CBBCFE',
43
+ 500: '#9270FA',
44
+ 700: '#6542D1',
45
+ 900: '#412970',
46
+ },
47
+ blue: {
48
+ lightest: '#DEEBFF',
49
+ light: '#75A0F5',
50
+ DEFAULT: '#4573D2',
51
+ dark: '#2B57B4',
52
+ 100: '#DEEBFF',
53
+ 200: '#AACCFF',
54
+ 300: '#75A0F5',
55
+ 500: '#4573D2',
56
+ 700: '#2B57B4',
57
+ 900: '#29283E',
58
+ },
59
+ red: {
60
+ lightest: '#FFDAD2',
61
+ light: '#E66568',
62
+ DEFAULT: '#CE3F42',
63
+ dark: '#950027',
64
+ 100: '#FFDAD2',
65
+ 200: '#f3a09d',
66
+ 300: '#E66568',
67
+ 500: '#CE3F42',
68
+ 700: '#950027',
69
+ 900: '#64001B',
70
+ },
71
+ green: {
72
+ lightest: '#cdf0e7',
73
+ light: '#52C7AB',
74
+ DEFAULT: '#08AE87',
75
+ dark: '#028465',
76
+ 100: '#cdf0e7',
77
+ 200: '#9be1ce',
78
+ 300: '#52C7AB',
79
+ 500: '#08AE87',
80
+ 700: '#028465',
81
+ 900: '#14493A',
82
+ },
83
+ yellow: {
84
+ lightest: '#FFF1C3',
85
+ light: '#FFD665',
86
+ DEFAULT: '#FFBD3B',
87
+ dark: '#e89c2e',
88
+ 100: '#FFF1C3',
89
+ 200: '#ffe494',
90
+ 300: '#FFD665',
91
+ 500: '#FFBD3B',
92
+ 700: '#e89c2e',
93
+ 900: '#733700',
94
+ },
95
+ pink: {
96
+ 100: '#FFE3F7',
97
+ 200: '#fcb9e9',
98
+ 300: '#F98EDB',
99
+ 500: '#E165BF',
100
+ 700: '#CF49AA',
101
+ 900: '#870062',
102
+ },
103
+ brown: {
104
+ 100: '#EEE0DA',
105
+ 200: '#DFCCC2',
106
+ 300: '#C4AB9E',
107
+ 500: '#93715D',
108
+ 700: '#73503B',
109
+ 900: '#45291F',
110
+ },
111
+ orange: {
112
+ 100: '#FFE3BB',
113
+ 200: '#FCCB80',
114
+ 300: '#FAB64D',
115
+ 500: '#F99702',
116
+ 700: '#EF7D00',
117
+ 900: '#4A2811',
118
+ },
119
+ };
120
+
121
+ export default THEME_COLORS;
@@ -1,10 +1,11 @@
1
- const tokens = require('@economic/taco-tokens').default;
2
1
  const plugin = require('tailwindcss/plugin');
3
2
  const defaultTheme = require('tailwindcss/defaultTheme');
4
3
 
4
+ const colors = require('./tailwind.colors.js').default;
5
+
5
6
  module.exports = {
6
7
  theme: {
7
- colors: tokens.colors,
8
+ colors,
8
9
  fontFamily: {
9
10
  display: ['Helvetica, Arial, sans-serif'],
10
11
  mono: ['Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'],
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Table as ReactTable, TableMeta as ReactTableMeta } from '@tanstack/react-table';
3
- import { ScrollToOptions } from '@tanstack/react-virtual';
4
- declare type Props<TType = unknown> = {
5
- table: ReactTable<TType>;
6
- tableMeta: ReactTableMeta<TType>;
7
- onEditingCreate: (() => (row: Partial<TType>) => boolean) | undefined;
8
- scrollToIndex: (index: number, options?: ScrollToOptions) => void;
9
- };
10
- export default function CreateNewRowButton<TType = unknown>(props: Props<TType>): React.JSX.Element;
11
- export {};