@economic/taco 2.45.0-alpha.3 → 2.45.0-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/charts/components/Area/AreaChart.d.ts +19 -0
- package/dist/charts/components/Bar/BarChart.d.ts +20 -0
- package/dist/charts/components/Donut/ActiveShape.d.ts +8 -0
- package/dist/charts/components/Donut/CenteredLabel.d.ts +11 -0
- package/dist/charts/components/Donut/DonutChart.d.ts +21 -0
- package/dist/charts/components/Donut/Legend.d.ts +13 -0
- package/dist/charts/components/Donut/util.d.ts +2 -0
- package/dist/charts/components/Legend.d.ts +16 -0
- package/dist/charts/components/Line/LineChart.d.ts +18 -0
- package/dist/charts/components/ResponsiveContainer.d.ts +5 -0
- package/dist/charts/components/Tooltip.d.ts +10 -0
- package/dist/charts/components/types.d.ts +5 -0
- package/dist/charts/utils/color.d.ts +3 -0
- package/dist/charts/utils/common.d.ts +37 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -3
- package/dist/components/Table3/features/useEditingState.d.ts +1 -1
- package/dist/components/Table3/features/useTableEditing.d.ts +4 -3
- package/dist/esm/index.css +18 -0
- package/dist/esm/packages/taco/src/charts/components/Area/AreaChart.js +67 -0
- package/dist/esm/packages/taco/src/charts/components/Area/AreaChart.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/components/Bar/BarChart.js +120 -0
- package/dist/esm/packages/taco/src/charts/components/Bar/BarChart.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/components/Donut/ActiveShape.js +47 -0
- package/dist/esm/packages/taco/src/charts/components/Donut/ActiveShape.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/components/Donut/CenteredLabel.js +27 -0
- package/dist/esm/packages/taco/src/charts/components/Donut/CenteredLabel.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/components/Donut/DonutChart.js +170 -0
- package/dist/esm/packages/taco/src/charts/components/Donut/DonutChart.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/components/Donut/Legend.js +164 -0
- package/dist/esm/packages/taco/src/charts/components/Donut/Legend.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/components/Donut/util.js +5 -0
- package/dist/esm/packages/taco/src/charts/components/Donut/util.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/components/Legend.js +145 -0
- package/dist/esm/packages/taco/src/charts/components/Legend.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/components/Line/LineChart.js +65 -0
- package/dist/esm/packages/taco/src/charts/components/Line/LineChart.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/components/ResponsiveContainer.js +10 -0
- package/dist/esm/packages/taco/src/charts/components/ResponsiveContainer.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/components/Tooltip.js +44 -0
- package/dist/esm/packages/taco/src/charts/components/Tooltip.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/utils/color.js +24 -0
- package/dist/esm/packages/taco/src/charts/utils/color.js.map +1 -0
- package/dist/esm/packages/taco/src/charts/utils/common.js +34 -0
- package/dist/esm/packages/taco/src/charts/utils/common.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +6 -14
- package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js +2 -4
- package/dist/esm/packages/taco/src/components/Header/components/AgreementSelector.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/util.js +1 -1
- package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Listbox/util.js +1 -7
- package/dist/esm/packages/taco/src/components/Listbox/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowSelect.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/Table3.js +0 -1
- package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js +4 -33
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js +4 -4
- package/dist/esm/packages/taco/src/components/Table3/features/useEditingState.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +32 -1
- package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +7 -5
- package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js +4 -1
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -1
- package/dist/esm/packages/taco/src/index.js +4 -0
- package/dist/esm/packages/taco/src/index.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Sortable/components/Item.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +5 -4
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js +6 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js +2 -2
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js +7 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +7 -0
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js +2 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js +3 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/Row.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js +3 -2
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/RowContext.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js +5 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableRenderer.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/sorting.js.map +1 -1
- package/dist/esm/packages/taco/tailwind.colors.js +122 -0
- package/dist/esm/packages/taco/tailwind.colors.js.map +1 -0
- package/dist/index.css +18 -0
- package/dist/index.d.ts +5 -0
- package/dist/primitives/Table/Core/components/Body/EmptyStateBody.d.ts +1 -0
- package/dist/primitives/Table/Core/components/Row/RowContext.d.ts +2 -1
- package/dist/primitives/Table/Core/types.d.ts +1 -0
- package/dist/taco.cjs.development.js +895 -83
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +18 -16
- package/tailwind.colors.js +121 -0
- package/tailwind.config.js +3 -2
- 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
|
+
"version": "2.45.0-alpha.4",
|
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,20 +42,19 @@
|
|
41
42
|
"dependencies": {
|
42
43
|
"@dnd-kit/modifiers": "^7.0.0",
|
43
44
|
"@dnd-kit/sortable": "^7.0.1",
|
44
|
-
"@
|
45
|
-
"@radix-ui/react-
|
46
|
-
"@radix-ui/react-
|
47
|
-
"@radix-ui/react-
|
48
|
-
"@radix-ui/react-
|
49
|
-
"@radix-ui/react-
|
50
|
-
"@radix-ui/react-
|
51
|
-
"@radix-ui/react-
|
52
|
-
"@radix-ui/react-
|
53
|
-
"@radix-ui/react-
|
54
|
-
"@radix-ui/react-
|
55
|
-
"@radix-ui/react-
|
56
|
-
"@radix-ui/react-
|
57
|
-
"@radix-ui/react-tooltip": "1.0.2",
|
45
|
+
"@radix-ui/react-accordion": "^1.0.1",
|
46
|
+
"@radix-ui/react-alert-dialog": "^1.0.2",
|
47
|
+
"@radix-ui/react-checkbox": "^1.0.1",
|
48
|
+
"@radix-ui/react-collapsible": "^1.0.3",
|
49
|
+
"@radix-ui/react-dialog": "^1.0.2",
|
50
|
+
"@radix-ui/react-dropdown-menu": "^2.0.1",
|
51
|
+
"@radix-ui/react-hover-card": "^1.0.2",
|
52
|
+
"@radix-ui/react-popover": "^1.0.2",
|
53
|
+
"@radix-ui/react-radio-group": "^1.1.0",
|
54
|
+
"@radix-ui/react-scroll-area": "^1.0.1",
|
55
|
+
"@radix-ui/react-switch": "^1.0.1",
|
56
|
+
"@radix-ui/react-tabs": "^1.0.1",
|
57
|
+
"@radix-ui/react-tooltip": "^1.0.2",
|
58
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",
|
@@ -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": "
|
133
|
+
"gitHead": "8dfe3b183dfcc702e963a3ba3ef9d144ee00ce8f"
|
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;
|
package/tailwind.config.js
CHANGED
@@ -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
|
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 {};
|