@warp-ds/elements 2.2.0-next.17 → 2.2.0-next.19

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,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@warp-ds/elements",
4
- "version": "2.2.0-next.16",
4
+ "version": "2.2.0-next.18",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -43,40 +43,6 @@
43
43
  "events": []
44
44
  }
45
45
  },
46
- {
47
- "name": "w-alert",
48
- "description": "Alert is an inline component used for displaying different types of messages.\n\nFor accessibility reasons, alert should appear close to the element that triggered it.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)\n---\n",
49
- "doc-url": "",
50
- "attributes": [
51
- {
52
- "name": "variant",
53
- "value": {
54
- "type": "'negative' | 'positive' | 'warning' | 'info'",
55
- "default": "'info'"
56
- }
57
- },
58
- {
59
- "name": "show",
60
- "value": { "type": "boolean", "default": "false" }
61
- },
62
- {
63
- "name": "role",
64
- "value": { "type": "string", "default": "'alert'" }
65
- }
66
- ],
67
- "events": [],
68
- "js": {
69
- "properties": [
70
- {
71
- "name": "variant",
72
- "type": "'negative' | 'positive' | 'warning' | 'info'"
73
- },
74
- { "name": "show", "type": "boolean" },
75
- { "name": "role", "type": "string" }
76
- ],
77
- "events": []
78
- }
79
- },
80
46
  {
81
47
  "name": "w-attention",
82
48
  "description": "\n---\n",
@@ -157,6 +123,40 @@
157
123
  "events": []
158
124
  }
159
125
  },
126
+ {
127
+ "name": "w-alert",
128
+ "description": "Alert is an inline component used for displaying different types of messages.\n\nFor accessibility reasons, alert should appear close to the element that triggered it.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)\n---\n",
129
+ "doc-url": "",
130
+ "attributes": [
131
+ {
132
+ "name": "variant",
133
+ "value": {
134
+ "type": "'negative' | 'positive' | 'warning' | 'info'",
135
+ "default": "'info'"
136
+ }
137
+ },
138
+ {
139
+ "name": "show",
140
+ "value": { "type": "boolean", "default": "false" }
141
+ },
142
+ {
143
+ "name": "role",
144
+ "value": { "type": "string", "default": "'alert'" }
145
+ }
146
+ ],
147
+ "events": [],
148
+ "js": {
149
+ "properties": [
150
+ {
151
+ "name": "variant",
152
+ "type": "'negative' | 'positive' | 'warning' | 'info'"
153
+ },
154
+ { "name": "show", "type": "boolean" },
155
+ { "name": "role", "type": "string" }
156
+ ],
157
+ "events": []
158
+ }
159
+ },
160
160
  {
161
161
  "name": "w-badge",
162
162
  "description": "`w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)\n---\n",
@@ -894,6 +894,331 @@
894
894
  ]
895
895
  }
896
896
  },
897
+ {
898
+ "name": "w-checkbox",
899
+ "description": "\n---\n\n\n### **Events:**\n - **change**\n\n### **Methods:**\n - **click()** - Simulates a click on the checkbox.\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox.\n- **blur()** - Removes focus from the checkbox.",
900
+ "doc-url": "",
901
+ "attributes": [
902
+ { "name": "title", "value": { "type": "string", "default": "''" } },
903
+ {
904
+ "name": "name",
905
+ "description": "The name of the checkbox, submitted as a name/value pair with form data.",
906
+ "value": { "type": "string", "default": "''" }
907
+ },
908
+ {
909
+ "name": "value",
910
+ "description": "The value of the checkbox, submitted as a name/value pair with form data.",
911
+ "value": { "type": "string | null" }
912
+ },
913
+ {
914
+ "name": "size",
915
+ "description": "The checkbox's size.",
916
+ "value": {
917
+ "type": "'small' | 'medium' | 'large'",
918
+ "default": "'medium'"
919
+ }
920
+ },
921
+ {
922
+ "name": "disabled",
923
+ "description": "Disables the checkbox.",
924
+ "value": { "type": "boolean", "default": "false" }
925
+ },
926
+ {
927
+ "name": "indeterminate",
928
+ "description": "Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\nall/none\" behavior when associated checkboxes have a mix of checked and unchecked states.",
929
+ "value": { "type": "boolean", "default": "false" }
930
+ },
931
+ {
932
+ "name": "checked",
933
+ "description": "The default value of the form control. Primarily used for resetting the form control.",
934
+ "value": { "type": "boolean" }
935
+ },
936
+ {
937
+ "name": "form",
938
+ "description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
939
+ "value": { "type": "null", "default": "null" }
940
+ },
941
+ {
942
+ "name": "required",
943
+ "description": "Makes the checkbox a required field.",
944
+ "value": { "type": "boolean", "default": "false" }
945
+ },
946
+ {
947
+ "name": "hint",
948
+ "description": "The checkbox's hint. If you need to display HTML, use the `hint` slot instead.",
949
+ "value": { "type": "string", "default": "''" }
950
+ }
951
+ ],
952
+ "events": [{ "name": "change", "type": "Event" }],
953
+ "js": {
954
+ "properties": [
955
+ { "name": "input", "type": "HTMLInputElement" },
956
+ { "name": "title", "type": "string" },
957
+ {
958
+ "name": "name",
959
+ "description": "The name of the checkbox, submitted as a name/value pair with form data.",
960
+ "type": "string"
961
+ },
962
+ {
963
+ "name": "value",
964
+ "description": "The value of the checkbox, submitted as a name/value pair with form data.",
965
+ "type": "string | null"
966
+ },
967
+ {
968
+ "name": "size",
969
+ "description": "The checkbox's size.",
970
+ "type": "'small' | 'medium' | 'large'"
971
+ },
972
+ {
973
+ "name": "disabled",
974
+ "description": "Disables the checkbox.",
975
+ "type": "boolean"
976
+ },
977
+ {
978
+ "name": "indeterminate",
979
+ "description": "Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\nall/none\" behavior when associated checkboxes have a mix of checked and unchecked states.",
980
+ "type": "boolean"
981
+ },
982
+ {
983
+ "name": "checked",
984
+ "description": "Draws the checkbox in a checked state.",
985
+ "type": "boolean"
986
+ },
987
+ {
988
+ "name": "defaultChecked",
989
+ "description": "The default value of the form control. Primarily used for resetting the form control.",
990
+ "type": "boolean"
991
+ },
992
+ {
993
+ "name": "form",
994
+ "description": "By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.",
995
+ "type": "null"
996
+ },
997
+ {
998
+ "name": "required",
999
+ "description": "Makes the checkbox a required field.",
1000
+ "type": "boolean"
1001
+ },
1002
+ {
1003
+ "name": "hint",
1004
+ "description": "The checkbox's hint. If you need to display HTML, use the `hint` slot instead.",
1005
+ "type": "string"
1006
+ }
1007
+ ],
1008
+ "events": [{ "name": "change", "type": "Event" }]
1009
+ }
1010
+ },
1011
+ {
1012
+ "name": "w-radio",
1013
+ "description": "\n---\n",
1014
+ "doc-url": "",
1015
+ "attributes": [
1016
+ {
1017
+ "name": "form",
1018
+ "description": "The string pointing to a form's id.",
1019
+ "value": { "type": "string | null", "default": "null" }
1020
+ },
1021
+ {
1022
+ "name": "value",
1023
+ "description": "The radio's value. When selected, the radio group will receive this value.",
1024
+ "value": { "type": "string" }
1025
+ },
1026
+ {
1027
+ "name": "appearance",
1028
+ "description": "The radio's value. When selected, the radio group will receive this value.",
1029
+ "value": {
1030
+ "type": "'default' | 'button' | 'clickable'",
1031
+ "default": "'default'"
1032
+ }
1033
+ },
1034
+ {
1035
+ "name": "size",
1036
+ "description": "The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this\nattribute can typically be omitted.",
1037
+ "value": {
1038
+ "type": "'small' | 'medium' | 'large'",
1039
+ "default": "'medium'"
1040
+ }
1041
+ },
1042
+ {
1043
+ "name": "disabled",
1044
+ "description": "Disables the radio.",
1045
+ "value": { "type": "boolean", "default": "false" }
1046
+ }
1047
+ ],
1048
+ "events": [],
1049
+ "js": {
1050
+ "properties": [
1051
+ { "name": "checked", "type": "boolean" },
1052
+ {
1053
+ "name": "form",
1054
+ "description": "The string pointing to a form's id.",
1055
+ "type": "string | null"
1056
+ },
1057
+ {
1058
+ "name": "value",
1059
+ "description": "The radio's value. When selected, the radio group will receive this value.",
1060
+ "type": "string"
1061
+ },
1062
+ {
1063
+ "name": "appearance",
1064
+ "description": "The radio's value. When selected, the radio group will receive this value.",
1065
+ "type": "'default' | 'button' | 'clickable'"
1066
+ },
1067
+ {
1068
+ "name": "size",
1069
+ "description": "The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this\nattribute can typically be omitted.",
1070
+ "type": "'small' | 'medium' | 'large'"
1071
+ },
1072
+ {
1073
+ "name": "disabled",
1074
+ "description": "Disables the radio.",
1075
+ "type": "boolean"
1076
+ }
1077
+ ],
1078
+ "events": []
1079
+ }
1080
+ },
1081
+ {
1082
+ "name": "w-radio-group",
1083
+ "description": "\n---\n\n\n### **Events:**\n - **input**\n- **change**\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the radio group.\n\n### **Slots:**\n - **label** - Alternative to the `label` attribute should you need custom HTML.",
1084
+ "doc-url": "",
1085
+ "attributes": [
1086
+ {
1087
+ "name": "label",
1088
+ "description": "The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
1089
+ "value": { "type": "string", "default": "''" }
1090
+ },
1091
+ {
1092
+ "name": "hint",
1093
+ "description": "The radio groups's hint. If you need to display HTML, use the `hint` slot instead.",
1094
+ "value": { "type": "string", "default": "''" }
1095
+ },
1096
+ {
1097
+ "name": "name",
1098
+ "description": "The name of the radio group, submitted as a name/value pair with form data.",
1099
+ "value": { "type": "string | null", "default": "null" }
1100
+ },
1101
+ {
1102
+ "name": "disabled",
1103
+ "description": "Disables the radio group and all child radios.",
1104
+ "value": { "type": "boolean", "default": "false" }
1105
+ },
1106
+ {
1107
+ "name": "orientation",
1108
+ "description": "The orientation in which to show radio items.",
1109
+ "value": {
1110
+ "type": "'horizontal' | 'vertical'",
1111
+ "default": "'vertical'"
1112
+ }
1113
+ },
1114
+ {
1115
+ "name": "value",
1116
+ "description": "The default value of the form control. Primarily used for resetting the form control.",
1117
+ "value": { "type": "string | null" }
1118
+ },
1119
+ {
1120
+ "name": "size",
1121
+ "description": "The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden.",
1122
+ "value": {
1123
+ "type": "'small' | 'medium' | 'large'",
1124
+ "default": "'medium'"
1125
+ }
1126
+ },
1127
+ {
1128
+ "name": "required",
1129
+ "description": "Ensures a child radio is checked before allowing the containing form to submit.",
1130
+ "value": { "type": "boolean", "default": "false" }
1131
+ },
1132
+ {
1133
+ "name": "with-label",
1134
+ "description": "Used for SSR. if true, will show slotted label on initial render.",
1135
+ "value": { "type": "boolean", "default": "false" }
1136
+ },
1137
+ {
1138
+ "name": "with-hint",
1139
+ "description": "Used for SSR. if true, will show slotted hint on initial render.",
1140
+ "value": { "type": "boolean", "default": "false" }
1141
+ }
1142
+ ],
1143
+ "slots": [
1144
+ {
1145
+ "name": "label",
1146
+ "description": "Alternative to the `label` attribute should you need custom HTML."
1147
+ }
1148
+ ],
1149
+ "events": [
1150
+ { "name": "input", "type": "InputEvent" },
1151
+ { "name": "change", "type": "Event" }
1152
+ ],
1153
+ "js": {
1154
+ "properties": [
1155
+ { "name": "hasRadioButtons", "type": "boolean" },
1156
+ { "name": "defaultSlot", "type": "HTMLSlotElement" },
1157
+ {
1158
+ "name": "label",
1159
+ "description": "The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot\ninstead.",
1160
+ "type": "string"
1161
+ },
1162
+ {
1163
+ "name": "hint",
1164
+ "description": "The radio groups's hint. If you need to display HTML, use the `hint` slot instead.",
1165
+ "type": "string"
1166
+ },
1167
+ {
1168
+ "name": "name",
1169
+ "description": "The name of the radio group, submitted as a name/value pair with form data.",
1170
+ "type": "string | null"
1171
+ },
1172
+ {
1173
+ "name": "disabled",
1174
+ "description": "Disables the radio group and all child radios.",
1175
+ "type": "boolean"
1176
+ },
1177
+ {
1178
+ "name": "orientation",
1179
+ "description": "The orientation in which to show radio items.",
1180
+ "type": "'horizontal' | 'vertical'"
1181
+ },
1182
+ {
1183
+ "name": "value",
1184
+ "description": "The current value of the radio group, submitted as a name/value pair with form data."
1185
+ },
1186
+ {
1187
+ "name": "defaultValue",
1188
+ "description": "The default value of the form control. Primarily used for resetting the form control.",
1189
+ "type": "string | null"
1190
+ },
1191
+ {
1192
+ "name": "size",
1193
+ "description": "The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden.",
1194
+ "type": "'small' | 'medium' | 'large'"
1195
+ },
1196
+ {
1197
+ "name": "required",
1198
+ "description": "Ensures a child radio is checked before allowing the containing form to submit.",
1199
+ "type": "boolean"
1200
+ },
1201
+ {
1202
+ "name": "withLabel",
1203
+ "description": "Used for SSR. if true, will show slotted label on initial render.",
1204
+ "type": "boolean"
1205
+ },
1206
+ {
1207
+ "name": "withHint",
1208
+ "description": "Used for SSR. if true, will show slotted hint on initial render.",
1209
+ "type": "boolean"
1210
+ },
1211
+ {
1212
+ "name": "validationTarget",
1213
+ "description": "We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on\nthe first radio element."
1214
+ }
1215
+ ],
1216
+ "events": [
1217
+ { "name": "input", "type": "InputEvent" },
1218
+ { "name": "change", "type": "Event" }
1219
+ ]
1220
+ }
1221
+ },
897
1222
  {
898
1223
  "name": "w-select",
899
1224
  "description": "A dropdown component for selecting a single value.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)\n---\n",
@@ -1274,6 +1599,81 @@
1274
1599
  ],
1275
1600
  "events": [{ "name": "change", "type": "CustomEvent" }]
1276
1601
  }
1602
+ },
1603
+ {
1604
+ "name": "w-tabs",
1605
+ "description": "Tabs are used to organize content by grouping similar information on the same page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)\n---\n\n\n### **Events:**\n - **change**",
1606
+ "doc-url": "",
1607
+ "attributes": [
1608
+ {
1609
+ "name": "active",
1610
+ "value": { "type": "string", "default": "''" }
1611
+ },
1612
+ {
1613
+ "name": "tab-class",
1614
+ "value": { "type": "string", "default": "''" }
1615
+ }
1616
+ ],
1617
+ "events": [{ "name": "change", "type": "CustomEvent" }],
1618
+ "js": {
1619
+ "properties": [
1620
+ { "name": "active", "type": "string" },
1621
+ { "name": "tabClass", "type": "string" }
1622
+ ],
1623
+ "events": [{ "name": "change", "type": "CustomEvent" }]
1624
+ }
1625
+ },
1626
+ {
1627
+ "name": "w-tab",
1628
+ "description": "Individual tab component used within w-tabs container.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)\n---\n",
1629
+ "doc-url": "",
1630
+ "attributes": [
1631
+ { "name": "name", "value": { "type": "string" } },
1632
+ { "name": "label", "value": { "type": "string", "default": "''" } },
1633
+ {
1634
+ "name": "active",
1635
+ "value": { "type": "boolean", "default": "false" }
1636
+ },
1637
+ {
1638
+ "name": "over",
1639
+ "value": { "type": "boolean", "default": "false" }
1640
+ },
1641
+ {
1642
+ "name": "tab-class",
1643
+ "value": { "type": "string", "default": "''" }
1644
+ }
1645
+ ],
1646
+ "events": [],
1647
+ "js": {
1648
+ "properties": [
1649
+ { "name": "name", "type": "string" },
1650
+ { "name": "label", "type": "string" },
1651
+ { "name": "active", "type": "boolean" },
1652
+ { "name": "over", "type": "boolean" },
1653
+ { "name": "tabClass", "type": "string" }
1654
+ ],
1655
+ "events": []
1656
+ }
1657
+ },
1658
+ {
1659
+ "name": "w-tab-panel",
1660
+ "description": "Tab panel component that holds content for individual tabs.\nEach tab panel should have a name that matches a corresponding tab.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)\n---\n",
1661
+ "doc-url": "",
1662
+ "attributes": [
1663
+ { "name": "name", "value": { "type": "string" } },
1664
+ {
1665
+ "name": "hidden",
1666
+ "value": { "type": "boolean", "default": "true" }
1667
+ }
1668
+ ],
1669
+ "events": [],
1670
+ "js": {
1671
+ "properties": [
1672
+ { "name": "name", "type": "string" },
1673
+ { "name": "hidden", "type": "boolean" }
1674
+ ],
1675
+ "events": []
1676
+ }
1277
1677
  }
1278
1678
  ]
1279
1679
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "2.2.0-next.17",
4
+ "version": "2.2.0-next.19",
5
5
  "packageManager": "pnpm@10.15.1",
6
6
  "description": "Custom elements for Warp",
7
7
  "exports": {
@@ -48,14 +48,13 @@
48
48
  "build:entrypoint": "node ./build/entrypoint.js",
49
49
  "build:storybook": "pnpm run messages:compile && tsc && pnpm run build:manifest && pnpm run build:entrypoint && storybook build && pnpm run build:polyfill && touch ./storybook-static/.nojekyll",
50
50
  "build:manifest": "custom-elements-manifest analyze --config .cem/custom-element-manifest.config.js",
51
- "build": "rimraf dist && rimraf eik && pnpm messages:compile && tsc && pnpm build:manifest && pnpm build:editor && pnpm build:components && pnpm run build:cloak && pnpm build:bundle && pnpm build:types && pnpm run build:polyfill",
51
+ "build": "rimraf dist && rimraf eik && pnpm messages:compile && tsc && pnpm build:manifest && pnpm build:editor && pnpm build:components && pnpm run build:cloak && pnpm build:bundle && pnpm run build:polyfill",
52
52
  "build:cloak": "node ./build/cloak.js",
53
53
  "build:components": "node ./build/components.js",
54
54
  "build:editor": "node ./build/editor.js",
55
55
  "build:styles": "node ./build/styles.js",
56
56
  "build:polyfill": "node ./build/polyfill.js",
57
57
  "build:bundle": "tsc --project tsconfig.json --outDir .tmp --declaration false --sourceMap true && rollup -c ./build/bundle.js && rimraf .tmp",
58
- "build:types": "cp ./index.d.ts ./dist/index.d.ts",
59
58
  "commit": "cz",
60
59
  "dev": "pnpm run storybook",
61
60
  "storybook": "storybook dev --port 63900",
@@ -100,6 +99,7 @@
100
99
  "@warp-ds/eslint-config": "1.1.0",
101
100
  "@warp-ds/uno": "2.1.0",
102
101
  "@wc-toolkit/cem-validator": "^1.0.3",
102
+ "@wc-toolkit/jsx-types": "^1.4.2",
103
103
  "@wc-toolkit/storybook-helpers": "^9.0.1",
104
104
  "@wc-toolkit/type-parser": "^1.2.0",
105
105
  "custom-element-jet-brains-integration": "^1.7.0",