@tmorrow/cre8-wc 2.0.4 → 2.0.5
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.
- package/a2ui/build-knowledge-graph.py +297 -0
- package/a2ui/catalog +240 -0
- package/a2ui/catalog-kg.json +6704 -0
- package/a2ui/catalog.json +576 -84
- package/a2ui/catalog.svg +3295 -0
- package/a2ui/demo.html +5 -49
- package/a2ui/examples/card-gallery.json +786 -0
- package/a2ui/examples/dating-grid.json +456 -0
- package/a2ui/examples/llm-observability.json +1719 -0
- package/a2ui/examples/portfolio.json +341 -0
- package/a2ui/generate-catalog.mjs +3 -0
- package/cdn/cre8-wc.esm.js +3057 -2438
- package/cdn/cre8-wc.esm.js.map +1 -1
- package/cdn/cre8-wc.min.js +1801 -1204
- package/cdn/cre8-wc.min.js.map +1 -1
- package/lib/components/accordion/accordion.d.ts +1 -0
- package/lib/components/accordion/accordion.d.ts.map +1 -1
- package/lib/components/accordion/accordion.js +1 -0
- package/lib/components/accordion/accordion.js.map +1 -1
- package/lib/components/accordion-item/accordion-item.d.ts +1 -0
- package/lib/components/accordion-item/accordion-item.d.ts.map +1 -1
- package/lib/components/accordion-item/accordion-item.js +1 -0
- package/lib/components/accordion-item/accordion-item.js.map +1 -1
- package/lib/components/alert/alert.d.ts +6 -0
- package/lib/components/alert/alert.d.ts.map +1 -1
- package/lib/components/alert/alert.js +6 -0
- package/lib/components/alert/alert.js.map +1 -1
- package/lib/components/button/button.d.ts +2 -0
- package/lib/components/button/button.d.ts.map +1 -1
- package/lib/components/button/button.js +2 -0
- package/lib/components/button/button.js.map +1 -1
- package/lib/components/button/button.styles.d.ts.map +1 -1
- package/lib/components/button/button.styles.js +1120 -557
- package/lib/components/button/button.styles.js.map +1 -1
- package/lib/components/button-group/button-group.d.ts +9 -0
- package/lib/components/button-group/button-group.d.ts.map +1 -1
- package/lib/components/button-group/button-group.js +8 -0
- package/lib/components/button-group/button-group.js.map +1 -1
- package/lib/components/button-group/button-group.styles.d.ts.map +1 -1
- package/lib/components/button-group/button-group.styles.js +12 -0
- package/lib/components/button-group/button-group.styles.js.map +1 -1
- package/lib/components/card/card.d.ts +1 -1
- package/lib/components/card/card.d.ts.map +1 -1
- package/lib/components/card/card.js +1 -0
- package/lib/components/card/card.js.map +1 -1
- package/lib/components/card/card.styles.d.ts.map +1 -1
- package/lib/components/card/card.styles.js +8 -0
- package/lib/components/card/card.styles.js.map +1 -1
- package/lib/components/checkbox-field-item/checkbox-field-item.d.ts +6 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.d.ts.map +1 -1
- package/lib/components/checkbox-field-item/checkbox-field-item.js +6 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.js.map +1 -1
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.js +1 -1
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.js.map +1 -1
- package/lib/components/date-picker/date-picker.d.ts +5 -0
- package/lib/components/date-picker/date-picker.d.ts.map +1 -1
- package/lib/components/date-picker/date-picker.js +12 -10
- package/lib/components/date-picker/date-picker.js.map +1 -1
- package/lib/components/dropdown/dropdown.d.ts +2 -0
- package/lib/components/dropdown/dropdown.d.ts.map +1 -1
- package/lib/components/dropdown/dropdown.js +2 -0
- package/lib/components/dropdown/dropdown.js.map +1 -1
- package/lib/components/dropdown-item/dropdown-item.d.ts +8 -0
- package/lib/components/dropdown-item/dropdown-item.d.ts.map +1 -1
- package/lib/components/dropdown-item/dropdown-item.js +15 -2
- package/lib/components/dropdown-item/dropdown-item.js.map +1 -1
- package/lib/components/feature/feature.d.ts +4 -0
- package/lib/components/feature/feature.d.ts.map +1 -1
- package/lib/components/feature/feature.js +4 -1
- package/lib/components/feature/feature.js.map +1 -1
- package/lib/components/field/field.d.ts +2 -0
- package/lib/components/field/field.d.ts.map +1 -1
- package/lib/components/field/field.js +3 -0
- package/lib/components/field/field.js.map +1 -1
- package/lib/components/global-nav-item/global-nav-item.d.ts +2 -0
- package/lib/components/global-nav-item/global-nav-item.d.ts.map +1 -1
- package/lib/components/global-nav-item/global-nav-item.js +2 -0
- package/lib/components/global-nav-item/global-nav-item.js.map +1 -1
- package/lib/components/header/header.d.ts +2 -0
- package/lib/components/header/header.d.ts.map +1 -1
- package/lib/components/header/header.js +2 -0
- package/lib/components/header/header.js.map +1 -1
- package/lib/components/hero/hero.d.ts +4 -0
- package/lib/components/hero/hero.d.ts.map +1 -1
- package/lib/components/hero/hero.js +4 -0
- package/lib/components/hero/hero.js.map +1 -1
- package/lib/components/hero/hero.styles.d.ts.map +1 -1
- package/lib/components/hero/hero.styles.js +13 -0
- package/lib/components/hero/hero.styles.js.map +1 -1
- package/lib/components/icon/icon.d.ts +3 -0
- package/lib/components/icon/icon.d.ts.map +1 -1
- package/lib/components/icon/icon.js +7 -5
- package/lib/components/icon/icon.js.map +1 -1
- package/lib/components/link/link.d.ts +2 -0
- package/lib/components/link/link.d.ts.map +1 -1
- package/lib/components/link/link.js +2 -0
- package/lib/components/link/link.js.map +1 -1
- package/lib/components/link-list-item/link-list-item.d.ts +2 -0
- package/lib/components/link-list-item/link-list-item.d.ts.map +1 -1
- package/lib/components/link-list-item/link-list-item.js +2 -0
- package/lib/components/link-list-item/link-list-item.js.map +1 -1
- package/lib/components/modal/modal.d.ts +4 -0
- package/lib/components/modal/modal.d.ts.map +1 -1
- package/lib/components/modal/modal.js +4 -0
- package/lib/components/modal/modal.js.map +1 -1
- package/lib/components/multi-select/multi-select.d.ts +4 -0
- package/lib/components/multi-select/multi-select.d.ts.map +1 -1
- package/lib/components/multi-select/multi-select.js +5 -2
- package/lib/components/multi-select/multi-select.js.map +1 -1
- package/lib/components/page-header/page-header.d.ts +1 -0
- package/lib/components/page-header/page-header.d.ts.map +1 -1
- package/lib/components/page-header/page-header.js +3 -2
- package/lib/components/page-header/page-header.js.map +1 -1
- package/lib/components/pagination/pagination.d.ts +7 -0
- package/lib/components/pagination/pagination.d.ts.map +1 -1
- package/lib/components/pagination/pagination.js +7 -0
- package/lib/components/pagination/pagination.js.map +1 -1
- package/lib/components/percent-bar/percent-bar.d.ts.map +1 -1
- package/lib/components/percent-bar/percent-bar.js +1 -0
- package/lib/components/percent-bar/percent-bar.js.map +1 -1
- package/lib/components/popover/popover.d.ts +6 -0
- package/lib/components/popover/popover.d.ts.map +1 -1
- package/lib/components/popover/popover.js +7 -1
- package/lib/components/popover/popover.js.map +1 -1
- package/lib/components/primary-nav-item/primary-nav-item.d.ts +2 -0
- package/lib/components/primary-nav-item/primary-nav-item.d.ts.map +1 -1
- package/lib/components/primary-nav-item/primary-nav-item.js +2 -0
- package/lib/components/primary-nav-item/primary-nav-item.js.map +1 -1
- package/lib/components/remove-tag/remove-tag.d.ts +2 -0
- package/lib/components/remove-tag/remove-tag.d.ts.map +1 -1
- package/lib/components/remove-tag/remove-tag.js +3 -1
- package/lib/components/remove-tag/remove-tag.js.map +1 -1
- package/lib/components/section/section.d.ts +1 -0
- package/lib/components/section/section.d.ts.map +1 -1
- package/lib/components/section/section.js +1 -0
- package/lib/components/section/section.js.map +1 -1
- package/lib/components/select/select.d.ts +2 -0
- package/lib/components/select/select.d.ts.map +1 -1
- package/lib/components/select/select.js +5 -1
- package/lib/components/select/select.js.map +1 -1
- package/lib/components/split-button/split-button.d.ts +3 -0
- package/lib/components/split-button/split-button.d.ts.map +1 -1
- package/lib/components/split-button/split-button.js.map +1 -1
- package/lib/components/tab/tab.d.ts +2 -0
- package/lib/components/tab/tab.d.ts.map +1 -1
- package/lib/components/tab/tab.js +2 -0
- package/lib/components/tab/tab.js.map +1 -1
- package/lib/components/table-object/table-object.d.ts +2 -0
- package/lib/components/table-object/table-object.d.ts.map +1 -1
- package/lib/components/table-object/table-object.js +2 -0
- package/lib/components/table-object/table-object.js.map +1 -1
- package/lib/components/table-row/table-row.d.ts +1 -0
- package/lib/components/table-row/table-row.d.ts.map +1 -1
- package/lib/components/table-row/table-row.js +1 -0
- package/lib/components/table-row/table-row.js.map +1 -1
- package/lib/components/tag/tag.d.ts +5 -0
- package/lib/components/tag/tag.d.ts.map +1 -1
- package/lib/components/tag/tag.js +2 -0
- package/lib/components/tag/tag.js.map +1 -1
- package/lib/components/tag-list/tag-list.d.ts +2 -0
- package/lib/components/tag-list/tag-list.d.ts.map +1 -1
- package/lib/components/tag-list/tag-list.js +2 -0
- package/lib/components/tag-list/tag-list.js.map +1 -1
- package/lib/components/text-link/text-link.d.ts +1 -0
- package/lib/components/text-link/text-link.d.ts.map +1 -1
- package/lib/components/text-link/text-link.js +1 -0
- package/lib/components/text-link/text-link.js.map +1 -1
- package/lib/components/tooltip/tooltip.d.ts +6 -0
- package/lib/components/tooltip/tooltip.d.ts.map +1 -1
- package/lib/components/tooltip/tooltip.js +3 -0
- package/lib/components/tooltip/tooltip.js.map +1 -1
- package/lib/design-tokens/brands/claude-terracotta/css/tokens_brand.css +85 -0
- package/lib/design-tokens/brands/claude-terracotta/css/tokens_claude-terracotta.css +1 -0
- package/lib/design-tokens/brands/claude-terracotta/css/tokens_claude-terracotta.module.d.ts +3 -0
- package/lib/design-tokens/brands/claude-terracotta/css/tokens_claude-terracotta.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/claude-terracotta/css/tokens_claude-terracotta.module.js +90 -0
- package/lib/design-tokens/brands/claude-terracotta/css/tokens_claude-terracotta.module.js.map +1 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_brand.css +1 -0
- package/lib/design-tokens/brands/cre8-teal/css/tokens_brand.css +87 -0
- package/lib/design-tokens/brands/cre8-teal/css/tokens_cre8-teal.css +1 -0
- package/lib/design-tokens/brands/cre8-teal/css/tokens_cre8-teal.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8-teal/css/tokens_cre8-teal.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8-teal/css/tokens_cre8-teal.module.js +90 -0
- package/lib/design-tokens/brands/cre8-teal/css/tokens_cre8-teal.module.js.map +1 -0
- package/lib/scripts/generate-react-manifest.d.ts +20 -0
- package/lib/scripts/generate-react-manifest.d.ts.map +1 -0
- package/lib/scripts/generate-react-manifest.js +154 -0
- package/lib/scripts/generate-react-manifest.js.map +1 -0
- package/mcp-manifest.json +203 -38
- package/package.json +10 -4
- package/react-manifest.json +3594 -0
- package/dist/leaf.png +0 -0
- package/dist/leafDS.png +0 -0
- package/dist/leafLogo.svg +0 -1
package/mcp-manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.5",
|
|
3
3
|
"library": "@tmorrow/cre8-wc",
|
|
4
4
|
"tagPrefix": "cre8",
|
|
5
5
|
"description": "cre8 Web Components is a library of presentational UI web components to be consumed by # web applications.",
|
|
@@ -160,7 +160,14 @@
|
|
|
160
160
|
"description": "Whether the field is in a success state"
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
|
-
"slots": {
|
|
163
|
+
"slots": {
|
|
164
|
+
"before": {
|
|
165
|
+
"description": "Content rendered before the button text, such as an icon"
|
|
166
|
+
},
|
|
167
|
+
"after": {
|
|
168
|
+
"description": "Content rendered after the button text, such as an icon"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
164
171
|
"events": {},
|
|
165
172
|
"cssProperties": {},
|
|
166
173
|
"examples": [
|
|
@@ -178,9 +185,18 @@
|
|
|
178
185
|
"orientation": {
|
|
179
186
|
"type": "\"responsive-full-width\"",
|
|
180
187
|
"description": "Responsive Button Group (for modals)"
|
|
188
|
+
},
|
|
189
|
+
"gap": {
|
|
190
|
+
"type": "\"sm\"",
|
|
191
|
+
"description": "Gap between buttons\n- **sm** reduces gap to 8px (useful in compact contexts)"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"properties": {
|
|
195
|
+
"fullWidth": {
|
|
196
|
+
"type": "boolean",
|
|
197
|
+
"description": "Stretch button group to fill its container width"
|
|
181
198
|
}
|
|
182
199
|
},
|
|
183
|
-
"properties": {},
|
|
184
200
|
"slots": {
|
|
185
201
|
"default": {
|
|
186
202
|
"description": "The component content"
|
|
@@ -344,7 +360,8 @@
|
|
|
344
360
|
"description": "Split Button component.",
|
|
345
361
|
"attributes": {
|
|
346
362
|
"disabled": {
|
|
347
|
-
"type": "boolean"
|
|
363
|
+
"type": "boolean",
|
|
364
|
+
"description": "Disables both the main button and the dropdown toggle."
|
|
348
365
|
},
|
|
349
366
|
"size": {
|
|
350
367
|
"type": "string",
|
|
@@ -549,7 +566,8 @@
|
|
|
549
566
|
"slots": {},
|
|
550
567
|
"events": {
|
|
551
568
|
"removeTagClicked": {
|
|
552
|
-
"detail": {}
|
|
569
|
+
"detail": {},
|
|
570
|
+
"description": "Fires when the remove tag is clicked."
|
|
553
571
|
}
|
|
554
572
|
},
|
|
555
573
|
"cssProperties": {},
|
|
@@ -685,6 +703,12 @@
|
|
|
685
703
|
"slots": {
|
|
686
704
|
"default": {
|
|
687
705
|
"description": "The component content"
|
|
706
|
+
},
|
|
707
|
+
"header": {
|
|
708
|
+
"description": "Content rendered in the table object header"
|
|
709
|
+
},
|
|
710
|
+
"footer": {
|
|
711
|
+
"description": "Content rendered in the table object footer"
|
|
688
712
|
}
|
|
689
713
|
},
|
|
690
714
|
"events": {},
|
|
@@ -724,6 +748,9 @@
|
|
|
724
748
|
"slots": {
|
|
725
749
|
"default": {
|
|
726
750
|
"description": "The component content"
|
|
751
|
+
},
|
|
752
|
+
"expandableContent": {
|
|
753
|
+
"description": "Content revealed when the row is expanded"
|
|
727
754
|
}
|
|
728
755
|
},
|
|
729
756
|
"events": {},
|
|
@@ -736,7 +763,8 @@
|
|
|
736
763
|
"description": "The tag component allows you to make selections, filter content, or trigger actions. While buttons are\nexpected to appear consistently and with familiar calls to actions, tags should appear dynamically\nas a group of multiple interactions elements. It is a flexible\ncomponent that comes in the following types:\n - **radio** Clicking a Radio Button causes it to change color. These tags only allow\none option to be chosen and can be used in place of radio button when they need to be listed\nhorizontally\n\n - **checkbox** It allows for selecting options, It can be toggled on and off.",
|
|
737
764
|
"attributes": {
|
|
738
765
|
"text": {
|
|
739
|
-
"type": "string"
|
|
766
|
+
"type": "string",
|
|
767
|
+
"description": "The text label displayed inside the tag."
|
|
740
768
|
},
|
|
741
769
|
"variant": {
|
|
742
770
|
"type": "string",
|
|
@@ -807,7 +835,8 @@
|
|
|
807
835
|
"slots": {},
|
|
808
836
|
"events": {
|
|
809
837
|
"change": {
|
|
810
|
-
"detail": {}
|
|
838
|
+
"detail": {},
|
|
839
|
+
"description": "Fires when the tag is clicked while enabled. `event.detail` is `{ isSelected, type }`."
|
|
811
840
|
}
|
|
812
841
|
},
|
|
813
842
|
"cssProperties": {},
|
|
@@ -834,7 +863,11 @@
|
|
|
834
863
|
"description": "The unique id of the select"
|
|
835
864
|
}
|
|
836
865
|
},
|
|
837
|
-
"slots": {
|
|
866
|
+
"slots": {
|
|
867
|
+
"default": {
|
|
868
|
+
"description": "The `cre8-tag` children of the list"
|
|
869
|
+
}
|
|
870
|
+
},
|
|
838
871
|
"events": {},
|
|
839
872
|
"cssProperties": {},
|
|
840
873
|
"examples": []
|
|
@@ -861,7 +894,11 @@
|
|
|
861
894
|
"description": "\nWhen it is true, the inner dividers are displayed;\nif it is false, the inner dividers are not displayed"
|
|
862
895
|
}
|
|
863
896
|
},
|
|
864
|
-
"slots": {
|
|
897
|
+
"slots": {
|
|
898
|
+
"default": {
|
|
899
|
+
"description": "The `cre8-accordion-item` children to group"
|
|
900
|
+
}
|
|
901
|
+
},
|
|
865
902
|
"events": {},
|
|
866
903
|
"cssProperties": {},
|
|
867
904
|
"examples": []
|
|
@@ -924,6 +961,9 @@
|
|
|
924
961
|
"slots": {
|
|
925
962
|
"default": {
|
|
926
963
|
"description": "The body of the accordion item will be any valid html\ninserted between the cre8-accordion-item opening and closing tags."
|
|
964
|
+
},
|
|
965
|
+
"heading": {
|
|
966
|
+
"description": "Custom heading content, used when the `heading` property is not set."
|
|
927
967
|
}
|
|
928
968
|
},
|
|
929
969
|
"events": {},
|
|
@@ -956,7 +996,11 @@
|
|
|
956
996
|
"type": "HTMLElement"
|
|
957
997
|
}
|
|
958
998
|
},
|
|
959
|
-
"slots": {
|
|
999
|
+
"slots": {
|
|
1000
|
+
"default": {
|
|
1001
|
+
"description": "The `cre8-dropdown-item` children of the menu"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
960
1004
|
"events": {},
|
|
961
1005
|
"cssProperties": {},
|
|
962
1006
|
"examples": []
|
|
@@ -968,13 +1012,19 @@
|
|
|
968
1012
|
"attributes": {},
|
|
969
1013
|
"properties": {
|
|
970
1014
|
"ariaLabel": {
|
|
971
|
-
"type": "string"
|
|
1015
|
+
"type": "string",
|
|
1016
|
+
"description": "The accessible label for the item. Falls back to the item's text content when unset."
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
"slots": {
|
|
1020
|
+
"default": {
|
|
1021
|
+
"description": "The label content for the dropdown item."
|
|
972
1022
|
}
|
|
973
1023
|
},
|
|
974
|
-
"slots": {},
|
|
975
1024
|
"events": {
|
|
976
1025
|
"dropdown-item-selected": {
|
|
977
|
-
"detail": {}
|
|
1026
|
+
"detail": {},
|
|
1027
|
+
"description": "Fires when the item is clicked. `event.detail.originalEvent` holds the source `MouseEvent`."
|
|
978
1028
|
}
|
|
979
1029
|
},
|
|
980
1030
|
"cssProperties": {},
|
|
@@ -1032,9 +1082,20 @@
|
|
|
1032
1082
|
"slots": {
|
|
1033
1083
|
"default": {
|
|
1034
1084
|
"description": "The component content"
|
|
1085
|
+
},
|
|
1086
|
+
"header": {
|
|
1087
|
+
"description": "Custom header content for the modal"
|
|
1088
|
+
},
|
|
1089
|
+
"footer": {
|
|
1090
|
+
"description": "Custom footer content for the modal"
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
"events": {
|
|
1094
|
+
"close-modal": {
|
|
1095
|
+
"detail": {},
|
|
1096
|
+
"description": "Fires when the modal is dismissed via the close button, overlay click, or Escape key."
|
|
1035
1097
|
}
|
|
1036
1098
|
},
|
|
1037
|
-
"events": {},
|
|
1038
1099
|
"cssProperties": {},
|
|
1039
1100
|
"examples": []
|
|
1040
1101
|
},
|
|
@@ -1089,14 +1150,25 @@
|
|
|
1089
1150
|
"slots": {
|
|
1090
1151
|
"default": {
|
|
1091
1152
|
"description": "The component content"
|
|
1153
|
+
},
|
|
1154
|
+
"trigger": {
|
|
1155
|
+
"description": "The element that toggles the popover open and closed"
|
|
1156
|
+
},
|
|
1157
|
+
"header": {
|
|
1158
|
+
"description": "Custom header content for the popover panel"
|
|
1159
|
+
},
|
|
1160
|
+
"footer": {
|
|
1161
|
+
"description": "Custom footer content for the popover panel"
|
|
1092
1162
|
}
|
|
1093
1163
|
},
|
|
1094
1164
|
"events": {
|
|
1095
1165
|
"open": {
|
|
1096
|
-
"detail": {}
|
|
1166
|
+
"detail": {},
|
|
1167
|
+
"description": "Fires when the popover opens. `event.detail.isActive` is `true`."
|
|
1097
1168
|
},
|
|
1098
1169
|
"close": {
|
|
1099
|
-
"detail": {}
|
|
1170
|
+
"detail": {},
|
|
1171
|
+
"description": "Fires when the popover closes. `event.detail.isActive` is `false`."
|
|
1100
1172
|
}
|
|
1101
1173
|
},
|
|
1102
1174
|
"cssProperties": {},
|
|
@@ -1206,10 +1278,12 @@
|
|
|
1206
1278
|
},
|
|
1207
1279
|
"events": {
|
|
1208
1280
|
"open": {
|
|
1209
|
-
"detail": {}
|
|
1281
|
+
"detail": {},
|
|
1282
|
+
"description": "Fires when the tooltip is shown. `event.detail.isActive` is `true`."
|
|
1210
1283
|
},
|
|
1211
1284
|
"close": {
|
|
1212
|
-
"detail": {}
|
|
1285
|
+
"detail": {},
|
|
1286
|
+
"description": "Fires when the tooltip is hidden. `event.detail.isActive` is `false`."
|
|
1213
1287
|
}
|
|
1214
1288
|
},
|
|
1215
1289
|
"cssProperties": {},
|
|
@@ -1248,7 +1322,8 @@
|
|
|
1248
1322
|
"subtle",
|
|
1249
1323
|
"strong"
|
|
1250
1324
|
],
|
|
1251
|
-
"default": "subtle"
|
|
1325
|
+
"default": "subtle",
|
|
1326
|
+
"description": "The alert emphasis. `strong` uses a filled background; pair contained buttons/links with their `inverted` prop."
|
|
1252
1327
|
},
|
|
1253
1328
|
"dismissed": {
|
|
1254
1329
|
"type": "boolean",
|
|
@@ -1258,7 +1333,8 @@
|
|
|
1258
1333
|
"properties": {
|
|
1259
1334
|
"iconAlert": {
|
|
1260
1335
|
"type": "string",
|
|
1261
|
-
"default": "undefined"
|
|
1336
|
+
"default": "undefined",
|
|
1337
|
+
"description": "Overrides the default status icon. Accepts a cre8 icon name."
|
|
1262
1338
|
},
|
|
1263
1339
|
"iconTitle": {
|
|
1264
1340
|
"type": "string",
|
|
@@ -1266,18 +1342,27 @@
|
|
|
1266
1342
|
},
|
|
1267
1343
|
"headerText": {
|
|
1268
1344
|
"type": "string",
|
|
1269
|
-
"default": "undefined"
|
|
1345
|
+
"default": "undefined",
|
|
1346
|
+
"description": "The alert heading text."
|
|
1270
1347
|
},
|
|
1271
1348
|
"ctaBody": {
|
|
1272
1349
|
"type": "string",
|
|
1273
|
-
"default": "undefined"
|
|
1350
|
+
"default": "undefined",
|
|
1351
|
+
"description": "Text content for the call-to-action area. Superseded by the `cta` slot when provided."
|
|
1274
1352
|
},
|
|
1275
1353
|
"notDismissible": {
|
|
1276
1354
|
"type": "boolean",
|
|
1277
1355
|
"description": "Dismissable property\n1) Adds the ability to close when toggled to true"
|
|
1278
1356
|
}
|
|
1279
1357
|
},
|
|
1280
|
-
"slots": {
|
|
1358
|
+
"slots": {
|
|
1359
|
+
"default": {
|
|
1360
|
+
"description": "The alert body content"
|
|
1361
|
+
},
|
|
1362
|
+
"cta": {
|
|
1363
|
+
"description": "Container for a call-to-action button or link"
|
|
1364
|
+
}
|
|
1365
|
+
},
|
|
1281
1366
|
"events": {},
|
|
1282
1367
|
"cssProperties": {},
|
|
1283
1368
|
"examples": [
|
|
@@ -1690,13 +1775,22 @@
|
|
|
1690
1775
|
"description": "The type of form control (text, checkbox, radio, etc.)"
|
|
1691
1776
|
}
|
|
1692
1777
|
},
|
|
1693
|
-
"slots": {
|
|
1778
|
+
"slots": {
|
|
1779
|
+
"fieldNote": {
|
|
1780
|
+
"description": "Container for optional field note content"
|
|
1781
|
+
}
|
|
1782
|
+
},
|
|
1694
1783
|
"events": {
|
|
1695
1784
|
"change": {
|
|
1696
|
-
"detail": {}
|
|
1785
|
+
"detail": {},
|
|
1786
|
+
"description": "Fires when the checkbox is toggled. `event.detail` is `{ name, value }`."
|
|
1787
|
+
}
|
|
1788
|
+
},
|
|
1789
|
+
"cssProperties": {
|
|
1790
|
+
"--cre8-border-radius-checkbox": {
|
|
1791
|
+
"description": "border radius of the checkbox box; falls back to --cre8-border-radius-small"
|
|
1697
1792
|
}
|
|
1698
1793
|
},
|
|
1699
|
-
"cssProperties": {},
|
|
1700
1794
|
"examples": []
|
|
1701
1795
|
},
|
|
1702
1796
|
{
|
|
@@ -1719,7 +1813,7 @@
|
|
|
1719
1813
|
"label": {
|
|
1720
1814
|
"type": "string",
|
|
1721
1815
|
"default": "Label",
|
|
1722
|
-
"description": "The
|
|
1816
|
+
"description": "The label text for the date picker field."
|
|
1723
1817
|
},
|
|
1724
1818
|
"max": {
|
|
1725
1819
|
"type": "string | number",
|
|
@@ -1819,7 +1913,11 @@
|
|
|
1819
1913
|
"type": "boolean"
|
|
1820
1914
|
}
|
|
1821
1915
|
},
|
|
1822
|
-
"slots": {
|
|
1916
|
+
"slots": {
|
|
1917
|
+
"fieldNote": {
|
|
1918
|
+
"description": "Container for optional field note content"
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1823
1921
|
"events": {},
|
|
1824
1922
|
"cssProperties": {},
|
|
1825
1923
|
"examples": []
|
|
@@ -1937,7 +2035,11 @@
|
|
|
1937
2035
|
"description": "Changes the component's treatment to represent a success state"
|
|
1938
2036
|
}
|
|
1939
2037
|
},
|
|
1940
|
-
"slots": {
|
|
2038
|
+
"slots": {
|
|
2039
|
+
"fieldNote": {
|
|
2040
|
+
"description": "Container for optional field note content"
|
|
2041
|
+
}
|
|
2042
|
+
},
|
|
1941
2043
|
"events": {},
|
|
1942
2044
|
"cssProperties": {},
|
|
1943
2045
|
"examples": []
|
|
@@ -2033,10 +2135,15 @@
|
|
|
2033
2135
|
"type": "boolean"
|
|
2034
2136
|
}
|
|
2035
2137
|
},
|
|
2036
|
-
"slots": {
|
|
2138
|
+
"slots": {
|
|
2139
|
+
"fieldNote": {
|
|
2140
|
+
"description": "Container for optional field note content"
|
|
2141
|
+
}
|
|
2142
|
+
},
|
|
2037
2143
|
"events": {
|
|
2038
2144
|
"selectedItemsChange": {
|
|
2039
|
-
"detail": {}
|
|
2145
|
+
"detail": {},
|
|
2146
|
+
"description": "Fires when a tag is added or removed. `event.detail.selectedItems` is the current selection."
|
|
2040
2147
|
}
|
|
2041
2148
|
},
|
|
2042
2149
|
"cssProperties": {},
|
|
@@ -2238,7 +2345,8 @@
|
|
|
2238
2345
|
},
|
|
2239
2346
|
"events": {
|
|
2240
2347
|
"change": {
|
|
2241
|
-
"detail": {}
|
|
2348
|
+
"detail": {},
|
|
2349
|
+
"description": "Fires when the selected option changes. `event.detail` is `{ name, value }`."
|
|
2242
2350
|
}
|
|
2243
2351
|
},
|
|
2244
2352
|
"cssProperties": {},
|
|
@@ -2477,6 +2585,7 @@
|
|
|
2477
2585
|
"type": "string",
|
|
2478
2586
|
"values": [
|
|
2479
2587
|
"bare",
|
|
2588
|
+
"compact",
|
|
2480
2589
|
"horizontal",
|
|
2481
2590
|
"horizontal-bare"
|
|
2482
2591
|
],
|
|
@@ -2633,6 +2742,10 @@
|
|
|
2633
2742
|
"imgAlt": {
|
|
2634
2743
|
"type": "string",
|
|
2635
2744
|
"description": "Image alt text"
|
|
2745
|
+
},
|
|
2746
|
+
"hasOverlay": {
|
|
2747
|
+
"type": "boolean",
|
|
2748
|
+
"description": "Renders a dark overlay between the background image and the content for legibility."
|
|
2636
2749
|
}
|
|
2637
2750
|
},
|
|
2638
2751
|
"slots": {
|
|
@@ -2758,6 +2871,9 @@
|
|
|
2758
2871
|
"slots": {
|
|
2759
2872
|
"default": {
|
|
2760
2873
|
"description": "The content of the section should go here.\nIt could be a cre8-text-passage, a cre8-card or any other block level html."
|
|
2874
|
+
},
|
|
2875
|
+
"header": {
|
|
2876
|
+
"description": "Custom header content, rendered in place of the `headline` property"
|
|
2761
2877
|
}
|
|
2762
2878
|
},
|
|
2763
2879
|
"events": {},
|
|
@@ -2782,6 +2898,10 @@
|
|
|
2782
2898
|
"imgAlt": {
|
|
2783
2899
|
"type": "string",
|
|
2784
2900
|
"description": "Image alt text"
|
|
2901
|
+
},
|
|
2902
|
+
"aspectRatio": {
|
|
2903
|
+
"type": "string",
|
|
2904
|
+
"description": "CSS aspect-ratio for the image (e.g. \"4/3\", \"16/9\", \"1\"). Defaults to natural image ratio."
|
|
2785
2905
|
}
|
|
2786
2906
|
},
|
|
2787
2907
|
"slots": {
|
|
@@ -2808,6 +2928,9 @@
|
|
|
2808
2928
|
"slots": {
|
|
2809
2929
|
"default": {
|
|
2810
2930
|
"description": "The page header content"
|
|
2931
|
+
},
|
|
2932
|
+
"titleAfter": {
|
|
2933
|
+
"description": "Content rendered after the heading text, inside the title element"
|
|
2811
2934
|
}
|
|
2812
2935
|
},
|
|
2813
2936
|
"events": {},
|
|
@@ -2828,7 +2951,8 @@
|
|
|
2828
2951
|
"description": "Icon name (this method of passing in svgs is to be deprecated)"
|
|
2829
2952
|
},
|
|
2830
2953
|
"svg": {
|
|
2831
|
-
"type": "string"
|
|
2954
|
+
"type": "string",
|
|
2955
|
+
"description": "Raw SVG markup to render. Preferred over `name`/sprite-path icons."
|
|
2832
2956
|
}
|
|
2833
2957
|
},
|
|
2834
2958
|
"properties": {
|
|
@@ -2988,6 +3112,12 @@
|
|
|
2988
3112
|
"slots": {
|
|
2989
3113
|
"default": {
|
|
2990
3114
|
"description": "The label for the navigation item"
|
|
3115
|
+
},
|
|
3116
|
+
"itemBefore": {
|
|
3117
|
+
"description": "Content rendered before the item label, such as an icon"
|
|
3118
|
+
},
|
|
3119
|
+
"itemAfter": {
|
|
3120
|
+
"description": "Content rendered after the item label, such as an icon"
|
|
2991
3121
|
}
|
|
2992
3122
|
},
|
|
2993
3123
|
"events": {},
|
|
@@ -3013,6 +3143,12 @@
|
|
|
3013
3143
|
"slots": {
|
|
3014
3144
|
"default": {
|
|
3015
3145
|
"description": "The header content"
|
|
3146
|
+
},
|
|
3147
|
+
"top": {
|
|
3148
|
+
"description": "Content rendered above the main header row"
|
|
3149
|
+
},
|
|
3150
|
+
"bottom": {
|
|
3151
|
+
"description": "Content rendered below the main header row"
|
|
3016
3152
|
}
|
|
3017
3153
|
},
|
|
3018
3154
|
"events": {},
|
|
@@ -3096,7 +3232,14 @@
|
|
|
3096
3232
|
"description": "Link with no underline"
|
|
3097
3233
|
}
|
|
3098
3234
|
},
|
|
3099
|
-
"slots": {
|
|
3235
|
+
"slots": {
|
|
3236
|
+
"default": {
|
|
3237
|
+
"description": "The link text content"
|
|
3238
|
+
},
|
|
3239
|
+
"badge": {
|
|
3240
|
+
"description": "Container for an optional badge displayed alongside the link"
|
|
3241
|
+
}
|
|
3242
|
+
},
|
|
3100
3243
|
"events": {},
|
|
3101
3244
|
"cssProperties": {},
|
|
3102
3245
|
"examples": []
|
|
@@ -3173,6 +3316,12 @@
|
|
|
3173
3316
|
"slots": {
|
|
3174
3317
|
"default": {
|
|
3175
3318
|
"description": "The default slot to put badges or other Components"
|
|
3319
|
+
},
|
|
3320
|
+
"itemBefore": {
|
|
3321
|
+
"description": "Content rendered before the link text, such as an icon"
|
|
3322
|
+
},
|
|
3323
|
+
"itemAfter": {
|
|
3324
|
+
"description": "Content rendered after the link text, such as an icon"
|
|
3176
3325
|
}
|
|
3177
3326
|
},
|
|
3178
3327
|
"events": {},
|
|
@@ -3232,7 +3381,8 @@
|
|
|
3232
3381
|
"type": "boolean"
|
|
3233
3382
|
},
|
|
3234
3383
|
"currentPage": {
|
|
3235
|
-
"type": "number"
|
|
3384
|
+
"type": "number",
|
|
3385
|
+
"description": "The currently active page (1-based). Setting it programmatically navigates the pagination."
|
|
3236
3386
|
},
|
|
3237
3387
|
"elementDefinitions": {
|
|
3238
3388
|
"type": "{ 'cre8-button': typeof Cre8Button; }"
|
|
@@ -3247,10 +3397,15 @@
|
|
|
3247
3397
|
"type": "number"
|
|
3248
3398
|
}
|
|
3249
3399
|
},
|
|
3250
|
-
"slots": {
|
|
3400
|
+
"slots": {
|
|
3401
|
+
"default": {
|
|
3402
|
+
"description": "Optional content rendered alongside the pagination controls"
|
|
3403
|
+
}
|
|
3404
|
+
},
|
|
3251
3405
|
"events": {
|
|
3252
3406
|
"pagination.click": {
|
|
3253
|
-
"detail": {}
|
|
3407
|
+
"detail": {},
|
|
3408
|
+
"description": "Fires when the page changes. `event.detail` is `{ buttonName, value }` where `value` is the new current page."
|
|
3254
3409
|
}
|
|
3255
3410
|
},
|
|
3256
3411
|
"cssProperties": {
|
|
@@ -3330,6 +3485,12 @@
|
|
|
3330
3485
|
"slots": {
|
|
3331
3486
|
"default": {
|
|
3332
3487
|
"description": "The label for the navigation item"
|
|
3488
|
+
},
|
|
3489
|
+
"itemBefore": {
|
|
3490
|
+
"description": "Content rendered before the item label, such as an icon"
|
|
3491
|
+
},
|
|
3492
|
+
"itemAfter": {
|
|
3493
|
+
"description": "Content rendered after the item label, such as an icon"
|
|
3333
3494
|
}
|
|
3334
3495
|
},
|
|
3335
3496
|
"events": {},
|
|
@@ -3372,7 +3533,8 @@
|
|
|
3372
3533
|
},
|
|
3373
3534
|
"events": {
|
|
3374
3535
|
"tabSelected": {
|
|
3375
|
-
"detail": {}
|
|
3536
|
+
"detail": {},
|
|
3537
|
+
"description": "Fires when the tab is clicked. `event.detail.index` is the tab's index."
|
|
3376
3538
|
}
|
|
3377
3539
|
},
|
|
3378
3540
|
"cssProperties": {},
|
|
@@ -3679,6 +3841,9 @@
|
|
|
3679
3841
|
"slots": {
|
|
3680
3842
|
"default": {
|
|
3681
3843
|
"description": "The component content"
|
|
3844
|
+
},
|
|
3845
|
+
"linkAfter": {
|
|
3846
|
+
"description": "Content rendered after the link text, such as an icon"
|
|
3682
3847
|
}
|
|
3683
3848
|
},
|
|
3684
3849
|
"events": {},
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmorrow/cre8-wc",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "cre8 Web Components is a library of presentational UI web components to be consumed by # web applications.",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "pnpm run build:custom-elements.json && pnpm run storybook",
|
|
8
8
|
"compile-styles": "npx tsx scripts/convert-scss-to-ts.ts",
|
|
9
|
-
"build": "rm -rf lib && pnpm run compile-styles && pnpm build:cdn && vite build && tsc && cp .storybook/custom-elements.json custom-elements.json && pnpm run build:react && pnpm run build:mcp-manifest",
|
|
9
|
+
"build": "rm -rf lib && pnpm run compile-styles && pnpm build:cdn && vite build && tsc && cp .storybook/custom-elements.json custom-elements.json && pnpm run build:react && pnpm run build:mcp-manifest && pnpm run build:react-manifest",
|
|
10
10
|
"build:mcp-manifest": "npx web-component-analyzer analyze \"components/*/*.ts\" --format json --outFile /tmp/wca-raw.json && npx tsx scripts/generate-mcp-manifest.ts",
|
|
11
|
+
"build:react-manifest": "npx tsx scripts/generate-react-manifest.ts",
|
|
11
12
|
"build:cdn": "rm -rf cdn && vite build --config vite.config.cdn.ts",
|
|
12
13
|
"build:react": "rm -rf react-wrappers/components react-wrappers/dist react-wrappers/index.ts && npx tsx scripts/generate-react-wrappers.ts && cd react-wrappers && npx tsc",
|
|
13
14
|
"build:a2ui": "pnpm run build:a2ui:catalog && pnpm run build:a2ui:compile",
|
|
@@ -49,7 +50,8 @@
|
|
|
49
50
|
"lib",
|
|
50
51
|
"cdn",
|
|
51
52
|
"a2ui",
|
|
52
|
-
"mcp-manifest.json"
|
|
53
|
+
"mcp-manifest.json",
|
|
54
|
+
"react-manifest.json"
|
|
53
55
|
],
|
|
54
56
|
"exports": {
|
|
55
57
|
".": {
|
|
@@ -79,11 +81,13 @@
|
|
|
79
81
|
},
|
|
80
82
|
"./global.d.ts": "./global.d.ts",
|
|
81
83
|
"./mcp-manifest.json": "./mcp-manifest.json",
|
|
84
|
+
"./react-manifest.json": "./react-manifest.json",
|
|
82
85
|
"./a2ui": {
|
|
83
86
|
"import": "./a2ui/index.js",
|
|
84
87
|
"types": "./a2ui/index.d.ts"
|
|
85
88
|
},
|
|
86
89
|
"./a2ui/catalog.json": "./a2ui/catalog.json",
|
|
90
|
+
"./a2ui/catalog-kg.json": "./a2ui/catalog-kg.json",
|
|
87
91
|
"./a2ui/*": {
|
|
88
92
|
"import": "./a2ui/*",
|
|
89
93
|
"types": "./a2ui/*"
|
|
@@ -115,6 +119,7 @@
|
|
|
115
119
|
"@lit-labs/cli": "^0.6.6",
|
|
116
120
|
"@mdx-js/react": "^3.1.1",
|
|
117
121
|
"@mdx-js/rollup": "^3.1.1",
|
|
122
|
+
"@open-wc/testing-helpers": "^3.0.1",
|
|
118
123
|
"@skypack/package-check": "^0.2.2",
|
|
119
124
|
"@storybook/addon-a11y": "10.0.6",
|
|
120
125
|
"@storybook/addon-docs": "10.0.6",
|
|
@@ -134,6 +139,7 @@
|
|
|
134
139
|
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
|
135
140
|
"@typescript-eslint/parser": "^8.46.3",
|
|
136
141
|
"@vitejs/plugin-react": "^5.2.0",
|
|
142
|
+
"@wc-toolkit/storybook-helpers": "^10.5.1",
|
|
137
143
|
"babel-jest": "^30.2.0",
|
|
138
144
|
"clone": "^2.1.2",
|
|
139
145
|
"css-parse": "2.0.0",
|
|
@@ -174,4 +180,4 @@
|
|
|
174
180
|
"*.ts": "eslint --cache --fix"
|
|
175
181
|
},
|
|
176
182
|
"customElements": ".storybook/custom-elements.json"
|
|
177
|
-
}
|
|
183
|
+
}
|