@asteby/metacore-ui 2.2.0 → 2.3.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.
@@ -1,5 +1,5 @@
1
1
  export { cn, getPageNumbers, sleep } from './utils';
2
2
  export { getCookie, setCookie, removeCookie } from './cookies';
3
- export { resolveColorHex, resolveColorCss, generateBadgeStyles, } from './option-colors';
3
+ export { resolveColorHex, resolveColorCss, generateBadgeStyles, optionColor, optionColorBadgeStyles, relationChipStyles, OPTION_PALETTE, } from './option-colors';
4
4
  export { getInitials, type GetInitialsOptions } from './get-initials';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC9D,OAAO,EACL,eAAe,EACf,eAAe,EACf,mBAAmB,GACpB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC9D,OAAO,EACL,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EAClB,cAAc,GACf,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAA"}
package/dist/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { cn, getPageNumbers, sleep } from './utils';
2
2
  export { getCookie, setCookie, removeCookie } from './cookies';
3
- export { resolveColorHex, resolveColorCss, generateBadgeStyles, } from './option-colors';
3
+ export { resolveColorHex, resolveColorCss, generateBadgeStyles, optionColor, optionColorBadgeStyles, relationChipStyles, OPTION_PALETTE, } from './option-colors';
4
4
  export { getInitials } from './get-initials';
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC9D,OAAO,EACL,eAAe,EACf,eAAe,EACf,mBAAmB,GACpB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,WAAW,EAA2B,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC9D,OAAO,EACL,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EAClB,cAAc,GACf,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,WAAW,EAA2B,MAAM,gBAAgB,CAAA"}
@@ -23,5 +23,39 @@ interface BadgeStyleOptions {
23
23
  * text), tinted in the OptionDef color and adapted to light/dark mode.
24
24
  */
25
25
  export declare const generateBadgeStyles: (input: string, { isDark }: BadgeStyleOptions) => React.CSSProperties;
26
+ /**
27
+ * Curated, cohesive palette used to colorize options/relations that ship
28
+ * WITHOUT an explicit `color` from the backend. These are well-known
29
+ * Tailwind-500 hues, hand-picked to read well as soft chips in BOTH light and
30
+ * dark mode and to avoid muddy/low-contrast tones (no bare yellow that vanishes
31
+ * on white). Order is intentional so the first handful of distinct values land
32
+ * on visually distant hues rather than neighbours on the color wheel.
33
+ */
34
+ export declare const OPTION_PALETTE: readonly string[];
35
+ /**
36
+ * Maps an arbitrary option key (its `value`, falling back to `label`) to a
37
+ * stable hex color drawn from {@link OPTION_PALETTE}. Same input → same color,
38
+ * always; similar/equal inputs collapse to the same hue because the hash is on
39
+ * the normalized key. This is what makes "dead" gray option badges feel ALIVE
40
+ * without the backend declaring a color per option.
41
+ *
42
+ * The returned hex has NO leading `#` so it funnels through the same
43
+ * {@link generateBadgeStyles} / {@link resolveColorCss} helpers as an explicit
44
+ * OptionDef color.
45
+ */
46
+ export declare const optionColor: (key: string) => string;
47
+ /**
48
+ * Ready-to-use inline badge style for a key-derived palette color, in the
49
+ * requested light/dark variant. Equivalent to
50
+ * `generateBadgeStyles(optionColor(key), { isDark })`.
51
+ */
52
+ export declare const optionColorBadgeStyles: (key: string, { isDark }: BadgeStyleOptions) => React.CSSProperties;
53
+ /**
54
+ * Inline style for a RELATION chip keyed on the related label/id. Intentionally
55
+ * lighter than an enum badge: soft tinted background + matching border, but no
56
+ * heavy fill — so relations stay visually distinguishable from option/status
57
+ * enums while still reading as "alive" rather than dead gray.
58
+ */
59
+ export declare const relationChipStyles: (key: string, { isDark }: BadgeStyleOptions) => React.CSSProperties;
26
60
  export {};
27
61
  //# sourceMappingURL=option-colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"option-colors.d.ts","sourceRoot":"","sources":["../../src/lib/option-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA4BH;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,MAK/C,CAAA;AAED,4EAA4E;AAC5E,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,MAG/C,CAAA;AAED,UAAU,iBAAiB;IACzB,MAAM,EAAE,OAAO,CAAA;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,EACb,YAAY,iBAAiB,KAC5B,KAAK,CAAC,aAqBR,CAAA"}
1
+ {"version":3,"file":"option-colors.d.ts","sourceRoot":"","sources":["../../src/lib/option-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA4BH;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,MAK/C,CAAA;AAED,4EAA4E;AAC5E,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,MAG/C,CAAA;AAED,UAAU,iBAAiB;IACzB,MAAM,EAAE,OAAO,CAAA;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,EACb,YAAY,iBAAiB,KAC5B,KAAK,CAAC,aAqBR,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAiB3C,CAAA;AAkBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,KAAG,MAIzC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GACjC,KAAK,MAAM,EACX,YAAY,iBAAiB,KAC5B,KAAK,CAAC,aAAkE,CAAA;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,KAAK,MAAM,EACX,YAAY,iBAAiB,KAC5B,KAAK,CAAC,aAiBR,CAAA"}
@@ -76,4 +76,92 @@ export const generateBadgeStyles = (input, { isDark }) => {
76
76
  fontWeight: 500,
77
77
  };
78
78
  };
79
+ /**
80
+ * Curated, cohesive palette used to colorize options/relations that ship
81
+ * WITHOUT an explicit `color` from the backend. These are well-known
82
+ * Tailwind-500 hues, hand-picked to read well as soft chips in BOTH light and
83
+ * dark mode and to avoid muddy/low-contrast tones (no bare yellow that vanishes
84
+ * on white). Order is intentional so the first handful of distinct values land
85
+ * on visually distant hues rather than neighbours on the color wheel.
86
+ */
87
+ export const OPTION_PALETTE = [
88
+ 'ef4444', // red
89
+ '3b82f6', // blue
90
+ '22c55e', // green
91
+ 'f97316', // orange
92
+ '8b5cf6', // violet
93
+ '06b6d4', // cyan
94
+ 'ec4899', // pink
95
+ '14b8a6', // teal
96
+ 'f59e0b', // amber
97
+ '6366f1', // indigo
98
+ '84cc16', // lime
99
+ 'a855f7', // purple
100
+ '0ea5e9', // sky
101
+ 'f43f5e', // rose
102
+ '10b981', // emerald
103
+ 'd946ef', // fuchsia
104
+ ];
105
+ /**
106
+ * Deterministic 32-bit FNV-1a hash of a string. Stable across renders,
107
+ * sessions and runtimes (pure arithmetic, no Math.random / Date). Picks a
108
+ * palette slot for a given option key so the same value always maps to the same
109
+ * color, and equal words share a color.
110
+ */
111
+ const hashString = (input) => {
112
+ let hash = 0x811c9dc5;
113
+ for (let i = 0; i < input.length; i++) {
114
+ hash ^= input.charCodeAt(i);
115
+ // hash *= 16777619 (FNV prime), kept in the 32-bit unsigned range.
116
+ hash = Math.imul(hash, 0x01000193) >>> 0;
117
+ }
118
+ return hash >>> 0;
119
+ };
120
+ /**
121
+ * Maps an arbitrary option key (its `value`, falling back to `label`) to a
122
+ * stable hex color drawn from {@link OPTION_PALETTE}. Same input → same color,
123
+ * always; similar/equal inputs collapse to the same hue because the hash is on
124
+ * the normalized key. This is what makes "dead" gray option badges feel ALIVE
125
+ * without the backend declaring a color per option.
126
+ *
127
+ * The returned hex has NO leading `#` so it funnels through the same
128
+ * {@link generateBadgeStyles} / {@link resolveColorCss} helpers as an explicit
129
+ * OptionDef color.
130
+ */
131
+ export const optionColor = (key) => {
132
+ const normalized = (key ?? '').trim().toLowerCase();
133
+ if (!normalized)
134
+ return OPTION_PALETTE[0];
135
+ return OPTION_PALETTE[hashString(normalized) % OPTION_PALETTE.length];
136
+ };
137
+ /**
138
+ * Ready-to-use inline badge style for a key-derived palette color, in the
139
+ * requested light/dark variant. Equivalent to
140
+ * `generateBadgeStyles(optionColor(key), { isDark })`.
141
+ */
142
+ export const optionColorBadgeStyles = (key, { isDark }) => generateBadgeStyles(optionColor(key), { isDark });
143
+ /**
144
+ * Inline style for a RELATION chip keyed on the related label/id. Intentionally
145
+ * lighter than an enum badge: soft tinted background + matching border, but no
146
+ * heavy fill — so relations stay visually distinguishable from option/status
147
+ * enums while still reading as "alive" rather than dead gray.
148
+ */
149
+ export const relationChipStyles = (key, { isDark }) => {
150
+ const hex = optionColor(key);
151
+ const r = parseInt(hex.substring(0, 2), 16);
152
+ const g = parseInt(hex.substring(2, 4), 16);
153
+ const b = parseInt(hex.substring(4, 6), 16);
154
+ if (isDark) {
155
+ return {
156
+ backgroundColor: `rgba(${r}, ${g}, ${b}, 0.12)`,
157
+ color: `rgb(${Math.min(255, Math.floor(r * 1.25))}, ${Math.min(255, Math.floor(g * 1.25))}, ${Math.min(255, Math.floor(b * 1.25))})`,
158
+ border: `1px solid rgba(${r}, ${g}, ${b}, 0.3)`,
159
+ };
160
+ }
161
+ return {
162
+ backgroundColor: `rgba(${r}, ${g}, ${b}, 0.08)`,
163
+ color: `rgb(${Math.floor(r * 0.55)}, ${Math.floor(g * 0.55)}, ${Math.floor(b * 0.55)})`,
164
+ border: `1px solid rgba(${r}, ${g}, ${b}, 0.2)`,
165
+ };
166
+ };
79
167
  //# sourceMappingURL=option-colors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"option-colors.js","sourceRoot":"","sources":["../../src/lib/option-colors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,0EAA0E;AAC1E,MAAM,SAAS,GAA2B;IACxC,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,GA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,KAAK,CAAC,KAAK,CAAC,QAAQ;SAChD,CAAA;IACH,CAAC;IACD,OAAO;QACL,eAAe,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS;QAC/C,KAAK,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG;QACvF,MAAM,EAAE,kBAAkB,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ;KAChD,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asteby/metacore-ui",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Metacore UI kit — data-table, layout shell, command-menu, hooks y primitives shadcn reutilizables",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {