@ncino/web-components 2.0.0-preview.3 → 2.0.0-preview.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.
Files changed (68) hide show
  1. package/dist/assets/index-chunk11.js +5 -1
  2. package/dist/assets/index-chunk12.js +1 -5
  3. package/dist/assets/index-chunk13.js +1 -1
  4. package/dist/assets/index-chunk5.js +1 -1
  5. package/dist/components/accordion/gator/base/accordion.gator.js +6 -6
  6. package/dist/components/accordion/gator/group/accordion-group.gator.js +2 -2
  7. package/dist/components/accordion/index.js +1 -1
  8. package/dist/components/button-card/gator/button-card.gator.js +2 -2
  9. package/dist/components/button-card/index.js +1 -1
  10. package/dist/components/card/card.js +1 -1
  11. package/dist/components/card/gator/base/card.gator.js +1 -7
  12. package/dist/components/card/gator/header/card-header.gator.js +1 -0
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/combobox/base/combobox.js +1 -1
  15. package/dist/components/combobox/base/combobox.slds.js +1 -1
  16. package/dist/components/combobox/base/index.js +1 -1
  17. package/dist/components/combobox/index.js +1 -1
  18. package/dist/components/display-card/gator/display-card.gator.js +13 -16
  19. package/dist/components/display-card/index.js +1 -1
  20. package/dist/components/headline-card/gator/headline-card.gator.js +12 -13
  21. package/dist/components/headline-card/index.js +1 -1
  22. package/dist/components/input/base/input-base.gator.js +11 -0
  23. package/dist/components/input/gator/input-text/input-text.gator.js +10 -27
  24. package/dist/components/input/gator/input-textarea/input-textarea.gator.js +27 -0
  25. package/dist/components/input/index.js +1 -1
  26. package/dist/components/list/gator/list/index.js +1 -1
  27. package/dist/components/list/gator/list/list.gator.js +1 -1
  28. package/dist/components/list/gator/list-item/index.js +1 -1
  29. package/dist/components/list/gator/list-item/list-item.gator.js +1 -1
  30. package/dist/components/menu/base/gator/menu.gator.js +1 -1
  31. package/dist/components/menu/base/index.js +1 -1
  32. package/dist/components/menu/index.js +1 -1
  33. package/dist/components/menu/menu-item/gator/menu-item.gator.js +1 -1
  34. package/dist/components/menu/menu-item/index.js +1 -1
  35. package/dist/components/modal/gator/modal.gator.js +14 -16
  36. package/dist/components/modal/index.js +1 -1
  37. package/dist/components/page-header/gator/page-header.gator.js +2 -2
  38. package/dist/components/page-header/index.js +1 -1
  39. package/dist/components/tabs/gator/tabset/tabset.gator.js +1 -1
  40. package/dist/components/tabs/index.js +1 -1
  41. package/dist/components/text-detail/gator/text-detail.gator.js +30 -11
  42. package/dist/components/text-detail/index.js +1 -1
  43. package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
  44. package/dist/components/tooltip/index.js +1 -1
  45. package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
  46. package/dist/index.gator.js +1 -1
  47. package/dist/index.js +1 -1
  48. package/dist/index.slds.js +1 -1
  49. package/dist/types/components/accordion/gator/base/accordion.gator.d.ts +3 -0
  50. package/dist/types/components/card/card.d.ts +5 -0
  51. package/dist/types/components/card/gator/base/card.gator.d.ts +1 -2
  52. package/dist/types/components/card/gator/header/card-header.gator.d.ts +30 -0
  53. package/dist/types/components/card/index.d.ts +1 -2
  54. package/dist/types/components/display-card/gator/display-card.gator.d.ts +2 -2
  55. package/dist/types/components/headline-card/gator/headline-card.gator.d.ts +1 -3
  56. package/dist/types/components/input/base/input-base.gator.d.ts +7 -0
  57. package/dist/types/components/input/gator/input-text/input-text.gator.d.ts +11 -9
  58. package/dist/types/components/input/gator/input-textarea/input-textarea.gator.d.ts +16 -0
  59. package/dist/types/components/input/gator/input-textarea/input-textarea.gator.test.d.ts +0 -0
  60. package/dist/types/components/input/index.d.ts +1 -0
  61. package/dist/types/index.gator.d.ts +3 -3
  62. package/package.json +1 -1
  63. package/web-types.json +161 -23
  64. package/dist/assets/index-chunk14.js +0 -1
  65. package/dist/components/card/gator/subtitle/card-subtitle.gator.js +0 -5
  66. package/dist/components/card/gator/title/card-title.gator.js +0 -5
  67. package/dist/types/components/card/gator/subtitle/card-subtitle.gator.d.ts +0 -5
  68. package/dist/types/components/card/gator/title/card-title.gator.d.ts +0 -5
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@ncino/web-components",
4
- "version": "2.0.0-preview.2",
4
+ "version": "2.0.0-preview.4",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -73,20 +73,47 @@
73
73
  }
74
74
  },
75
75
  {
76
- "name": "ngc-card-title",
76
+ "name": "ngc-card-header",
77
77
  "description": "\n---\n",
78
78
  "doc-url": "",
79
- "attributes": [],
80
- "events": [],
81
- "js": { "properties": [], "events": [] }
82
- },
83
- {
84
- "name": "ngc-card-subtitle",
85
- "description": "\n---\n",
86
- "doc-url": "",
87
- "attributes": [],
79
+ "attributes": [
80
+ {
81
+ "name": "skeleton",
82
+ "value": { "type": "boolean", "default": "false" }
83
+ },
84
+ {
85
+ "name": "vertical",
86
+ "value": { "type": "boolean", "default": "false" }
87
+ },
88
+ {
89
+ "name": "invert-title",
90
+ "value": { "type": "boolean", "default": "false" }
91
+ },
92
+ {
93
+ "name": "subtitle",
94
+ "value": { "type": "string", "default": "''" }
95
+ },
96
+ { "name": "title", "value": { "type": "string", "default": "''" } },
97
+ {
98
+ "name": "data-testid",
99
+ "value": { "type": "string | undefined", "default": "undefined" }
100
+ }
101
+ ],
88
102
  "events": [],
89
- "js": { "properties": [], "events": [] }
103
+ "js": {
104
+ "properties": [
105
+ { "name": "skeleton", "type": "boolean" },
106
+ { "name": "vertical", "type": "boolean" },
107
+ { "name": "invertTitle", "type": "boolean" },
108
+ { "name": "subtitle", "type": "string" },
109
+ { "name": "title", "type": "string" },
110
+ { "name": "dataTestid", "type": "string | undefined" },
111
+ { "name": "labelDataTestid" },
112
+ { "name": "helpTextDataTestid" },
113
+ { "name": "errorMessageDataTestid" }
114
+ ],
115
+ "events": []
116
+ }
90
117
  },
91
118
  {
92
119
  "name": "ngc-card",
@@ -106,6 +133,10 @@
106
133
  "name": "outlined",
107
134
  "value": { "type": "boolean", "default": "false" }
108
135
  },
136
+ {
137
+ "name": "skeleton",
138
+ "value": { "type": "boolean", "default": "false" }
139
+ },
109
140
  {
110
141
  "name": "data-testid",
111
142
  "value": { "type": "string | undefined", "default": "undefined" }
@@ -116,12 +147,12 @@
116
147
  "properties": [
117
148
  { "name": "elevatedClass" },
118
149
  { "name": "outlinedClass" },
119
- { "name": "cardTitleMarkup" },
120
- { "name": "cardSubtitleMarkup" },
150
+ { "name": "cardHeaderMarkup" },
121
151
  { "name": "title", "type": "string" },
122
152
  { "name": "subtitle", "type": "string" },
123
153
  { "name": "elevated", "type": "boolean" },
124
154
  { "name": "outlined", "type": "boolean" },
155
+ { "name": "skeleton", "type": "boolean" },
125
156
  { "name": "dataTestid", "type": "string | undefined" },
126
157
  { "name": "labelDataTestid" },
127
158
  { "name": "helpTextDataTestid" },
@@ -273,6 +304,7 @@
273
304
  "js": {
274
305
  "properties": [
275
306
  { "name": "headerMarkup" },
307
+ { "name": "insideCardClasses" },
276
308
  { "name": "iconName" },
277
309
  { "name": "contentId" },
278
310
  { "name": "headerId" },
@@ -1091,6 +1123,10 @@
1091
1123
  "name": "outlined",
1092
1124
  "value": { "type": "boolean", "default": "false" }
1093
1125
  },
1126
+ {
1127
+ "name": "skeleton",
1128
+ "value": { "type": "boolean", "default": "false" }
1129
+ },
1094
1130
  {
1095
1131
  "name": "data-testid",
1096
1132
  "value": { "type": "string | undefined", "default": "undefined" }
@@ -1105,6 +1141,7 @@
1105
1141
  { "name": "subtitle", "type": "string" },
1106
1142
  { "name": "elevated", "type": "boolean" },
1107
1143
  { "name": "outlined", "type": "boolean" },
1144
+ { "name": "skeleton", "type": "boolean" },
1108
1145
  { "name": "dataTestid", "type": "string | undefined" },
1109
1146
  { "name": "labelDataTestid" },
1110
1147
  { "name": "helpTextDataTestid" },
@@ -1245,6 +1282,10 @@
1245
1282
  "name": "outlined",
1246
1283
  "value": { "type": "boolean", "default": "false" }
1247
1284
  },
1285
+ {
1286
+ "name": "skeleton",
1287
+ "value": { "type": "boolean", "default": "false" }
1288
+ },
1248
1289
  {
1249
1290
  "name": "data-testid",
1250
1291
  "value": { "type": "string | undefined", "default": "undefined" }
@@ -1255,14 +1296,15 @@
1255
1296
  "properties": [
1256
1297
  { "name": "elevatedClass" },
1257
1298
  { "name": "outlinedClass" },
1258
- { "name": "cardTitleMarkup" },
1259
- { "name": "cardSubtitleMarkup" },
1299
+ { "name": "slotMarkup" },
1300
+ { "name": "footerActionsMarkup" },
1260
1301
  { "name": "actionButtonText", "type": "string" },
1261
1302
  { "name": "hideFooter", "type": "boolean" },
1262
1303
  { "name": "title", "type": "string" },
1263
1304
  { "name": "subtitle", "type": "string" },
1264
1305
  { "name": "elevated", "type": "boolean" },
1265
1306
  { "name": "outlined", "type": "boolean" },
1307
+ { "name": "skeleton", "type": "boolean" },
1266
1308
  { "name": "dataTestid", "type": "string | undefined" },
1267
1309
  { "name": "labelDataTestid" },
1268
1310
  { "name": "helpTextDataTestid" },
@@ -1455,6 +1497,10 @@
1455
1497
  "name": "outlined",
1456
1498
  "value": { "type": "boolean", "default": "false" }
1457
1499
  },
1500
+ {
1501
+ "name": "skeleton",
1502
+ "value": { "type": "boolean", "default": "false" }
1503
+ },
1458
1504
  {
1459
1505
  "name": "data-testid",
1460
1506
  "value": { "type": "string | undefined", "default": "undefined" }
@@ -1464,16 +1510,14 @@
1464
1510
  "js": {
1465
1511
  "properties": [
1466
1512
  { "name": "containerRef", "type": "Ref<HTMLInputElement>" },
1513
+ { "name": "illustrationMarkup" },
1467
1514
  { "name": "cardContentClass" },
1468
1515
  { "name": "justifyCenterClass" },
1469
1516
  { "name": "backgroundMarkup" },
1470
- { "name": "actionsClass" },
1471
1517
  { "name": "elevatedClass" },
1472
1518
  { "name": "outlinedClass" },
1473
1519
  { "name": "orientationClass" },
1474
1520
  { "name": "getBackgroundClass" },
1475
- { "name": "cardTitleMarkup" },
1476
- { "name": "cardSubtitleMarkup" },
1477
1521
  { "name": "shouldBeVertical" },
1478
1522
  { "name": "orientation", "type": "'horizontal' | 'vertical'" },
1479
1523
  { "name": "background", "type": "boolean" },
@@ -1482,6 +1526,7 @@
1482
1526
  { "name": "subtitle", "type": "string" },
1483
1527
  { "name": "elevated", "type": "boolean" },
1484
1528
  { "name": "outlined", "type": "boolean" },
1529
+ { "name": "skeleton", "type": "boolean" },
1485
1530
  { "name": "dataTestid", "type": "string | undefined" },
1486
1531
  { "name": "labelDataTestid" },
1487
1532
  { "name": "helpTextDataTestid" },
@@ -1492,7 +1537,7 @@
1492
1537
  },
1493
1538
  {
1494
1539
  "name": "ngc-input-text",
1495
- "description": "\n---\n",
1540
+ "description": "\n---\n\n\n### **Events:**\n - **change**",
1496
1541
  "doc-url": "",
1497
1542
  "attributes": [
1498
1543
  { "name": "for", "value": { "type": "string", "default": "''" } },
@@ -1541,7 +1586,7 @@
1541
1586
  "value": { "type": "string | undefined", "default": "undefined" }
1542
1587
  }
1543
1588
  ],
1544
- "events": [],
1589
+ "events": [{ "name": "change", "type": "CustomEvent" }],
1545
1590
  "js": {
1546
1591
  "properties": [
1547
1592
  { "name": "for", "type": "string" },
@@ -1555,13 +1600,106 @@
1555
1600
  { "name": "shouldHaveEndMarkup" },
1556
1601
  { "name": "startIconMarkup" },
1557
1602
  { "name": "endIconMarkup" },
1558
- { "name": "labelMarkup" },
1559
1603
  { "name": "isAriaInvalid" },
1560
1604
  { "name": "errorClass" },
1605
+ { "name": "disabledClass" },
1606
+ { "name": "passwordVisibilityMarkup" },
1607
+ { "name": "labelMarkup" },
1561
1608
  { "name": "bottomText" },
1562
1609
  { "name": "errorTextMarkup" },
1563
1610
  { "name": "helpTextMarkup" },
1611
+ { "name": "id", "type": "string" },
1612
+ { "name": "required", "type": "boolean" },
1613
+ { "name": "disabled", "type": "boolean" },
1614
+ { "name": "label", "type": "string" },
1615
+ { "name": "placeholder", "type": "string" },
1616
+ { "name": "value", "type": "string | number | undefined | null" },
1617
+ { "name": "errorText", "type": "string" },
1618
+ { "name": "helpText", "type": "string" },
1619
+ { "name": "type", "type": "string" },
1620
+ { "name": "startIcon", "type": "string" },
1621
+ { "name": "endIcon", "type": "string" },
1622
+ { "name": "dataTestid", "type": "string | undefined" },
1623
+ { "name": "labelDataTestid" },
1624
+ { "name": "helpTextDataTestid" },
1625
+ { "name": "errorMessageDataTestid" }
1626
+ ],
1627
+ "events": [{ "name": "change", "type": "CustomEvent" }]
1628
+ }
1629
+ },
1630
+ {
1631
+ "name": "ngc-input-textarea",
1632
+ "description": "\n---\n\n\n### **Events:**\n - **change**",
1633
+ "doc-url": "",
1634
+ "attributes": [
1635
+ { "name": "for", "value": { "type": "string", "default": "''" } },
1636
+ { "name": "min", "value": { "type": "string" } },
1637
+ { "name": "max", "value": { "type": "string" } },
1638
+ { "name": "id", "value": { "type": "string", "default": "''" } },
1639
+ {
1640
+ "name": "required",
1641
+ "value": { "type": "boolean", "default": "false" }
1642
+ },
1643
+ {
1644
+ "name": "disabled",
1645
+ "value": { "type": "boolean", "default": "false" }
1646
+ },
1647
+ { "name": "label", "value": { "type": "string", "default": "''" } },
1648
+ {
1649
+ "name": "placeholder",
1650
+ "value": { "type": "string", "default": "''" }
1651
+ },
1652
+ {
1653
+ "name": "value",
1654
+ "value": { "type": "string | number | undefined | null" }
1655
+ },
1656
+ {
1657
+ "name": "error-text",
1658
+ "value": { "type": "string", "default": "''" }
1659
+ },
1660
+ {
1661
+ "name": "help-text",
1662
+ "value": { "type": "string", "default": "''" }
1663
+ },
1664
+ {
1665
+ "name": "type",
1666
+ "value": { "type": "string", "default": "'text'" }
1667
+ },
1668
+ {
1669
+ "name": "start-icon",
1670
+ "value": { "type": "string", "default": "''" }
1671
+ },
1672
+ {
1673
+ "name": "end-icon",
1674
+ "value": { "type": "string", "default": "''" }
1675
+ },
1676
+ {
1677
+ "name": "data-testid",
1678
+ "value": { "type": "string | undefined", "default": "undefined" }
1679
+ }
1680
+ ],
1681
+ "events": [{ "name": "change", "type": "CustomEvent" }],
1682
+ "js": {
1683
+ "properties": [
1684
+ { "name": "for", "type": "string" },
1685
+ { "name": "min", "type": "string" },
1686
+ { "name": "max", "type": "string" },
1687
+ { "name": "inputRef", "type": "Ref<HTMLInputElement>" },
1688
+ { "name": "controlRef", "type": "Ref<HTMLDivElement>" },
1689
+ { "name": "_nativeInputError", "type": "string | undefined" },
1690
+ { "name": "displayedErrorText" },
1691
+ { "name": "shouldHaveStartMarkup" },
1692
+ { "name": "shouldHaveEndMarkup" },
1693
+ { "name": "startIconMarkup" },
1694
+ { "name": "endIconMarkup" },
1695
+ { "name": "isAriaInvalid" },
1696
+ { "name": "errorClass" },
1697
+ { "name": "disabledClass" },
1564
1698
  { "name": "passwordVisibilityMarkup" },
1699
+ { "name": "labelMarkup" },
1700
+ { "name": "bottomText" },
1701
+ { "name": "errorTextMarkup" },
1702
+ { "name": "helpTextMarkup" },
1565
1703
  { "name": "id", "type": "string" },
1566
1704
  { "name": "required", "type": "boolean" },
1567
1705
  { "name": "disabled", "type": "boolean" },
@@ -1578,7 +1716,7 @@
1578
1716
  { "name": "helpTextDataTestid" },
1579
1717
  { "name": "errorMessageDataTestid" }
1580
1718
  ],
1581
- "events": []
1719
+ "events": [{ "name": "change", "type": "CustomEvent" }]
1582
1720
  }
1583
1721
  },
1584
1722
  {
@@ -1 +0,0 @@
1
- const St="div[role=tooltip]{position:absolute;width:max-content;top:0;left:0;visibility:hidden;opacity:0;transition:opacity .2s}#floating{position:absolute;width:max-content;top:0;left:0}",$=Math.min,D=Math.max,M=Math.round,H=Math.floor,T=t=>({x:t,y:t});function Z(t){return t.split("-")[0]}function ft(t){return t.split("-")[1]}function ut(t){return t==="x"?"y":"x"}function at(t){return t==="y"?"height":"width"}function tt(t){return["top","bottom"].includes(Z(t))?"y":"x"}function dt(t){return ut(tt(t))}function et(t){const{x:e,y:o,width:n,height:i}=t;return{width:n,height:i,top:o,left:e,right:e+n,bottom:o+i,x:e,y:o}}function K(t,e,o){let{reference:n,floating:i}=t;const c=tt(e),r=dt(e),s=at(r),f=Z(e),l=c==="y",a=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,g=n[s]/2-i[s]/2;let u;switch(f){case"top":u={x:a,y:n.y-i.height};break;case"bottom":u={x:a,y:n.y+n.height};break;case"right":u={x:n.x+n.width,y:d};break;case"left":u={x:n.x-i.width,y:d};break;default:u={x:n.x,y:n.y}}switch(ft(e)){case"start":u[r]-=g*(o&&l?-1:1);break;case"end":u[r]+=g*(o&&l?-1:1);break}return u}const ht=async(t,e,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:c=[],platform:r}=o,s=c.filter(Boolean),f=await(r.isRTL==null?void 0:r.isRTL(e));let l=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:d}=K(l,n,f),g=n,u={},x=0;for(let h=0;h<s.length;h++){const{name:m,fn:p}=s[h],{x:w,y:R,data:F,reset:L}=await p({x:a,y:d,initialPlacement:n,placement:g,strategy:i,middlewareData:u,rects:l,platform:r,elements:{reference:t,floating:e}});a=w??a,d=R??d,u={...u,[m]:{...u[m],...F}},L&&x<=50&&(x++,typeof L=="object"&&(L.placement&&(g=L.placement),L.rects&&(l=L.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):L.rects),{x:a,y:d}=K(l,g,f)),h=-1)}return{x:a,y:d,placement:g,strategy:i,middlewareData:u}};function V(){return typeof window<"u"}function W(t){return nt(t)?(t.nodeName||"").toLowerCase():"#document"}function y(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function E(t){var e;return(e=(nt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function nt(t){return V()?t instanceof Node||t instanceof y(t).Node:!1}function v(t){return V()?t instanceof Element||t instanceof y(t).Element:!1}function C(t){return V()?t instanceof HTMLElement||t instanceof y(t).HTMLElement:!1}function G(t){return!V()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof y(t).ShadowRoot}function k(t){const{overflow:e,overflowX:o,overflowY:n,display:i}=b(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(i)}function gt(t){return["table","td","th"].includes(W(t))}function z(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function X(t){const e=j(),o=v(t)?b(t):t;return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function pt(t){let e=O(t);for(;C(e)&&!N(e);){if(X(e))return e;if(z(e))return null;e=O(e)}return null}function j(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function N(t){return["html","body","#document"].includes(W(t))}function b(t){return y(t).getComputedStyle(t)}function _(t){return v(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function O(t){if(W(t)==="html")return t;const e=t.assignedSlot||t.parentNode||G(t)&&t.host||E(t);return G(e)?e.host:e}function ot(t){const e=O(t);return N(e)?t.ownerDocument?t.ownerDocument.body:t.body:C(e)&&k(e)?e:ot(e)}function B(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);const i=ot(t),c=i===((n=t.ownerDocument)==null?void 0:n.body),r=y(i);if(c){const s=Y(r);return e.concat(r,r.visualViewport||[],k(i)?i:[],s&&o?B(s):[])}return e.concat(i,B(i,[],o))}function Y(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function it(t){const e=b(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=C(t),c=i?t.offsetWidth:o,r=i?t.offsetHeight:n,s=M(o)!==c||M(n)!==r;return s&&(o=c,n=r),{width:o,height:n,$:s}}function q(t){return v(t)?t:t.contextElement}function S(t){const e=q(t);if(!C(e))return T(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:c}=it(e);let r=(c?M(o.width):o.width)/n,s=(c?M(o.height):o.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!s||!Number.isFinite(s))&&(s=1),{x:r,y:s}}const mt=T(0);function rt(t){const e=y(t);return!j()||!e.visualViewport?mt:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function wt(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==y(t)?!1:e}function A(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),c=q(t);let r=T(1);e&&(n?v(n)&&(r=S(n)):r=S(t));const s=wt(c,o,n)?rt(c):T(0);let f=(i.left+s.x)/r.x,l=(i.top+s.y)/r.y,a=i.width/r.x,d=i.height/r.y;if(c){const g=y(c),u=n&&v(n)?y(n):n;let x=g,h=Y(x);for(;h&&n&&u!==x;){const m=S(h),p=h.getBoundingClientRect(),w=b(h),R=p.left+(h.clientLeft+parseFloat(w.paddingLeft))*m.x,F=p.top+(h.clientTop+parseFloat(w.paddingTop))*m.y;f*=m.x,l*=m.y,a*=m.x,d*=m.y,f+=R,l+=F,x=y(h),h=Y(x)}}return et({width:a,height:d,x:f,y:l})}function U(t,e){const o=_(t).scrollLeft;return e?e.left+o:A(E(t)).left+o}function st(t,e,o){o===void 0&&(o=!1);const n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-(o?0:U(t,n)),c=n.top+e.scrollTop;return{x:i,y:c}}function yt(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const c=i==="fixed",r=E(n),s=e?z(e.floating):!1;if(n===r||s&&c)return o;let f={scrollLeft:0,scrollTop:0},l=T(1);const a=T(0),d=C(n);if((d||!d&&!c)&&((W(n)!=="body"||k(r))&&(f=_(n)),C(n))){const u=A(n);l=S(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}const g=r&&!d&&!c?st(r,f,!0):T(0);return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-f.scrollLeft*l.x+a.x+g.x,y:o.y*l.y-f.scrollTop*l.y+a.y+g.y}}function xt(t){return Array.from(t.getClientRects())}function vt(t){const e=E(t),o=_(t),n=t.ownerDocument.body,i=D(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),c=D(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+U(t);const s=-o.scrollTop;return b(n).direction==="rtl"&&(r+=D(e.clientWidth,n.clientWidth)-i),{width:i,height:c,x:r,y:s}}function bt(t,e){const o=y(t),n=E(t),i=o.visualViewport;let c=n.clientWidth,r=n.clientHeight,s=0,f=0;if(i){c=i.width,r=i.height;const l=j();(!l||l&&e==="fixed")&&(s=i.offsetLeft,f=i.offsetTop)}return{width:c,height:r,x:s,y:f}}function Rt(t,e){const o=A(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,c=C(t)?S(t):T(1),r=t.clientWidth*c.x,s=t.clientHeight*c.y,f=i*c.x,l=n*c.y;return{width:r,height:s,x:f,y:l}}function J(t,e,o){let n;if(e==="viewport")n=bt(t,o);else if(e==="document")n=vt(E(t));else if(v(e))n=Rt(e,o);else{const i=rt(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return et(n)}function ct(t,e){const o=O(t);return o===e||!v(o)||N(o)?!1:b(o).position==="fixed"||ct(o,e)}function Lt(t,e){const o=e.get(t);if(o)return o;let n=B(t,[],!1).filter(s=>v(s)&&W(s)!=="body"),i=null;const c=b(t).position==="fixed";let r=c?O(t):t;for(;v(r)&&!N(r);){const s=b(r),f=X(r);!f&&s.position==="fixed"&&(i=null),(c?!f&&!i:!f&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||k(r)&&!f&&ct(t,r))?n=n.filter(a=>a!==r):i=s,r=O(r)}return e.set(t,n),n}function Tt(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const r=[...o==="clippingAncestors"?z(e)?[]:Lt(e,this._c):[].concat(o),n],s=r[0],f=r.reduce((l,a)=>{const d=J(e,a,i);return l.top=D(d.top,l.top),l.right=$(d.right,l.right),l.bottom=$(d.bottom,l.bottom),l.left=D(d.left,l.left),l},J(e,s,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Ct(t){const{width:e,height:o}=it(t);return{width:e,height:o}}function Et(t,e,o){const n=C(e),i=E(e),c=o==="fixed",r=A(t,!0,c,e);let s={scrollLeft:0,scrollTop:0};const f=T(0);if(n||!n&&!c)if((W(e)!=="body"||k(i))&&(s=_(e)),n){const g=A(e,!0,c,e);f.x=g.x+e.clientLeft,f.y=g.y+e.clientTop}else i&&(f.x=U(i));const l=i&&!n&&!c?st(i,s):T(0),a=r.left+s.scrollLeft-f.x-l.x,d=r.top+s.scrollTop-f.y-l.y;return{x:a,y:d,width:r.width,height:r.height}}function P(t){return b(t).position==="static"}function Q(t,e){if(!C(t)||b(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return E(t)===o&&(o=o.ownerDocument.body),o}function lt(t,e){const o=y(t);if(z(t))return o;if(!C(t)){let i=O(t);for(;i&&!N(i);){if(v(i)&&!P(i))return i;i=O(i)}return o}let n=Q(t,e);for(;n&&gt(n)&&P(n);)n=Q(n,e);return n&&N(n)&&P(n)&&!X(n)?o:n||pt(t)||o}const Ot=async function(t){const e=this.getOffsetParent||lt,o=this.getDimensions,n=await o(t.floating);return{reference:Et(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function At(t){return b(t).direction==="rtl"}const Ft={convertOffsetParentRelativeRectToViewportRelativeRect:yt,getDocumentElement:E,getClippingRect:Tt,getOffsetParent:lt,getElementRects:Ot,getClientRects:xt,getDimensions:Ct,getScale:S,isElement:v,isRTL:At};function Dt(t,e){let o=null,n;const i=E(t);function c(){var s;clearTimeout(n),(s=o)==null||s.disconnect(),o=null}function r(s,f){s===void 0&&(s=!1),f===void 0&&(f=1),c();const{left:l,top:a,width:d,height:g}=t.getBoundingClientRect();if(s||e(),!d||!g)return;const u=H(a),x=H(i.clientWidth-(l+d)),h=H(i.clientHeight-(a+g)),m=H(l),w={rootMargin:-u+"px "+-x+"px "+-h+"px "+-m+"px",threshold:D(0,$(1,f))||1};let R=!0;function F(L){const I=L[0].intersectionRatio;if(I!==f){if(!R)return r();I?r(!1,I):n=setTimeout(()=>{r(!1,1e-7)},1e3)}R=!1}try{o=new IntersectionObserver(F,{...w,root:i.ownerDocument})}catch{o=new IntersectionObserver(F,w)}o.observe(t)}return r(!0),c}function Nt(t,e,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:c=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:f=!1}=n,l=q(t),a=i||c?[...l?B(l):[],...B(e)]:[];a.forEach(p=>{i&&p.addEventListener("scroll",o,{passive:!0}),c&&p.addEventListener("resize",o)});const d=l&&s?Dt(l,o):null;let g=-1,u=null;r&&(u=new ResizeObserver(p=>{let[w]=p;w&&w.target===l&&u&&(u.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var R;(R=u)==null||R.observe(e)})),o()}),l&&!f&&u.observe(l),u.observe(e));let x,h=f?A(t):null;f&&m();function m(){const p=A(t);h&&(p.x!==h.x||p.y!==h.y||p.width!==h.width||p.height!==h.height)&&o(),h=p,x=requestAnimationFrame(m)}return o(),()=>{var p;a.forEach(w=>{i&&w.removeEventListener("scroll",o),c&&w.removeEventListener("resize",o)}),d==null||d(),(p=u)==null||p.disconnect(),u=null,f&&cancelAnimationFrame(x)}}const Wt=(t,e,o)=>{const n=new Map,i={platform:Ft,...o},c={...i.platform,_c:n};return ht(t,e,{...i,platform:c})};export{Nt as a,Wt as c,St as t};
@@ -1,5 +0,0 @@
1
- import{a as o,r as n,x as p}from"../../../../assets/index-chunk2.js";import{p as d}from"../../../../assets/index-chunk4.js";import{s as v}from"../../../../assets/index-chunk5.js";import{t as g}from"../../../../assets/index-chunk3.js";const m=":host{--ngc-card-subtitle-padding: 0 var(--spacing-6) var(--spacing-6) var(--spacing-6)}.gator-card-subtitle{padding:var(--ngc-card-subtitle-padding);font-size:.9375rem;color:var(--color-primary-01-placeholder)}";var f=Object.defineProperty,u=Object.getOwnPropertyDescriptor,b=(l,s,a,t)=>{for(var r=t>1?void 0:t?u(s,a):s,e=l.length-1,i;e>=0;e--)(i=l[e])&&(r=(t?i(s,a,r):i(r))||r);return t&&r&&f(s,a,r),r};let c=class extends n{render(){return p`
2
- <div class="gator-card-subtitle">
3
- <slot></slot>
4
- </div>
5
- `}};c.styles=[o(m),o(d),o(v)];c=b([g("ngc-card-subtitle")],c);
@@ -1,5 +0,0 @@
1
- import{a as s,r as l,x as g}from"../../../../assets/index-chunk2.js";import{p as d}from"../../../../assets/index-chunk4.js";import{s as f}from"../../../../assets/index-chunk5.js";import{t as v}from"../../../../assets/index-chunk3.js";const p=":host{--ngc-card-title-padding: var(--spacing-6) var(--spacing-6) 0 var(--spacing-6)}.gator-card-title{padding:var(--ngc-card-title-padding);font-size:var(--ngc-card-title-font-size, 2rem);font-weight:var(--ngc-card-title-font-weight, 700);font-family:var(--ngc-card-title-font-family),var(--ngc-font-family-body),sans-serif;color:var(--color-neutral-70);line-height:var(--ngc-card-title-line-height);margin:var(--ngc-card-title-margin)}";var m=Object.defineProperty,h=Object.getOwnPropertyDescriptor,y=(o,t,e,a)=>{for(var r=a>1?void 0:a?h(t,e):t,i=o.length-1,n;i>=0;i--)(n=o[i])&&(r=(a?n(t,e,r):n(r))||r);return a&&r&&m(t,e,r),r};let c=class extends l{render(){return g`
2
- <div class="gator-card-title">
3
- <slot></slot>
4
- </div>
5
- `}};c.styles=[s(p),s(d),s(f)];c=y([v("ngc-card-title")],c);
@@ -1,5 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class NgcCardSubtitle extends LitElement {
3
- static styles: import('lit').CSSResult[];
4
- render(): import('lit').TemplateResult<1>;
5
- }
@@ -1,5 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class NgcCardTitle extends LitElement {
3
- static styles: import('lit').CSSResult[];
4
- render(): import('lit').TemplateResult<1>;
5
- }