@economic/taco 1.1.8 → 1.1.9-alpha.2

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 (84) hide show
  1. package/dist/components/Tour/Tour.d.ts +2 -0
  2. package/dist/esm/components/Badge/Badge.js +14 -14
  3. package/dist/esm/components/Badge/Badge.js.map +1 -1
  4. package/dist/esm/components/Calendar/Calendar.js +56 -71
  5. package/dist/esm/components/Calendar/Calendar.js.map +1 -1
  6. package/dist/esm/components/Card/Card.js +15 -12
  7. package/dist/esm/components/Card/Card.js.map +1 -1
  8. package/dist/esm/components/Checkbox/Checkbox.js +15 -18
  9. package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
  10. package/dist/esm/components/Combobox/Combobox.js +23 -25
  11. package/dist/esm/components/Combobox/Combobox.js.map +1 -1
  12. package/dist/esm/components/Datepicker/Datepicker.js +48 -52
  13. package/dist/esm/components/Datepicker/Datepicker.js.map +1 -1
  14. package/dist/esm/components/Dialog/Dialog.js +39 -58
  15. package/dist/esm/components/Dialog/Dialog.js.map +1 -1
  16. package/dist/esm/components/Field/Field.js +10 -12
  17. package/dist/esm/components/Field/Field.js.map +1 -1
  18. package/dist/esm/components/Form/Form.js +6 -8
  19. package/dist/esm/components/Form/Form.js.map +1 -1
  20. package/dist/esm/components/Group/Group.js +6 -8
  21. package/dist/esm/components/Group/Group.js.map +1 -1
  22. package/dist/esm/components/Hanger/Hanger.js +27 -35
  23. package/dist/esm/components/Hanger/Hanger.js.map +1 -1
  24. package/dist/esm/components/HoverCard/HoverCard.js +8 -9
  25. package/dist/esm/components/HoverCard/HoverCard.js.map +1 -1
  26. package/dist/esm/components/Icon/Icon.js +7 -8
  27. package/dist/esm/components/Icon/Icon.js.map +1 -1
  28. package/dist/esm/components/IconButton/IconButton.js +9 -11
  29. package/dist/esm/components/IconButton/IconButton.js.map +1 -1
  30. package/dist/esm/components/Input/Input.js +25 -25
  31. package/dist/esm/components/Input/Input.js.map +1 -1
  32. package/dist/esm/components/Listbox/Listbox.js +24 -25
  33. package/dist/esm/components/Listbox/Listbox.js.map +1 -1
  34. package/dist/esm/components/Menu/Menu.js +16 -34
  35. package/dist/esm/components/Menu/Menu.js.map +1 -1
  36. package/dist/esm/components/Navigation/Navigation.js +35 -44
  37. package/dist/esm/components/Navigation/Navigation.js.map +1 -1
  38. package/dist/esm/components/Pagination/Pagination.js +39 -56
  39. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  40. package/dist/esm/components/Popover/Popover.js +29 -34
  41. package/dist/esm/components/Popover/Popover.js.map +1 -1
  42. package/dist/esm/components/Progress/Progress.js +11 -15
  43. package/dist/esm/components/Progress/Progress.js.map +1 -1
  44. package/dist/esm/components/Provider/Provider.js +13 -18
  45. package/dist/esm/components/Provider/Provider.js.map +1 -1
  46. package/dist/esm/components/RadioGroup/RadioGroup.js +45 -57
  47. package/dist/esm/components/RadioGroup/RadioGroup.js.map +1 -1
  48. package/dist/esm/components/SearchInput/SearchInput.js +12 -11
  49. package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
  50. package/dist/esm/components/Select/Select.js +30 -31
  51. package/dist/esm/components/Select/Select.js.map +1 -1
  52. package/dist/esm/components/Spinner/Spinner.js +12 -19
  53. package/dist/esm/components/Spinner/Spinner.js.map +1 -1
  54. package/dist/esm/components/Switch/Switch.js +9 -10
  55. package/dist/esm/components/Switch/Switch.js.map +1 -1
  56. package/dist/esm/components/Tabs/Tabs.js +25 -27
  57. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  58. package/dist/esm/components/Textarea/Textarea.js +11 -9
  59. package/dist/esm/components/Textarea/Textarea.js.map +1 -1
  60. package/dist/esm/components/Toast/Toaster.js +88 -118
  61. package/dist/esm/components/Toast/Toaster.js.map +1 -1
  62. package/dist/esm/components/Tooltip/Tooltip.js +7 -8
  63. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  64. package/dist/esm/components/Tour/Tour.js +46 -50
  65. package/dist/esm/components/Tour/Tour.js.map +1 -1
  66. package/dist/esm/components/Treeview/Treeview.js +26 -36
  67. package/dist/esm/components/Treeview/Treeview.js.map +1 -1
  68. package/dist/esm/components/VisuallyHidden/VisuallyHidden.js +1 -1
  69. package/dist/esm/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  70. package/dist/esm/index.js +2 -0
  71. package/dist/esm/index.js.map +1 -1
  72. package/dist/esm/utils/hooks/useDropTarget.js +10 -7
  73. package/dist/esm/utils/hooks/useDropTarget.js.map +1 -1
  74. package/dist/esm/utils/hooks/useProxiedRef.js +3 -3
  75. package/dist/esm/utils/hooks/useProxiedRef.js.map +1 -1
  76. package/dist/index.d.ts +2 -0
  77. package/dist/taco.cjs.development.js +802 -951
  78. package/dist/taco.cjs.development.js.map +1 -1
  79. package/dist/taco.cjs.production.min.js +1 -1
  80. package/dist/taco.cjs.production.min.js.map +1 -1
  81. package/dist/utils/tailwind.d.ts +1 -1
  82. package/package.json +130 -131
  83. package/tailwind.config.js +9 -0
  84. package/types.json +7 -1
@@ -1 +1 @@
1
- export declare const getInputStateClasses: (state?: string | undefined) => string | false;
1
+ export declare const getInputStateClasses: (state?: import("..").RowIndexPath) => string | false;
package/package.json CHANGED
@@ -1,131 +1,130 @@
1
- {
2
- "name": "@economic/taco",
3
- "version": "1.1.8",
4
- "description": "> TODO: description",
5
- "author": "Matt Daly <matthew.daly@visma.com>",
6
- "homepage": "https://github.com/e-conomic/taco#readme",
7
- "license": "MIT",
8
- "main": "dist/index.js",
9
- "module": "dist/esm/index.js",
10
- "sideEffects": false,
11
- "types": "dist/index.d.ts",
12
- "directories": {
13
- "dist": "dist",
14
- "test": "__tests__"
15
- },
16
- "files": [
17
- "dist",
18
- "plugins",
19
- "tailwind.config.js",
20
- "types.json"
21
- ],
22
- "publishConfig": {
23
- "access": "public"
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "git+https://github.com/e-conomic/taco.git"
28
- },
29
- "scripts": {
30
- "watch": "tsdx watch",
31
- "build": "tsdx build",
32
- "postbuild": "npm run generate-typedoc",
33
- "lint": "eslint src",
34
- "test": "tsdx test",
35
- "test:watch": "tsdx test --watch",
36
- "generate-typedoc": "node scripts/generate-typedoc",
37
- "generate-icons": "node scripts/generate-icons",
38
- "storybook-build": "build-storybook -o build-storybook --quiet",
39
- "storybook": "start-storybook -p 6006 --no-open"
40
- },
41
- "bugs": {
42
- "url": "https://github.com/e-conomic/taco/issues"
43
- },
44
- "dependencies": {
45
- "@economic/taco-tokens": "^1.0.2",
46
- "@radix-ui/react-accordion": "^0.1.6",
47
- "@radix-ui/react-checkbox": "^0.1.5",
48
- "@radix-ui/react-dialog": "^0.1.7",
49
- "@radix-ui/react-dropdown-menu": "^0.1.6",
50
- "@radix-ui/react-hover-card": "^0.1.5",
51
- "@radix-ui/react-popover": "^0.1.6",
52
- "@radix-ui/react-radio-group": "^0.1.5",
53
- "@radix-ui/react-switch": "^0.1.5",
54
- "@radix-ui/react-tabs": "^0.1.5",
55
- "@radix-ui/react-tooltip": "0.1.6",
56
- "@radix-ui/react-use-controllable-state": "^0.1.0",
57
- "@react-aria/focus": "^3.2.3",
58
- "@react-aria/interactions": "^3.3.2",
59
- "classnames": "^2.3.1",
60
- "date-fns": "^2.14.0",
61
- "framer-motion": "^5.5.6",
62
- "keycode": "^2.2.0",
63
- "lodash-es": "4.17.21",
64
- "react-day-picker": "^7.4.8",
65
- "react-intersection-observer": "^8.31.1",
66
- "react-joyride": "^2.1.1",
67
- "react-table": "^7.5.0",
68
- "react-window": "^1.8.5",
69
- "react-window-infinite-loader": "^1.0.7",
70
- "typeface-open-sans": "^0.0.75",
71
- "uuid": "^8.1.0"
72
- },
73
- "peerDependencies": {
74
- "react": ">=17",
75
- "react-dom": ">=17",
76
- "tailwindcss": ">=3"
77
- },
78
- "devDependencies": {
79
- "@svgr/cli": "^5.5.0",
80
- "@testing-library/dom": "^7.31.0",
81
- "@testing-library/jest-dom": "^5.11.4",
82
- "@testing-library/react": "^11.1.0",
83
- "@testing-library/user-event": "^12.1.10",
84
- "@types/lodash": "^4.14.168",
85
- "@types/react": "^17.0.35",
86
- "@types/react-dom": "^17.0.11",
87
- "@types/react-table": "^7.0.19",
88
- "@types/react-window": "^1.8.2",
89
- "@types/react-window-infinite-loader": "^1.0.3",
90
- "@types/uuid": "^7.0.3",
91
- "autoprefixer": "^10.4.0",
92
- "fast-sort": "^2.2.0",
93
- "identity-obj-proxy": "^3.0.0",
94
- "lodash.flatten": "^4.4.0",
95
- "mutationobserver-shim": "^0.3.7",
96
- "namor": "^2.0.3",
97
- "postcss": "^8.3.11",
98
- "postcss-nested": "^4.2.3",
99
- "react-dom": "^17.0.2",
100
- "resize-observer-polyfill": "^1.5.1",
101
- "rimraf": "^3.0.2",
102
- "rollup-plugin-commonjs": "^10.1.0",
103
- "rollup-plugin-peer-deps-external": "^2.2.4",
104
- "rollup-plugin-postcss": "^4.0.2",
105
- "svgo": "^1.3.2",
106
- "tailwindcss": "^3.0.1",
107
- "tsdx": "^0.13.2",
108
- "typedoc": "0.18.0",
109
- "typescript": "^4.4.4"
110
- },
111
- "jest": {
112
- "moduleNameMapper": {
113
- "\\.css$": "identity-obj-proxy"
114
- }
115
- },
116
- "browserslist": {
117
- "development": [
118
- "last 2 chrome versions",
119
- "last 2 firefox versions",
120
- "last 2 edge versions",
121
- "not ie < 11"
122
- ],
123
- "production": [
124
- ">1%",
125
- "last 4 versions",
126
- "Firefox ESR",
127
- "not ie < 11"
128
- ]
129
- },
130
- "gitHead": "d7ebd3328902481868b4d9adba36b5b5f53fdb35"
131
- }
1
+ {
2
+ "name": "@economic/taco",
3
+ "version": "1.1.9-alpha.2",
4
+ "description": "> TODO: description",
5
+ "author": "Matt Daly <matthew.daly@visma.com>",
6
+ "homepage": "https://github.com/e-conomic/taco#readme",
7
+ "license": "MIT",
8
+ "main": "dist/index.js",
9
+ "module": "dist/esm/index.js",
10
+ "sideEffects": false,
11
+ "types": "dist/index.d.ts",
12
+ "directories": {
13
+ "dist": "dist",
14
+ "test": "__tests__"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "plugins",
19
+ "tailwind.config.js",
20
+ "types.json"
21
+ ],
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/e-conomic/taco.git"
28
+ },
29
+ "scripts": {
30
+ "watch": "tsdx watch",
31
+ "build": "tsdx build",
32
+ "postbuild": "npm run generate-typedoc",
33
+ "lint": "eslint src",
34
+ "test": "tsdx test",
35
+ "test:watch": "tsdx test --watch",
36
+ "generate-typedoc": "node scripts/generate-typedoc",
37
+ "generate-icons": "node scripts/generate-icons",
38
+ "storybook-build": "build-storybook -o build-storybook --quiet",
39
+ "storybook": "start-storybook -p 6006 --no-open"
40
+ },
41
+ "bugs": {
42
+ "url": "https://github.com/e-conomic/taco/issues"
43
+ },
44
+ "dependencies": {
45
+ "@economic/taco-tokens": "^1.0.2",
46
+ "@radix-ui/react-accordion": "^0.1.6",
47
+ "@radix-ui/react-checkbox": "^0.1.5",
48
+ "@radix-ui/react-dialog": "^0.1.7",
49
+ "@radix-ui/react-dropdown-menu": "^0.1.6",
50
+ "@radix-ui/react-hover-card": "^0.1.5",
51
+ "@radix-ui/react-popover": "^0.1.6",
52
+ "@radix-ui/react-radio-group": "^0.1.5",
53
+ "@radix-ui/react-switch": "^0.1.5",
54
+ "@radix-ui/react-tabs": "^0.1.5",
55
+ "@radix-ui/react-tooltip": "0.1.6",
56
+ "@radix-ui/react-use-controllable-state": "^0.1.0",
57
+ "@react-aria/focus": "^3.2.3",
58
+ "@react-aria/interactions": "^3.3.2",
59
+ "classnames": "^2.3.1",
60
+ "date-fns": "^2.14.0",
61
+ "framer-motion": "^5.5.6",
62
+ "keycode": "^2.2.0",
63
+ "lodash-es": "4.17.21",
64
+ "react-day-picker": "^7.4.8",
65
+ "react-intersection-observer": "^8.31.1",
66
+ "react-joyride": "^2.1.1",
67
+ "react-table": "^7.5.0",
68
+ "react-window": "^1.8.5",
69
+ "react-window-infinite-loader": "^1.0.7",
70
+ "typeface-open-sans": "^0.0.75",
71
+ "uuid": "^8.1.0"
72
+ },
73
+ "peerDependencies": {
74
+ "react": ">=17",
75
+ "react-dom": ">=17",
76
+ "tailwindcss": ">=3"
77
+ },
78
+ "devDependencies": {
79
+ "@svgr/cli": "^5.5.0",
80
+ "@testing-library/dom": "^7.31.0",
81
+ "@testing-library/jest-dom": "^5.11.4",
82
+ "@testing-library/react": "^11.1.0",
83
+ "@testing-library/user-event": "^12.1.10",
84
+ "@types/lodash": "^4.14.168",
85
+ "@types/react": "^17.0.35",
86
+ "@types/react-dom": "^17.0.11",
87
+ "@types/react-table": "^7.0.19",
88
+ "@types/react-window": "^1.8.2",
89
+ "@types/react-window-infinite-loader": "^1.0.3",
90
+ "@types/uuid": "^7.0.3",
91
+ "autoprefixer": "^10.4.0",
92
+ "fast-sort": "^2.2.0",
93
+ "identity-obj-proxy": "^3.0.0",
94
+ "lodash.flatten": "^4.4.0",
95
+ "mutationobserver-shim": "^0.3.7",
96
+ "namor": "^2.0.3",
97
+ "postcss": "^8.3.11",
98
+ "postcss-nested": "^4.2.3",
99
+ "react-dom": "^17.0.2",
100
+ "resize-observer-polyfill": "^1.5.1",
101
+ "rimraf": "^3.0.2",
102
+ "rollup-plugin-commonjs": "^10.1.0",
103
+ "rollup-plugin-peer-deps-external": "^2.2.4",
104
+ "rollup-plugin-postcss": "^4.0.2",
105
+ "svgo": "^1.3.2",
106
+ "tailwindcss": "^3.0.1",
107
+ "tsdx": "^0.13.2",
108
+ "typedoc": "0.18.0",
109
+ "typescript": "^4.4.4"
110
+ },
111
+ "jest": {
112
+ "moduleNameMapper": {
113
+ "\\.css$": "identity-obj-proxy"
114
+ }
115
+ },
116
+ "browserslist": {
117
+ "development": [
118
+ "last 2 chrome versions",
119
+ "last 2 firefox versions",
120
+ "last 2 edge versions",
121
+ "not ie < 11"
122
+ ],
123
+ "production": [
124
+ ">1%",
125
+ "last 4 versions",
126
+ "Firefox ESR",
127
+ "not ie < 11"
128
+ ]
129
+ }
130
+ }
@@ -1,5 +1,6 @@
1
1
  const tokens = require('@economic/taco-tokens').default;
2
2
  const plugin = require('tailwindcss/plugin');
3
+ const defaultTheme = require('tailwindcss/defaultTheme');
3
4
 
4
5
  module.exports = {
5
6
  theme: {
@@ -31,6 +32,10 @@ module.exports = {
31
32
  md: '64rem',
32
33
  lg: '80rem',
33
34
  },
35
+ screens: {
36
+ xs: '375px',
37
+ ...defaultTheme.screens,
38
+ },
34
39
  },
35
40
  },
36
41
  plugins: [
@@ -183,6 +188,10 @@ module.exports = {
183
188
  'box-shadow': '0 0 0 2px rgba(0, 99, 255, 0.25)',
184
189
  outline: 'none',
185
190
  },
191
+ '.yt-focus-dark': {
192
+ 'box-shadow': '0 0 0 3px rgba(38, 132, 255, 75%)',
193
+ outline: 'none',
194
+ },
186
195
  '.yt-focus-green': {
187
196
  'box-shadow': '0 0 0 0.15rem rgba(0, 213, 165, 0.25)',
188
197
  outline: 'none',
package/types.json CHANGED
@@ -2383,7 +2383,7 @@
2383
2383
  "constraint": {
2384
2384
  "type": "reflection",
2385
2385
  "declaration": {
2386
- "id": 1327,
2386
+ "id": 1328,
2387
2387
  "name": "__type",
2388
2388
  "kind": 65536,
2389
2389
  "kindString": "Type literal",
@@ -3432,6 +3432,12 @@
3432
3432
  "returnValue": "void"
3433
3433
  }
3434
3434
  },
3435
+ {
3436
+ "description": "The scroll distance from the element scrollTop value.",
3437
+ "name": "scrollOffset",
3438
+ "optional": true,
3439
+ "type": "number"
3440
+ },
3435
3441
  {
3436
3442
  "name": "spotlightClicks",
3437
3443
  "optional": true,