@economic/taco 11.0.1-react-v19.0 → 12.0.0-react-19-18-compat.0

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 (33) hide show
  1. package/dist/charts/utils/color.cjs +1 -1
  2. package/dist/charts/utils/color.cjs.map +1 -1
  3. package/dist/charts/utils/color.js +1 -1
  4. package/dist/charts/utils/color.js.map +1 -1
  5. package/dist/components/Combobox/useCombobox.cjs +8 -2
  6. package/dist/components/Combobox/useCombobox.cjs.map +1 -1
  7. package/dist/components/Combobox/useCombobox.js +8 -2
  8. package/dist/components/Combobox/useCombobox.js.map +1 -1
  9. package/dist/components/Select/useSelect.cjs.map +1 -1
  10. package/dist/components/Select/useSelect.d.ts +1 -1
  11. package/dist/components/Select/useSelect.js.map +1 -1
  12. package/dist/components/Table3/components/Editing/Alert.cjs +3 -2
  13. package/dist/components/Table3/components/Editing/Alert.cjs.map +1 -1
  14. package/dist/components/Table3/components/Editing/Alert.js +3 -2
  15. package/dist/components/Table3/components/Editing/Alert.js.map +1 -1
  16. package/dist/components/Table3/features/useEditingState.cjs +16 -20
  17. package/dist/components/Table3/features/useEditingState.cjs.map +1 -1
  18. package/dist/components/Table3/features/useEditingState.js +16 -20
  19. package/dist/components/Table3/features/useEditingState.js.map +1 -1
  20. package/dist/primitives/Table/types.cjs.map +1 -1
  21. package/dist/primitives/Table/types.d.ts +1 -1
  22. package/dist/primitives/Table/types.js.map +1 -1
  23. package/dist/tailwind.colors.cjs +1 -27
  24. package/dist/tailwind.colors.cjs.map +1 -1
  25. package/dist/tailwind.colors.js +1 -27
  26. package/dist/tailwind.colors.js.map +1 -1
  27. package/dist/utils/tailwind.cjs +1 -18
  28. package/dist/utils/tailwind.cjs.map +1 -1
  29. package/dist/utils/tailwind.d.ts +1 -1
  30. package/dist/utils/tailwind.js +1 -18
  31. package/dist/utils/tailwind.js.map +1 -1
  32. package/package.json +7 -7
  33. package/tailwind.colors.js +8 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@economic/taco",
3
- "version": "11.0.1-react-v19.0",
3
+ "version": "12.0.0-react-19-18-compat.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -46,7 +46,7 @@
46
46
  "@dnd-kit/modifiers": "^9.0.0",
47
47
  "@dnd-kit/sortable": "^10.0.0",
48
48
  "@dnd-kit/utilities": "^3.2.2",
49
- "@economic/taco-tokens": "^3.0.1",
49
+ "@economic/taco-tokens": "3.0.2-react-19-18-compat.0",
50
50
  "@radix-ui/react-scroll-area": "1.2.10",
51
51
  "@react-aria/focus": "^3.19.0",
52
52
  "@react-aria/interactions": "^3.12.0",
@@ -68,12 +68,12 @@
68
68
  "tailwindcss": ">=3.4.19"
69
69
  },
70
70
  "devDependencies": {
71
- "@economic/taco-rules": "1.0.2-react-v19.0",
71
+ "@economic/taco-rules": "1.0.2-react-19-18-compat.0",
72
72
  "@oxlint/plugins": "^1.75.0",
73
73
  "@svgr/cli": "^8.1.0",
74
74
  "@testing-library/jest-dom": "^6.9.1",
75
75
  "@testing-library/react": "^16.3.2",
76
- "@testing-library/user-event": "^14.6.3",
76
+ "@testing-library/user-event": "^14.6.4",
77
77
  "@types/lodash": "^4.17.25",
78
78
  "@types/node": "^22.20.1",
79
79
  "@types/react": "19.2.18",
@@ -81,13 +81,13 @@
81
81
  "clsx": "^2.1.1",
82
82
  "fast-sort": "^2.2.0",
83
83
  "jsdom": "^29.1.1",
84
- "nanoid": "^6.0.0",
84
+ "nanoid": "^6.0.1",
85
85
  "resize-observer-polyfill": "^1.5.1",
86
86
  "rimraf": "^6.1.3",
87
87
  "stylelint": "^17.14.1",
88
88
  "svgo": "^4.0.2",
89
89
  "tailwindcss": "^3.4.19",
90
- "typescript": "^5.9.3",
90
+ "typescript": "^6.0.3",
91
91
  "vite": "^7.3.6",
92
92
  "vite-plugin-dts": "^5.0.3",
93
93
  "vite-plugin-externalize-deps": "^0.10.0",
@@ -96,5 +96,5 @@
96
96
  "optionalDependencies": {
97
97
  "@rollup/rollup-linux-x64-gnu": "^4.62.4"
98
98
  },
99
- "gitHead": "e724b07c465b2e2c62ec461ff7f3266a34d1680c"
99
+ "gitHead": "e9c357c8f43347a68c76f6b7dd0845936d0b552d"
100
100
  }
@@ -2,38 +2,17 @@
2
2
  * Taco Tailwind color theme.
3
3
  *
4
4
  * Structure:
5
- * 1. Legacy constants — colors not (yet) in the token pipeline.
6
- * 2. Semantic constants — non-token UI colors (overlay blends, etc.).
7
- * 3. Token maps — rename taco-tokens keys to Tailwind family/shade tuples.
8
- * 4. palette — assembled from all token maps; mutated to add DEFAULT shades.
9
- * 5. THEME_COLORS — the final export consumed by tailwind.config.js.
5
+ * 1. Semantic constants — non-token UI colors (overlay blends, etc.).
6
+ * 2. Token maps — rename taco-tokens keys to Tailwind family/shade tuples.
7
+ * 3. Palette — assembled from all token maps; mutated to add DEFAULT shades.
8
+ * 4. THEME_COLORS — the final export consumed by tailwind.config.js.
10
9
  *
11
10
  * To add a new token-backed color family: add rows to the relevant *_MAP and a
12
11
  * `palette.<family>` entry in THEME_COLORS. Do NOT edit taco-tokens — it is generated.
13
12
  */
14
13
  import { primaryColors, secondaryColors, tertiaryColors, neutralColors, brandColors } from '@economic/taco-tokens/tokens';
15
14
 
16
- // ─── 1. Legacy constants ──────────────────────────────────────────────────────
17
-
18
- // Not generated in tokens: TODO: Map and remove post color palette update
19
- const LEGACY_BROWN = {
20
- 100: '#EEE0DA', // Used in Badge component
21
- 300: '#C4AB9E', // Client: Used in paymentcards
22
- 500: '#93715D', // Client: Used in paymentcards, invoicing dashboard
23
- 700: '#73503B', // Client: Used in paymentcards, invoicing dashboard
24
- 900: '#45291F', // Used in Badge component
25
- };
26
-
27
- // Not generated in tokens: TODO: Map and remove post color palette update */
28
- const LEGACY_ORANGE = {
29
- 100: '#FFE3BB', // Used in Badge component
30
- 300: '#FAB64D', // Client: Used in paymentcards, workflows
31
- 500: '#F99702', // Client: Used in Avatar component
32
- 700: '#EF7D00', // Client: Used in paymentcards
33
- 900: '#4A2811', // Used in Badge component
34
- };
35
-
36
- // ─── 2. Semantic constants ────────────────────────────────────────────────────
15
+ // ─── 1. Semantic constants ────────────────────────────────────────────────────
37
16
 
38
17
  /** Not in tokens: 7% tacoNeutralBlack over transparent → `bg-black-subtle`. */
39
18
  const BLACK_SUBTLE_ALPHA = 7;
@@ -43,7 +22,7 @@ const BLACK_SUBTLE = `color-mix(in oklab, ${neutralColors.tacoNeutralBlack} ${BL
43
22
  const WHITE_SUBTLE_ALPHA = 8;
44
23
  const WHITE_SUBTLE = `color-mix(in oklab, ${neutralColors.tacoNeutralWhite} ${WHITE_SUBTLE_ALPHA}%, transparent)`;
45
24
 
46
- // ─── 3. Token maps ────────────────────────────────────────────────────────────
25
+ // ─── 2. Token maps ────────────────────────────────────────────────────────────
47
26
 
48
27
  /**
49
28
  * Maps token keys from a source object into a `{ [family]: { [shade]: hex } }` structure
@@ -137,7 +116,7 @@ const NEUTRAL_MAP = [
137
116
  ['tacoNeutralBlack', 'neutral', 'black'],
138
117
  ];
139
118
 
140
- // ─── 4. Palette assembly ──────────────────────────────────────────────────────
119
+ // ─── 3. Palette assembly ──────────────────────────────────────────────────────
141
120
 
142
121
  const fromPrimary = assignTokenShades(primaryColors, PRIMARY_MAP);
143
122
  const fromSecondary = assignTokenShades(secondaryColors, SECONDARY_MAP);
@@ -182,7 +161,7 @@ palette.gray = {
182
161
  ...palette.gray,
183
162
  };
184
163
 
185
- // ─── 5. Theme colors ──────────────────────────────────────────────────────────
164
+ // ─── 4. Theme colors ──────────────────────────────────────────────────────────
186
165
 
187
166
  const THEME_COLORS = {
188
167
  transparent: 'transparent',
@@ -207,8 +186,6 @@ const THEME_COLORS = {
207
186
  green: palette.green,
208
187
  yellow: palette.yellow,
209
188
  pink: palette.pink,
210
- brown: LEGACY_BROWN,
211
- orange: LEGACY_ORANGE,
212
189
  };
213
190
 
214
191
  export default THEME_COLORS;