@warp-ds/elements 2.2.0-next.30 → 2.2.0-next.32

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 (38) hide show
  1. package/README.md +0 -17
  2. package/dist/custom-elements.json +94 -240
  3. package/dist/index.d.ts +9 -9
  4. package/dist/packages/affix/index.d.ts +0 -12
  5. package/dist/packages/affix/index.js +1 -1
  6. package/dist/packages/affix/index.js.map +2 -2
  7. package/dist/packages/attention/index.d.ts +0 -26
  8. package/dist/packages/attention/index.js +1 -1
  9. package/dist/packages/attention/index.js.map +2 -2
  10. package/dist/packages/breadcrumbs/index.d.ts +0 -7
  11. package/dist/packages/breadcrumbs/index.js +1 -1
  12. package/dist/packages/breadcrumbs/index.js.map +2 -2
  13. package/dist/packages/button/index.d.ts +0 -61
  14. package/dist/packages/button/index.js +1 -1
  15. package/dist/packages/button/index.js.map +2 -2
  16. package/dist/packages/card/index.d.ts +0 -12
  17. package/dist/packages/card/index.js +1 -1
  18. package/dist/packages/card/index.js.map +2 -2
  19. package/dist/packages/expandable/index.d.ts +0 -28
  20. package/dist/packages/expandable/index.js +1 -1
  21. package/dist/packages/expandable/index.js.map +2 -2
  22. package/dist/packages/modal/index.js +2717 -5
  23. package/dist/packages/modal/index.js.map +7 -0
  24. package/dist/packages/pill/index.d.ts +0 -12
  25. package/dist/packages/pill/index.js +1 -1
  26. package/dist/packages/pill/index.js.map +2 -2
  27. package/dist/packages/select/index.d.ts +0 -20
  28. package/dist/packages/select/index.js +4 -4
  29. package/dist/packages/select/index.js.map +2 -2
  30. package/dist/packages/textfield/index.d.ts +0 -20
  31. package/dist/packages/textfield/index.js +1 -1
  32. package/dist/packages/textfield/index.js.map +2 -2
  33. package/dist/packages/toast/index.js +2483 -3
  34. package/dist/packages/toast/index.js.map +7 -0
  35. package/dist/web-types.json +1 -1
  36. package/package.json +4 -4
  37. package/dist/vscode.css-custom-data.json +0 -6
  38. package/dist/vscode.html-custom-data.json +0 -296
package/README.md CHANGED
@@ -216,23 +216,6 @@ and use the component
216
216
 
217
217
  you should get intellisense when using Warp Elements.
218
218
 
219
- #### CustomData fallback
220
-
221
- `@warp-ds/elements` also includes [Custom HTML and CSS data for Visual Studio Code](https://code.visualstudio.com/blogs/2020/02/24/custom-data-format).
222
-
223
- If you can't get the Web Components Language Server to work, add the following snippet to `.vscode/settings.json`, then restart VS Code.
224
-
225
- ```json
226
- {
227
- "html.customData": [
228
- "./node_modules/@warp-ds/elements/dist/vscode.html-custom-data.json"
229
- ],
230
- "css.customData": [
231
- "./node_modules/@warp-ds/elements/dist/vscode.css-custom-data.json"
232
- ]
233
- }
234
- ```
235
-
236
219
  #### JetBrains products
237
220
 
238
221
  We ship `web-types.json` which should get picked up automatically by JetBrains IDEA and similar products.
@@ -6,22 +6,6 @@
6
6
  "kind": "javascript-module",
7
7
  "path": "packages/affix/index.ts",
8
8
  "declarations": [
9
- {
10
- "kind": "variable",
11
- "name": "ccSuffix",
12
- "type": {
13
- "text": "object"
14
- },
15
- "default": "{ wrapper: prefixSuffixWrapper + 'right-0', wrapperWithLabel: 'w-max pr-12', wrapperWithIcon: 'w-40', label: 'antialiased block relative cursor-default pb-0 font-bold text-xs s-text', }"
16
- },
17
- {
18
- "kind": "variable",
19
- "name": "ccPrefix",
20
- "type": {
21
- "text": "object"
22
- },
23
- "default": "{ wrapper: prefixSuffixWrapper + 'left-0', wrapperWithLabel: 'w-max pl-12', wrapperWithIcon: 'w-40', label: 'antialiased block relative cursor-default pb-0 font-bold text-xs s-text', }"
24
- },
25
9
  {
26
10
  "kind": "class",
27
11
  "description": "This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)",
@@ -109,22 +93,6 @@
109
93
  }
110
94
  ],
111
95
  "exports": [
112
- {
113
- "kind": "js",
114
- "name": "ccSuffix",
115
- "declaration": {
116
- "name": "ccSuffix",
117
- "module": "packages/affix/index.ts"
118
- }
119
- },
120
- {
121
- "kind": "js",
122
- "name": "ccPrefix",
123
- "declaration": {
124
- "name": "ccPrefix",
125
- "module": "packages/affix/index.ts"
126
- }
127
- },
128
96
  {
129
97
  "kind": "custom-element-definition",
130
98
  "name": "w-affix",
@@ -248,14 +216,6 @@
248
216
  "kind": "javascript-module",
249
217
  "path": "packages/button/index.ts",
250
218
  "declarations": [
251
- {
252
- "kind": "variable",
253
- "name": "ccButton",
254
- "type": {
255
- "text": "object"
256
- },
257
- "default": "{ // Buttontypes secondary: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`, // .button--secondary, .button--default, .button secondaryHref: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonColors.secondary}`, secondaryDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`, secondarySmall: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonColors.secondary}`, secondarySmallDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.isDisabled}`, secondaryQuiet: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`, secondaryQuietDisabled: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`, secondarySmallQuiet: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`, secondarySmallQuietDisabled: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`, secondaryLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonTypes.secondary} ${buttonVariants.inProgress}`, secondarySmallLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonTypes.secondary} ${buttonVariants.inProgress}`, secondarySmallQuietLoading: `${buttonTextSizes.xsmall} ${buttonSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress}`, secondaryQuietLoading: `${buttonSizes.medium} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`, primary: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.primary} ${buttonColors.primary}`, // .button--primary, .button--cta primaryDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.isDisabled} ${buttonTypes.primary}`, primarySmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.primary} ${buttonColors.primary}`, primarySmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.isDisabled} ${buttonTypes.primary} `, primaryQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonColors.quiet}`, primaryQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`, primarySmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonColors.quiet}`, primarySmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.isDisabled}`, primaryLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonTypes.primary}`, primarySmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.primary}`, primarySmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.quiet} ${buttonVariants.inProgress} ${buttonTypes.primary}`, primaryQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.quiet} ${buttonVariants.inProgress}`, utility: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonColors.utility}`, // .button--utility utilityDisabled: `${buttonSizes.utility} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.isDisabled}`, utilityQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`, // .button--utility-flat utilityQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`, utilitySmall: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonColors.utility}`, utilitySmallDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.isDisabled}`, utilitySmallQuiet: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonColors.utilityQuiet}`, utilitySmallQuietDisabled: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.utilityQuiet} ${buttonVariants.isDisabled}`, utilityLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.utility} ${buttonVariants.inProgress}`, utilitySmallLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonTypes.utility} ${buttonVariants.inProgress}`, utilityQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`, utilitySmallQuietLoading: `${buttonSizes.smallUtility} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonVariants.utilityQuiet}`, negative: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonColors.destructive}`, // .button--destructive negativeDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.isDisabled}`, negativeQuiet: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`, // .button--destructive-flat negativeQuietDisabled: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet}${buttonVariants.isDisabled}`, negativeSmall: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonColors.destructive}`, negativeSmallDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonTypes.negative} ${buttonVariants.isDisabled}`, negativeSmallQuiet: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonColors.negativeQuiet}`, negativeSmallQuietDisabled: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.isDisabled}`, negativeLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonTypes.negative} ${buttonVariants.inProgress}`, negativeSmallLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.inProgress} ${buttonTypes.negative}`, negativeQuietLoading: `${buttonSizes.large} ${buttonTextSizes.medium} ${buttonVariants.negativeQuiet} ${buttonTypes.negative} ${buttonVariants.inProgress}`, negativeSmallQuietLoading: `${buttonSizes.small} ${buttonTextSizes.xsmall} ${buttonVariants.negativeQuiet} ${buttonVariants.inProgress}`, pill: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonColors.pill}`, // .button--pill pillSmall: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonColors.pill}`, pillLoading: `${buttonSizes.pill} ${buttonTextSizes.medium} ${buttonTypes.pill} ${buttonVariants.inProgress}`, pillSmallLoading: `${buttonSizes.pillSmall} ${buttonTextSizes.xsmall} ${buttonTypes.pill} ${buttonVariants.inProgress}`, link: `${buttonSizes.link} ${buttonTextSizes.medium} ${buttonTypes.link}`, linkSmall: `${buttonSizes.link} ${buttonTextSizes.xsmall} ${buttonTypes.link}`, linkAsButton: 'inline-block active:no-underline hover:no-underline focus:no-underline text-center', a11y: 'sr-only', fullWidth: 'w-full max-w-full', contentWidth: 'max-w-max', }"
258
- },
259
219
  {
260
220
  "kind": "class",
261
221
  "description": "Buttons are used to perform actions, widh different visuals for different needs.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)",
@@ -518,14 +478,6 @@
518
478
  }
519
479
  ],
520
480
  "exports": [
521
- {
522
- "kind": "js",
523
- "name": "ccButton",
524
- "declaration": {
525
- "name": "ccButton",
526
- "module": "packages/button/index.ts"
527
- }
528
- },
529
481
  {
530
482
  "kind": "custom-element-definition",
531
483
  "name": "w-button",
@@ -548,14 +500,6 @@
548
500
  "kind": "javascript-module",
549
501
  "path": "packages/attention/index.ts",
550
502
  "declarations": [
551
- {
552
- "kind": "variable",
553
- "name": "ccAttention",
554
- "type": {
555
- "text": "object"
556
- },
557
- "default": "{ base: 'border-2 relative flex items-center', tooltip: 's-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted-static rounded-4 py-6 px-8', callout: 'bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8', highlight: 'bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0', popover: 'bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0', arrowBase: 'absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform', arrowDirectionLeftStart: '-left-[8px]', arrowDirectionLeft: '-left-[8px]', arrowDirectionLeftEnd: '-left-[8px]', arrowDirectionRightStart: '-right-[8px]', arrowDirectionRight: '-right-[8px]', arrowDirectionRightEnd: '-right-[8px]', arrowDirectionBottomStart: '-bottom-[8px]', arrowDirectionBottom: '-bottom-[8px]', arrowDirectionBottomEnd: '-bottom-[8px]', arrowDirectionTopStart: '-top-[8px]', arrowDirectionTop: '-top-[8px]', arrowDirectionTopEnd: '-top-[8px]', arrowTooltip: 's-bg-inverted border-[--w-s-color-background-inverted]', arrowCallout: 'bg-[--w-color-callout-background] border-[--w-color-callout-border]', arrowPopover: 'bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]', arrowHighlight: 'bg-[--w-color-callout-background] border-[--w-color-callout-border]', content: 'last-child:mb-0', notCallout: 'absolute z-50', }"
558
- },
559
503
  {
560
504
  "kind": "class",
561
505
  "description": "",
@@ -872,14 +816,6 @@
872
816
  }
873
817
  ],
874
818
  "exports": [
875
- {
876
- "kind": "js",
877
- "name": "ccAttention",
878
- "declaration": {
879
- "name": "ccAttention",
880
- "module": "packages/attention/index.ts"
881
- }
882
- },
883
819
  {
884
820
  "kind": "custom-element-definition",
885
821
  "name": "w-attention",
@@ -1098,14 +1034,6 @@
1098
1034
  "kind": "javascript-module",
1099
1035
  "path": "packages/breadcrumbs/index.ts",
1100
1036
  "declarations": [
1101
- {
1102
- "kind": "variable",
1103
- "name": "ccBreadcrumbs",
1104
- "type": {
1105
- "text": "object"
1106
- },
1107
- "default": "{ wrapper: 'flex space-x-8', text: 's-text', link: 's-text-link', separator: 'select-none s-icon', a11y: 'sr-only', }"
1108
- },
1109
1037
  {
1110
1038
  "kind": "class",
1111
1039
  "description": "Breadcrumbs show the navigation structure for the current location.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)",
@@ -1140,14 +1068,6 @@
1140
1068
  }
1141
1069
  ],
1142
1070
  "exports": [
1143
- {
1144
- "kind": "js",
1145
- "name": "ccBreadcrumbs",
1146
- "declaration": {
1147
- "name": "ccBreadcrumbs",
1148
- "module": "packages/breadcrumbs/index.ts"
1149
- }
1150
- },
1151
1071
  {
1152
1072
  "kind": "custom-element-definition",
1153
1073
  "name": "w-breadcrumbs",
@@ -1170,14 +1090,6 @@
1170
1090
  "kind": "javascript-module",
1171
1091
  "path": "packages/card/index.ts",
1172
1092
  "declarations": [
1173
- {
1174
- "kind": "variable",
1175
- "name": "ccCard",
1176
- "type": {
1177
- "text": "object"
1178
- },
1179
- "default": "{ base: 'cursor-pointer overflow-hidden relative transition-all', shadow: 'group rounded-8 s-surface-elevated-200 hover:s-surface-elevated-200-hover active:s-surface-elevated-200-active', selected: '!s-bg-selected !hover:s-bg-selected-hover !active:s-bg-selected-active', outline: 'absolute border-2 rounded-8 inset-0 transition-all', outlineUnselected: 'border-transparent group-active:s-border-active', outlineSelected: 's-border-selected group-hover:s-border-selected-hover group-active:s-border-selected-active', flat: 'border-2 rounded-4', flatUnselected: 's-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active', flatSelected: 's-bg-selected hover:s-bg-selected-hover active:s-bg-selected-active s-border-selected hover:s-border-selected-hover active:s-border-selected-active', a11y: 'sr-only', }"
1180
- },
1181
1093
  {
1182
1094
  "kind": "class",
1183
1095
  "description": "Card is a layout component used for separating content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)",
@@ -1268,14 +1180,6 @@
1268
1180
  }
1269
1181
  ],
1270
1182
  "exports": [
1271
- {
1272
- "kind": "js",
1273
- "name": "ccCard",
1274
- "declaration": {
1275
- "name": "ccCard",
1276
- "module": "packages/card/index.ts"
1277
- }
1278
- },
1279
1183
  {
1280
1184
  "kind": "custom-element-definition",
1281
1185
  "name": "w-card",
@@ -1298,22 +1202,6 @@
1298
1202
  "kind": "javascript-module",
1299
1203
  "path": "packages/expandable/index.ts",
1300
1204
  "declarations": [
1301
- {
1302
- "kind": "variable",
1303
- "name": "ccBox",
1304
- "type": {
1305
- "text": "object"
1306
- },
1307
- "default": "{ base: 'group block relative break-words last-child:mb-0 px-16 rounded-8', // Relative here enables w-clickable bleed: '-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8', // We target L and R to override the default rounded-8 info: 's-bg-info-subtle', neutral: 's-surface-sunken', bordered: 'border-2 s-border s-bg', }"
1308
- },
1309
- {
1310
- "kind": "variable",
1311
- "name": "ccExpandable",
1312
- "type": {
1313
- "text": "object"
1314
- },
1315
- "default": "{ wrapper: 'will-change-height s-text py-16', box: 's-bg-subtle hover:s-bg-subtle-hover active:s-bg-subtle-active py-0 px-0 group block relative break-words last-child:mb-0 rounded-8', bleed: '-mx-16 rounded-l-0 rounded-r-0 sm:mx-0 sm:rounded-8', chevron: 'inline-block align-middle s-icon', chevronNonBox: 'ml-8', chevronTransform: 'transform transition-transform transform-gpu ease-in-out', chevronExpand: '-rotate-180', chevronCollapse: 'rotate-180', // These are web component specific classes, using the ::part-selector: elementsChevronDownTransform: 'part-[w-icon-chevron-down-16-part]:transform part-[w-icon-chevron-down-16-part]:transition-transform part-[w-icon-chevron-down-16-part]:transform-gpu part-[w-icon-chevron-down-16-part]:ease-in-out', elementsChevronUpTransform: 'part-[w-icon-chevron-up-16-part]:transform part-[w-icon-chevron-up-16-part]:transition-transform part-[w-icon-chevron-up-16-part]:transform-gpu part-[w-icon-chevron-up-16-part]:ease-in-out', elementsChevronExpand: 'part-[w-icon-chevron-down-16-part]:-rotate-180', elementsChevronCollapse: 'part-[w-icon-chevron-up-16-part]:rotate-180', expansion: 'overflow-hidden', expansionNotExpanded: 'h-0 invisible', button: 'focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 hover:underline focus-visible:underline', buttonBox: 'w-full text-left relative inline-flex items-center justify-between group relative break-words last-child:mb-0 px-16 rounded-8', contentWithTitle: 'pt-0', title: 'flex w-full justify-between items-center', titleType: 't4', }"
1316
- },
1317
1205
  {
1318
1206
  "kind": "class",
1319
1207
  "description": "Expandable is a layout component used for creating expandable content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)",
@@ -1555,22 +1443,6 @@
1555
1443
  }
1556
1444
  ],
1557
1445
  "exports": [
1558
- {
1559
- "kind": "js",
1560
- "name": "ccBox",
1561
- "declaration": {
1562
- "name": "ccBox",
1563
- "module": "packages/expandable/index.ts"
1564
- }
1565
- },
1566
- {
1567
- "kind": "js",
1568
- "name": "ccExpandable",
1569
- "declaration": {
1570
- "name": "ccExpandable",
1571
- "module": "packages/expandable/index.ts"
1572
- }
1573
- },
1574
1446
  {
1575
1447
  "kind": "custom-element-definition",
1576
1448
  "name": "w-expandable",
@@ -1593,14 +1465,6 @@
1593
1465
  "kind": "javascript-module",
1594
1466
  "path": "packages/pill/index.ts",
1595
1467
  "declarations": [
1596
- {
1597
- "kind": "variable",
1598
- "name": "pillStyles",
1599
- "type": {
1600
- "text": "object"
1601
- },
1602
- "default": "{ wrapper: 'flex items-center', button: 'inline-flex items-center focusable text-xs transition-all', suggestion: 'bg-[--w-color-pill-suggestion-background] hover:bg-[--w-color-pill-suggestion-background-hover] active:bg-[--w-color-pill-suggestion-background-active] s-text font-bold', filter: 's-bg-primary hover:s-bg-primary-hover active:s-bg-primary-active s-text-inverted', label: 'pl-12 py-8 rounded-l-full', labelWithoutClose: 'pr-12 rounded-r-full', labelWithClose: 'pr-2', close: 'pr-12 pl-4 py-8 rounded-r-full', closeIcon: 'h-16', a11y: 'sr-only', }"
1603
- },
1604
1468
  {
1605
1469
  "kind": "class",
1606
1470
  "description": "Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)",
@@ -1740,14 +1604,6 @@
1740
1604
  }
1741
1605
  ],
1742
1606
  "exports": [
1743
- {
1744
- "kind": "js",
1745
- "name": "pillStyles",
1746
- "declaration": {
1747
- "name": "pillStyles",
1748
- "module": "packages/pill/index.ts"
1749
- }
1750
- },
1751
1607
  {
1752
1608
  "kind": "custom-element-definition",
1753
1609
  "name": "w-pill",
@@ -1770,30 +1626,6 @@
1770
1626
  "kind": "javascript-module",
1771
1627
  "path": "packages/select/index.ts",
1772
1628
  "declarations": [
1773
- {
1774
- "kind": "variable",
1775
- "name": "ccSelect",
1776
- "type": {
1777
- "text": "object"
1778
- },
1779
- "default": "{ base: 'block text-m mb-0 py-12 pr-32 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] appearance-none cursor-pointer caret-current', default: 's-text s-bg pl-8 border-1 s-border-strong hover:s-border-strong-hover active:s-border-active', disabled: 's-text-disabled s-bg-disabled-subtle pl-8 border-1 s-border-disabled hover:s-border-disabled active:s-border-disabled pointer-events-none', invalid: 's-text s-bg pl-8 border-1 s-border-negative hover:s-border-negative-hover active:s-border-active outline-[--w-s-color-border-negative]!', readOnly: 's-text bg-transparent pl-0 border-0 pointer-events-none before:hidden', wrapper: 'relative', selectWrapper: 'relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ', chevron: 'block absolute top-[30%] right-0 bottom-0 w-32 h-full s-icon pointer-events-none cursor-pointer', chevronDisabled: 'opacity-25', }"
1780
- },
1781
- {
1782
- "kind": "variable",
1783
- "name": "ccLabel",
1784
- "type": {
1785
- "text": "object"
1786
- },
1787
- "default": "{ base: 'antialiased block relative text-s font-bold pb-4 cursor-pointer s-text', optional: 'pl-8 font-normal text-s s-text-subtle', }"
1788
- },
1789
- {
1790
- "kind": "variable",
1791
- "name": "ccHelpText",
1792
- "type": {
1793
- "text": "object"
1794
- },
1795
- "default": "{ base: 'text-xs mt-4 block', color: 's-text-subtle', colorInvalid: 's-text-negative', }"
1796
- },
1797
1629
  {
1798
1630
  "kind": "class",
1799
1631
  "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)",
@@ -2052,30 +1884,6 @@
2052
1884
  }
2053
1885
  ],
2054
1886
  "exports": [
2055
- {
2056
- "kind": "js",
2057
- "name": "ccSelect",
2058
- "declaration": {
2059
- "name": "ccSelect",
2060
- "module": "packages/select/index.ts"
2061
- }
2062
- },
2063
- {
2064
- "kind": "js",
2065
- "name": "ccLabel",
2066
- "declaration": {
2067
- "name": "ccLabel",
2068
- "module": "packages/select/index.ts"
2069
- }
2070
- },
2071
- {
2072
- "kind": "js",
2073
- "name": "ccHelpText",
2074
- "declaration": {
2075
- "name": "ccHelpText",
2076
- "module": "packages/select/index.ts"
2077
- }
2078
- },
2079
1887
  {
2080
1888
  "kind": "js",
2081
1889
  "name": "WarpSelect",
@@ -2098,30 +1906,6 @@
2098
1906
  "kind": "javascript-module",
2099
1907
  "path": "packages/textfield/index.ts",
2100
1908
  "declarations": [
2101
- {
2102
- "kind": "variable",
2103
- "name": "ccinput",
2104
- "type": {
2105
- "text": "object"
2106
- },
2107
- "default": "{ // input classes base: 'block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current', // true default: 'border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected', // !isInvalid && !isDisabled && !isReadOnly disabled: 'border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none', // !isInvalid && isDisabled && !isReadOnly invalid: 'border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!', // isInvalid && !isDisabled && !isReadOnly readOnly: 'pl-0 bg-transparent pointer-events-none', // !isInvalid && !isDisabled && isReadOnly placeholder: 'placeholder:s-text-placeholder', suffix: 'pr-40', prefix: 'pl-[var(--w-prefix-width,_40px)]', // textarea classes textArea: 'min-h-[42] sm:min-h-[45]', }"
2108
- },
2109
- {
2110
- "kind": "variable",
2111
- "name": "ccLabel",
2112
- "type": {
2113
- "text": "object"
2114
- },
2115
- "default": "{ base: 'antialiased block relative text-s font-bold pb-4 cursor-pointer s-text', optional: 'pl-8 font-normal text-s s-text-subtle', }"
2116
- },
2117
- {
2118
- "kind": "variable",
2119
- "name": "ccHelpText",
2120
- "type": {
2121
- "text": "object"
2122
- },
2123
- "default": "{ base: 'text-xs mt-4 block', color: 's-text-subtle', colorInvalid: 's-text-negative', }"
2124
- },
2125
1909
  {
2126
1910
  "kind": "class",
2127
1911
  "description": "A single line text input element.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)",
@@ -2467,30 +2251,6 @@
2467
2251
  }
2468
2252
  ],
2469
2253
  "exports": [
2470
- {
2471
- "kind": "js",
2472
- "name": "ccinput",
2473
- "declaration": {
2474
- "name": "ccinput",
2475
- "module": "packages/textfield/index.ts"
2476
- }
2477
- },
2478
- {
2479
- "kind": "js",
2480
- "name": "ccLabel",
2481
- "declaration": {
2482
- "name": "ccLabel",
2483
- "module": "packages/textfield/index.ts"
2484
- }
2485
- },
2486
- {
2487
- "kind": "js",
2488
- "name": "ccHelpText",
2489
- "declaration": {
2490
- "name": "ccHelpText",
2491
- "module": "packages/textfield/index.ts"
2492
- }
2493
- },
2494
2254
  {
2495
2255
  "kind": "custom-element-definition",
2496
2256
  "name": "w-textfield",
@@ -2924,6 +2684,53 @@
2924
2684
  }
2925
2685
  ]
2926
2686
  },
2687
+ {
2688
+ "kind": "javascript-module",
2689
+ "path": "packages/modal/index.ts",
2690
+ "declarations": [],
2691
+ "exports": [
2692
+ {
2693
+ "kind": "js",
2694
+ "name": "WarpModal",
2695
+ "declaration": {
2696
+ "name": "ModalMain",
2697
+ "module": "packages/modal/index.ts"
2698
+ }
2699
+ },
2700
+ {
2701
+ "kind": "js",
2702
+ "name": "WarpModalHeader",
2703
+ "declaration": {
2704
+ "name": "ModalHeader",
2705
+ "module": "packages/modal/index.ts"
2706
+ }
2707
+ },
2708
+ {
2709
+ "kind": "js",
2710
+ "name": "WarpModalFooter",
2711
+ "declaration": {
2712
+ "name": "ModalFooter",
2713
+ "module": "packages/modal/index.ts"
2714
+ }
2715
+ },
2716
+ {
2717
+ "kind": "js",
2718
+ "name": "ModalCanCloseMixin",
2719
+ "declaration": {
2720
+ "name": "CanCloseMixin",
2721
+ "module": "packages/modal/index.ts"
2722
+ }
2723
+ },
2724
+ {
2725
+ "kind": "js",
2726
+ "name": "ModalProvidesCanCloseToSlotsMixin",
2727
+ "declaration": {
2728
+ "name": "ProvidesCanCloseToSlotsMixin",
2729
+ "module": "packages/modal/index.ts"
2730
+ }
2731
+ }
2732
+ ]
2733
+ },
2927
2734
  {
2928
2735
  "kind": "javascript-module",
2929
2736
  "path": "packages/toast/toast.ts",
@@ -3054,6 +2861,53 @@
3054
2861
  }
3055
2862
  }
3056
2863
  ]
2864
+ },
2865
+ {
2866
+ "kind": "javascript-module",
2867
+ "path": "packages/toast/index.ts",
2868
+ "declarations": [],
2869
+ "exports": [
2870
+ {
2871
+ "kind": "js",
2872
+ "name": "removeToast",
2873
+ "declaration": {
2874
+ "name": "removeToast",
2875
+ "module": "./api"
2876
+ }
2877
+ },
2878
+ {
2879
+ "kind": "js",
2880
+ "name": "toast",
2881
+ "declaration": {
2882
+ "name": "toast",
2883
+ "module": "./api"
2884
+ }
2885
+ },
2886
+ {
2887
+ "kind": "js",
2888
+ "name": "updateToast",
2889
+ "declaration": {
2890
+ "name": "updateToast",
2891
+ "module": "./api"
2892
+ }
2893
+ },
2894
+ {
2895
+ "kind": "js",
2896
+ "name": "WarpToast",
2897
+ "declaration": {
2898
+ "name": "WarpToast",
2899
+ "module": "./toast"
2900
+ }
2901
+ },
2902
+ {
2903
+ "kind": "js",
2904
+ "name": "WarpToastContainer",
2905
+ "declaration": {
2906
+ "name": "WarpToastContainer",
2907
+ "module": "./toast-container"
2908
+ }
2909
+ }
2910
+ ]
3057
2911
  }
3058
2912
  ]
3059
2913
  }
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
1
 
2
- import type { ccSuffix, ccPrefix, WarpAffix } from "./packages/affix/index.ts";
2
+ import type { WarpAffix } from "./packages/affix/index.ts";
3
3
  import type { WarpAlert } from "./packages/alert/index.ts";
4
- import type { ccButton, WarpButton } from "./packages/button/index.ts";
5
- import type { ccAttention, WarpAttention } from "./packages/attention/index.ts";
4
+ import type { WarpButton } from "./packages/button/index.ts";
5
+ import type { WarpAttention } from "./packages/attention/index.ts";
6
6
  import type { WarpBadge } from "./packages/badge/index.ts";
7
7
  import type { WarpBox } from "./packages/box/index.ts";
8
- import type { ccBreadcrumbs, WarpBreadcrumbs } from "./packages/breadcrumbs/index.ts";
9
- import type { ccCard, WarpCard } from "./packages/card/index.ts";
10
- import type { ccBox, ccExpandable, WarpExpandable } from "./packages/expandable/index.ts";
11
- import type { pillStyles, WarpPill } from "./packages/pill/index.ts";
12
- import type { ccSelect, ccLabel, ccHelpText, WarpSelect } from "./packages/select/index.ts";
13
- import type { ccinput, WarpTextField } from "./packages/textfield/index.ts";
8
+ import type { WarpBreadcrumbs } from "./packages/breadcrumbs/index.ts";
9
+ import type { WarpCard } from "./packages/card/index.ts";
10
+ import type { WarpExpandable } from "./packages/expandable/index.ts";
11
+ import type { WarpPill } from "./packages/pill/index.ts";
12
+ import type { WarpSelect } from "./packages/select/index.ts";
13
+ import type { WarpTextField } from "./packages/textfield/index.ts";
14
14
  import type { ModalFooter } from "./packages/modal/modal-footer.ts";
15
15
  import type { ModalHeader } from "./packages/modal/modal-header.ts";
16
16
  import type { ModalMain } from "./packages/modal/modal-main.ts";
@@ -1,18 +1,6 @@
1
1
  import { LitElement } from 'lit';
2
2
  import '@warp-ds/icons/elements/search-16';
3
3
  import '@warp-ds/icons/elements/close-16';
4
- export declare const ccSuffix: {
5
- wrapper: string;
6
- wrapperWithLabel: string;
7
- wrapperWithIcon: string;
8
- label: string;
9
- };
10
- export declare const ccPrefix: {
11
- wrapper: string;
12
- wrapperWithLabel: string;
13
- wrapperWithIcon: string;
14
- label: string;
15
- };
16
4
  /**
17
5
  * This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
18
6
  *
@@ -2458,5 +2458,5 @@ Please compile your catalog first.
2458
2458
  <div class="${this._classes}">
2459
2459
  <span class="${this._classBase.label}">${this.label}</span>
2460
2460
  </div>
2461
- `}get _markup(){if(this.label)return this._text;if(this.search)return this._searchButton;if(this.clear)return this._clearButton}render(){return L`${this._markup}`}};g.styles=[X,Z],x([C({attribute:"aria-label"})],g.prototype,"ariaLabel",2),x([C({type:Boolean})],g.prototype,"clear",2),x([C({type:Boolean})],g.prototype,"search",2),x([C()],g.prototype,"label",2);customElements.get("w-affix")||customElements.define("w-affix",g);export{g as WarpAffix,br as ccPrefix,dr as ccSuffix};
2461
+ `}get _markup(){if(this.label)return this._text;if(this.search)return this._searchButton;if(this.clear)return this._clearButton}render(){return L`${this._markup}`}};g.styles=[X,Z],x([C({attribute:"aria-label"})],g.prototype,"ariaLabel",2),x([C({type:Boolean})],g.prototype,"clear",2),x([C({type:Boolean})],g.prototype,"search",2),x([C()],g.prototype,"label",2);customElements.get("w-affix")||customElements.define("w-affix",g);export{g as WarpAffix};
2462
2462
  //# sourceMappingURL=index.js.map