@lushly-dev/violet-elements 0.2.0-preview.2 → 0.2.0-preview.4

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 (65) hide show
  1. package/README.md +8 -6
  2. package/custom-elements.json +23 -2
  3. package/dist/alert/violet-alert.js +19 -1
  4. package/dist/alert/violet-alert.js.map +1 -1
  5. package/dist/badge/violet-badge.js +3 -1
  6. package/dist/badge/violet-badge.js.map +1 -1
  7. package/dist/card/violet-card.js +6 -0
  8. package/dist/card/violet-card.js.map +1 -1
  9. package/dist/color-picker/violet-color-picker.js +3 -2
  10. package/dist/color-picker/violet-color-picker.js.map +1 -1
  11. package/dist/conversation/violet-approval-card.js +18 -4
  12. package/dist/conversation/violet-approval-card.js.map +1 -1
  13. package/dist/conversation/violet-chat-composer.js +2 -2
  14. package/dist/conversation/violet-chat-composer.js.map +1 -1
  15. package/dist/conversation/violet-chat-suggestions.js +5 -5
  16. package/dist/conversation/violet-chat-suggestions.js.map +1 -1
  17. package/dist/conversation/violet-conversation-thread.js +1 -1
  18. package/dist/conversation/violet-conversation-thread.js.map +1 -1
  19. package/dist/conversation/violet-message-media.js +4 -4
  20. package/dist/conversation/violet-message-media.js.map +1 -1
  21. package/dist/conversation/violet-message-status.js +6 -6
  22. package/dist/conversation/violet-message-status.js.map +1 -1
  23. package/dist/conversation/violet-message.js +5 -5
  24. package/dist/conversation/violet-message.js.map +1 -1
  25. package/dist/conversation/violet-reasoning-block.js +4 -4
  26. package/dist/conversation/violet-reasoning-block.js.map +1 -1
  27. package/dist/conversation/violet-source-citation.js +7 -7
  28. package/dist/conversation/violet-source-citation.js.map +1 -1
  29. package/dist/conversation/violet-tool-call-card.js +28 -14
  30. package/dist/conversation/violet-tool-call-card.js.map +1 -1
  31. package/dist/conversation/violet-tool-result-card.js +20 -6
  32. package/dist/conversation/violet-tool-result-card.js.map +1 -1
  33. package/dist/data-grid/violet-data-grid.styles.js +4 -1
  34. package/dist/data-grid/violet-data-grid.styles.js.map +1 -1
  35. package/dist/dialog/violet-dialog.js +6 -0
  36. package/dist/dialog/violet-dialog.js.map +1 -1
  37. package/dist/icon/icon-registry.js +19 -0
  38. package/dist/icon/icon-registry.js.map +1 -1
  39. package/dist/progress/violet-progress.js +15 -1
  40. package/dist/progress/violet-progress.js.map +1 -1
  41. package/dist/skeleton/violet-skeleton.js +3 -1
  42. package/dist/skeleton/violet-skeleton.js.map +1 -1
  43. package/dist/snackbar/violet-snackbar.js +14 -0
  44. package/dist/snackbar/violet-snackbar.js.map +1 -1
  45. package/dist/tab/violet-tab.js +3 -3
  46. package/dist/tab/violet-tab.js.map +1 -1
  47. package/dist/tab-panel/violet-tab-panel.js +14 -2
  48. package/dist/tab-panel/violet-tab-panel.js.map +1 -1
  49. package/dist/tabs/violet-tabs.d.ts +5 -0
  50. package/dist/tabs/violet-tabs.js +13 -5
  51. package/dist/tabs/violet-tabs.js.map +1 -1
  52. package/dist/teaching-tip/violet-teaching-tip.js +1 -1
  53. package/dist/teaching-tip/violet-teaching-tip.js.map +1 -1
  54. package/dist/text-area/violet-text-area.js +5 -0
  55. package/dist/text-area/violet-text-area.js.map +1 -1
  56. package/dist/text-field/violet-text-field.js +5 -0
  57. package/dist/text-field/violet-text-field.js.map +1 -1
  58. package/dist/theme/generated/violet-theme.generated.d.ts +15 -15
  59. package/dist/theme/generated/violet-theme.generated.js +15 -15
  60. package/dist/theme/generated/violet-theme.generated.js.map +1 -1
  61. package/dist/toast/violet-toast.js +14 -0
  62. package/dist/toast/violet-toast.js.map +1 -1
  63. package/package.json +6 -6
  64. package/tokens/raw-palette.proposal.jsonc +84 -81
  65. package/tokens/violet-theme.export.json +15 -15
@@ -1,159 +1,162 @@
1
1
  {
2
- // Draft raw palette proposal for Violet.
3
- // This sits below semantic tokens and gives us a named color vocabulary
4
- // we can map into surfaces, text, accents, and state roles.
5
- "proposalVersion": "0.1.0",
2
+ // AFD Refined raw palette reference for Violet's built-in default theme (D159).
3
+ // These primitives come from AFD's design system (site/css/tokens-m2.css and
4
+ // endpoints/loam/packages/theme/src/tree/primitives.ts) and map into the
5
+ // semantic surface, text, action, focus and state roles.
6
+ "proposalVersion": "0.2.0",
6
7
  "package": "@lushly-dev/violet-elements",
7
- "description": "Draft raw palette names and first semantic mapping proposal for Violet.",
8
+ "description": "AFD Refined raw palette primitives and semantic mapping reference for Violet.",
8
9
 
9
10
  "rawPalette": [
10
11
  {
11
- "id": "oat-blossom",
12
- "hex": "#FFFEFA",
13
- "hsl": "hsla(48, 100%, 99%, 1)",
14
- "roleHint": "light warm neutral"
12
+ "id": "paper",
13
+ "hex": "#f4f0ea",
14
+ "hsl": "hsla(36, 31%, 94%, 1)",
15
+ "roleHint": "page surface (warm paper canvas)"
15
16
  },
16
17
  {
17
- "id": "dry-sage",
18
- "hex": "#FAF9F5",
19
- "hsl": "hsla(48, 33%, 97%, 1)",
20
- "roleHint": "secondary light neutral"
18
+ "id": "paper-bright",
19
+ "hex": "#f8f9f3",
20
+ "hsl": "hsla(70, 33%, 96%, 1)",
21
+ "roleHint": "card surface (brighter paper)"
21
22
  },
22
23
  {
23
- "id": "sage-stem",
24
- "hex": "#F0EFE6",
25
- "hsl": "hsla(54, 25%, 92%, 1)",
26
- "roleHint": "deeper light neutral"
24
+ "id": "paper-200",
25
+ "hex": "#e9e5de",
26
+ "hsl": "hsla(38, 20%, 89%, 1)",
27
+ "roleHint": "subtle recessed surface and tracks"
27
28
  },
28
29
  {
29
- "id": "rain-mint",
30
- "hex": "#DFE8E0",
31
- "hsl": "hsla(127, 16%, 89%, 1)",
32
- "roleHint": "soft selected-surface accent"
30
+ "id": "mint-wash",
31
+ "hex": "#dfeae3",
32
+ "hsl": "hsla(142, 21%, 90%, 1)",
33
+ "roleHint": "selected rows and success wash"
33
34
  },
34
35
  {
35
- "id": "pine-teal",
36
- "hex": "#244635",
37
- "hsl": "hsla(150, 32%, 21%, 1)",
38
- "roleHint": "cool dark accent ink"
36
+ "id": "mint-soft",
37
+ "hex": "#badecf",
38
+ "hsl": "hsla(155, 35%, 80%, 1)",
39
+ "roleHint": "selected control fill (checkbox, switch, radio)"
39
40
  },
40
41
  {
41
- "id": "ripe-tomato",
42
- "hex": "#EC654E",
43
- "hsl": "hsla(9, 81%, 62%, 1)",
44
- "roleHint": "primary accent"
42
+ "id": "mint-ink",
43
+ "hex": "#2c5e4b",
44
+ "hsl": "hsla(157, 36%, 27%, 1)",
45
+ "roleHint": "selection and success ink"
45
46
  },
46
47
  {
47
- "id": "chestnut",
48
- "hex": "#7A2B1E",
49
- "hsl": "hsla(8, 61%, 30%, 1)",
50
- "roleHint": "warm dark accent ink"
48
+ "id": "blue-ink",
49
+ "hex": "#146ba0",
50
+ "hsl": "hsla(203, 78%, 35%, 1)",
51
+ "roleHint": "focus ring and link ink"
51
52
  },
52
53
  {
53
- "id": "black-pitch",
54
- "hex": "#1C1A0D",
55
- "hsl": "hsla(52, 37%, 8%, 1)",
56
- "roleHint": "default dark neutral ink"
54
+ "id": "red-ink",
55
+ "hex": "#c42a1a",
56
+ "hsl": "hsla(6, 77%, 44%, 1)",
57
+ "roleHint": "danger action and invalid ink"
58
+ },
59
+ {
60
+ "id": "ink-soft",
61
+ "hex": "#48534b",
62
+ "hsl": "hsla(136, 7%, 30%, 1)",
63
+ "roleHint": "secondary text and hover border"
64
+ },
65
+ {
66
+ "id": "ink",
67
+ "hex": "#181b1a",
68
+ "hsl": "hsla(160, 6%, 10%, 1)",
69
+ "roleHint": "primary text and main action"
57
70
  }
58
71
  ],
59
72
 
60
73
  "semanticMapping": {
61
74
  "surfaces": {
62
75
  "color.surface.page": {
63
- "source": "oat-blossom",
76
+ "source": "paper",
64
77
  "strategy": "direct",
65
78
  "notes": [
66
- "Current page surface direction now matches the named raw palette value directly."
79
+ "Quiet warm paper canvas for the resting page surface."
67
80
  ]
68
81
  },
69
82
  "color.surface.card": {
70
- "source": "dry-sage",
83
+ "source": "paper-bright",
71
84
  "strategy": "direct",
72
85
  "notes": [
73
- "Cards now map more cleanly to the second light neutral instead of deriving another lighter oat-blossom step."
86
+ "Card surfaces step brighter than the page without leaving the paper family."
74
87
  ]
75
88
  },
76
89
  "color.surface.subtle": {
77
- "source": "sage-stem",
90
+ "source": "paper-200",
78
91
  "strategy": "direct",
79
92
  "notes": [
80
- "Subtle/recessed structure for quieter nested surfaces."
93
+ "Recessed bands, tinted rows and slider tracks."
81
94
  ]
82
95
  },
83
96
  "color.surface.selected": {
84
- "source": "rain-mint",
97
+ "source": "mint-wash",
85
98
  "strategy": "direct",
86
99
  "notes": [
87
- "The selected-surface green is now light enough to stand as the named raw palette value itself."
100
+ "Greyed mint wash for selected rows and success surfaces on paper."
88
101
  ]
89
102
  },
90
103
  "color.surface.floating": {
91
- "source": "sage-stem",
92
- "strategy": "direct-shared",
104
+ "source": "paper-bright",
105
+ "strategy": "brightened-to-white",
93
106
  "notes": [
94
- "Floating layers currently share the subtle surface value and depend on elevation to establish separation."
107
+ "Floating layers sit brightest on pure white (#ffffff) with a soft drop shadow."
95
108
  ]
96
109
  }
97
110
  },
98
111
  "text": {
99
112
  "color.text.primary": {
100
- "source": "black-pitch",
113
+ "source": "ink",
101
114
  "strategy": "direct"
102
115
  },
103
116
  "color.text.secondary": {
104
- "source": "pine-teal",
105
- "strategy": "derived-muted",
106
- "candidateHex": "#405448",
107
- "notes": [
108
- "Secondary text should stay quieter than primary body text while still fitting the botanical palette."
109
- ]
110
- },
111
- "color.text.accent.primary": {
112
- "source": "ripe-tomato",
113
- "strategy": "direct-sparingly",
117
+ "source": "ink-soft",
118
+ "strategy": "direct",
114
119
  "notes": [
115
- "Primary accent text for occasional pops, not frequent body usage."
120
+ "Secondary text and field hover edges stay legible over every light surface."
116
121
  ]
117
122
  },
118
- "color.text.accent.secondary": {
119
- "source": "rain-mint",
120
- "strategy": "direct-sparingly",
123
+ "color.control.selected.foreground": {
124
+ "source": "mint-ink",
125
+ "strategy": "direct",
121
126
  "notes": [
122
- "Secondary accent text when a cooler emphasis is needed."
127
+ "Selection and success foreground ink paired with mint-soft and mint-wash."
123
128
  ]
124
129
  },
125
- "color.text.accent.coolDark": {
126
- "source": "pine-teal",
127
- "strategy": "direct-sparingly",
130
+ "color.focus.ring": {
131
+ "source": "blue-ink",
132
+ "strategy": "direct",
128
133
  "notes": [
129
- "Dark cool accent ink for highlighted words or labels."
134
+ "Keyboard focus ring and link ink in light mode."
130
135
  ]
131
136
  },
132
- "color.text.accent.warmDark": {
133
- "source": "chestnut",
134
- "strategy": "direct-sparingly",
137
+ "color.state.danger.text": {
138
+ "source": "red-ink",
139
+ "strategy": "direct",
135
140
  "notes": [
136
- "Dark warm accent ink for highlighted words or labels."
141
+ "Readable danger text and destructive action color on light paper."
137
142
  ]
138
143
  }
139
144
  },
140
145
  "actions": {
141
- "color.action.primary": {
142
- "source": "ripe-tomato",
146
+ "color.action.primary.background": {
147
+ "source": "ink",
143
148
  "strategy": "direct"
144
149
  },
145
- "color.action.secondary": {
146
- "source": "rain-mint",
150
+ "color.control.selected.background": {
151
+ "source": "mint-soft",
147
152
  "strategy": "direct"
148
153
  }
149
154
  }
150
155
  },
151
156
 
152
157
  "notes": [
153
- "Raw palette names should stay expressive and botanical/material in tone.",
154
- "Semantic tokens should remain functional even when they map to expressive raw names.",
155
- "Ripe-tomato is the primary accent. Rain-mint is the secondary accent.",
156
- "Pine-teal and chestnut are best treated as occasional dark accent inks rather than default body text colors.",
157
- "Black-pitch is the default dark neutral for primary text."
158
+ "AFD's Refined palette pairs ink on paper with mint for selection, blue for focus, and red for danger.",
159
+ "Semantic tokens are generated from Loam's Violet theme tree into tokens/violet-theme.export.json (D50, D159).",
160
+ "Products with their own look (such as Lushly) install their own VioletThemeSet via installVioletThemeSet()."
158
161
  ]
159
162
  }
@@ -503,7 +503,7 @@
503
503
  },
504
504
  {
505
505
  "id": "color.action.primary.text",
506
- "value": "#181b1a"
506
+ "value": "#141515"
507
507
  },
508
508
  {
509
509
  "id": "color.action.secondary.background",
@@ -527,7 +527,7 @@
527
527
  },
528
528
  {
529
529
  "id": "color.border.strong",
530
- "value": "#939c95"
530
+ "value": "#999e9b"
531
531
  },
532
532
  {
533
533
  "id": "color.border.subtle",
@@ -535,7 +535,7 @@
535
535
  },
536
536
  {
537
537
  "id": "color.control.selected.background",
538
- "value": "#20352c"
538
+ "value": "#1b2823"
539
539
  },
540
540
  {
541
541
  "id": "color.control.selected.border",
@@ -555,7 +555,7 @@
555
555
  },
556
556
  {
557
557
  "id": "color.field.border",
558
- "value": "#6b7d6e"
558
+ "value": "#767b78"
559
559
  },
560
560
  {
561
561
  "id": "color.field.border.focus",
@@ -563,7 +563,7 @@
563
563
  },
564
564
  {
565
565
  "id": "color.field.border.hover",
566
- "value": "#adb6ab"
566
+ "value": "#999e9b"
567
567
  },
568
568
  {
569
569
  "id": "color.field.border.invalid",
@@ -571,7 +571,7 @@
571
571
  },
572
572
  {
573
573
  "id": "color.field.placeholder",
574
- "value": "#adb6ab"
574
+ "value": "#999e9b"
575
575
  },
576
576
  {
577
577
  "id": "color.field.text",
@@ -599,7 +599,7 @@
599
599
  },
600
600
  {
601
601
  "id": "color.state.success.background",
602
- "value": "#20352c"
602
+ "value": "#1b2823"
603
603
  },
604
604
  {
605
605
  "id": "color.state.success.border",
@@ -627,19 +627,19 @@
627
627
  },
628
628
  {
629
629
  "id": "color.surface.card",
630
- "value": "#222824"
630
+ "value": "#1b1c1c"
631
631
  },
632
632
  {
633
633
  "id": "color.surface.floating",
634
- "value": "#252e29"
634
+ "value": "#252727"
635
635
  },
636
636
  {
637
637
  "id": "color.surface.highlight",
638
- "value": "#4d5b50"
638
+ "value": "#333333"
639
639
  },
640
640
  {
641
641
  "id": "color.surface.page",
642
- "value": "#181b1a"
642
+ "value": "#141515"
643
643
  },
644
644
  {
645
645
  "id": "color.surface.pressed",
@@ -647,15 +647,15 @@
647
647
  },
648
648
  {
649
649
  "id": "color.surface.selected",
650
- "value": "#20352c"
650
+ "value": "#1b2823"
651
651
  },
652
652
  {
653
653
  "id": "color.surface.subtle",
654
- "value": "#2e3a33"
654
+ "value": "#202222"
655
655
  },
656
656
  {
657
657
  "id": "color.text.muted",
658
- "value": "#adb6ab"
658
+ "value": "#999e9b"
659
659
  },
660
660
  {
661
661
  "id": "color.text.primary",
@@ -663,7 +663,7 @@
663
663
  },
664
664
  {
665
665
  "id": "color.text.secondary",
666
- "value": "#bdcfc1"
666
+ "value": "#CCCCCC"
667
667
  },
668
668
  {
669
669
  "id": "duration.base",