@neo4j-ndl/react 3.0.0-alpha-4904fb7 → 3.0.0-alpha-73cdbc3

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 (166) hide show
  1. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js +4 -4
  2. package/lib/cjs/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  3. package/lib/cjs/accordion/Accordion.js +6 -5
  4. package/lib/cjs/accordion/Accordion.js.map +1 -1
  5. package/lib/cjs/avatar/Avatar.js +2 -3
  6. package/lib/cjs/avatar/Avatar.js.map +1 -1
  7. package/lib/cjs/banner/Banner.js +2 -2
  8. package/lib/cjs/banner/Banner.js.map +1 -1
  9. package/lib/cjs/button/Button.js +2 -2
  10. package/lib/cjs/button/Button.js.map +1 -1
  11. package/lib/cjs/button/IconButton.js +2 -2
  12. package/lib/cjs/button/IconButton.js.map +1 -1
  13. package/lib/cjs/button/IconButtonArray.js +2 -2
  14. package/lib/cjs/button/IconButtonArray.js.map +1 -1
  15. package/lib/cjs/callout/Callout.js +2 -2
  16. package/lib/cjs/callout/Callout.js.map +1 -1
  17. package/lib/cjs/checkbox/Checkbox.js +2 -2
  18. package/lib/cjs/checkbox/Checkbox.js.map +1 -1
  19. package/lib/cjs/code/Code.js +5 -3
  20. package/lib/cjs/code/Code.js.map +1 -1
  21. package/lib/cjs/code/languages.js +1 -0
  22. package/lib/cjs/code/languages.js.map +1 -1
  23. package/lib/cjs/context-menu/ContextMenu.js +30 -5
  24. package/lib/cjs/context-menu/ContextMenu.js.map +1 -1
  25. package/lib/cjs/data-grid/Components.js +6 -8
  26. package/lib/cjs/data-grid/Components.js.map +1 -1
  27. package/lib/cjs/data-grid/DataGrid.js +2 -0
  28. package/lib/cjs/data-grid/DataGrid.js.map +1 -1
  29. package/lib/cjs/dialog/Dialog.js +28 -21
  30. package/lib/cjs/dialog/Dialog.js.map +1 -1
  31. package/lib/cjs/divider/Divider.js +3 -3
  32. package/lib/cjs/divider/Divider.js.map +1 -1
  33. package/lib/cjs/dropdown-button/DropdownButton.js +3 -2
  34. package/lib/cjs/dropdown-button/DropdownButton.js.map +1 -1
  35. package/lib/cjs/dropzone/Dropzone.js +2 -2
  36. package/lib/cjs/dropzone/Dropzone.js.map +1 -1
  37. package/lib/cjs/index.js +1 -1
  38. package/lib/cjs/index.js.map +1 -1
  39. package/lib/cjs/inline-edit/InlineEdit.js +3 -3
  40. package/lib/cjs/inline-edit/InlineEdit.js.map +1 -1
  41. package/lib/cjs/label/Label.js +15 -5
  42. package/lib/cjs/label/Label.js.map +1 -1
  43. package/lib/cjs/layout/Flex.js +2 -2
  44. package/lib/cjs/layout/Flex.js.map +1 -1
  45. package/lib/cjs/loading-spinner/LoadingSpinner.js +14 -6
  46. package/lib/cjs/loading-spinner/LoadingSpinner.js.map +1 -1
  47. package/lib/cjs/progress-bar/ProgressBar.js +3 -2
  48. package/lib/cjs/progress-bar/ProgressBar.js.map +1 -1
  49. package/lib/cjs/segmented-control/SegmentedControl.js +5 -4
  50. package/lib/cjs/segmented-control/SegmentedControl.js.map +1 -1
  51. package/lib/cjs/slider/Slider.js +3 -2
  52. package/lib/cjs/slider/Slider.js.map +1 -1
  53. package/lib/cjs/status-indicator/StatusIndicator.js +7 -6
  54. package/lib/cjs/status-indicator/StatusIndicator.js.map +1 -1
  55. package/lib/cjs/tabs/Tabs.js +6 -6
  56. package/lib/cjs/tabs/Tabs.js.map +1 -1
  57. package/lib/cjs/tag/Tag.js.map +1 -1
  58. package/lib/cjs/{textarea/Textarea.js → text-area/TextArea.js} +10 -10
  59. package/lib/cjs/text-area/TextArea.js.map +1 -0
  60. package/lib/cjs/{textarea → text-area}/index.js +1 -1
  61. package/lib/cjs/text-area/index.js.map +1 -0
  62. package/lib/cjs/text-input/TextInput.js +2 -2
  63. package/lib/cjs/text-input/TextInput.js.map +1 -1
  64. package/lib/cjs/text-link/TextLink.js +1 -1
  65. package/lib/cjs/text-link/TextLink.js.map +1 -1
  66. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js +4 -4
  67. package/lib/esm/_common/input/RadioAndCheckboxWrapper.js.map +1 -1
  68. package/lib/esm/accordion/Accordion.js +6 -5
  69. package/lib/esm/accordion/Accordion.js.map +1 -1
  70. package/lib/esm/avatar/Avatar.js +2 -3
  71. package/lib/esm/avatar/Avatar.js.map +1 -1
  72. package/lib/esm/banner/Banner.js +2 -2
  73. package/lib/esm/banner/Banner.js.map +1 -1
  74. package/lib/esm/button/Button.js +2 -2
  75. package/lib/esm/button/Button.js.map +1 -1
  76. package/lib/esm/button/IconButton.js +2 -2
  77. package/lib/esm/button/IconButton.js.map +1 -1
  78. package/lib/esm/button/IconButtonArray.js +2 -2
  79. package/lib/esm/button/IconButtonArray.js.map +1 -1
  80. package/lib/esm/callout/Callout.js +2 -2
  81. package/lib/esm/callout/Callout.js.map +1 -1
  82. package/lib/esm/checkbox/Checkbox.js +2 -2
  83. package/lib/esm/checkbox/Checkbox.js.map +1 -1
  84. package/lib/esm/code/Code.js +5 -3
  85. package/lib/esm/code/Code.js.map +1 -1
  86. package/lib/esm/code/languages.js +1 -0
  87. package/lib/esm/code/languages.js.map +1 -1
  88. package/lib/esm/context-menu/ContextMenu.js +7 -5
  89. package/lib/esm/context-menu/ContextMenu.js.map +1 -1
  90. package/lib/esm/data-grid/Components.js +3 -7
  91. package/lib/esm/data-grid/Components.js.map +1 -1
  92. package/lib/esm/data-grid/DataGrid.js +3 -1
  93. package/lib/esm/data-grid/DataGrid.js.map +1 -1
  94. package/lib/esm/dialog/Dialog.js +30 -23
  95. package/lib/esm/dialog/Dialog.js.map +1 -1
  96. package/lib/esm/divider/Divider.js +3 -3
  97. package/lib/esm/divider/Divider.js.map +1 -1
  98. package/lib/esm/dropdown-button/DropdownButton.js +3 -2
  99. package/lib/esm/dropdown-button/DropdownButton.js.map +1 -1
  100. package/lib/esm/dropzone/Dropzone.js +2 -2
  101. package/lib/esm/dropzone/Dropzone.js.map +1 -1
  102. package/lib/esm/index.js +1 -1
  103. package/lib/esm/index.js.map +1 -1
  104. package/lib/esm/inline-edit/InlineEdit.js +3 -3
  105. package/lib/esm/inline-edit/InlineEdit.js.map +1 -1
  106. package/lib/esm/label/Label.js +16 -3
  107. package/lib/esm/label/Label.js.map +1 -1
  108. package/lib/esm/layout/Flex.js +2 -2
  109. package/lib/esm/layout/Flex.js.map +1 -1
  110. package/lib/esm/loading-spinner/LoadingSpinner.js +15 -4
  111. package/lib/esm/loading-spinner/LoadingSpinner.js.map +1 -1
  112. package/lib/esm/progress-bar/ProgressBar.js +3 -2
  113. package/lib/esm/progress-bar/ProgressBar.js.map +1 -1
  114. package/lib/esm/segmented-control/SegmentedControl.js +5 -4
  115. package/lib/esm/segmented-control/SegmentedControl.js.map +1 -1
  116. package/lib/esm/slider/Slider.js +3 -2
  117. package/lib/esm/slider/Slider.js.map +1 -1
  118. package/lib/esm/status-indicator/StatusIndicator.js +7 -6
  119. package/lib/esm/status-indicator/StatusIndicator.js.map +1 -1
  120. package/lib/esm/tabs/Tabs.js +6 -6
  121. package/lib/esm/tabs/Tabs.js.map +1 -1
  122. package/lib/esm/tag/Tag.js.map +1 -1
  123. package/lib/esm/{textarea/Textarea.js → text-area/TextArea.js} +9 -9
  124. package/lib/esm/text-area/TextArea.js.map +1 -0
  125. package/lib/esm/{textarea → text-area}/index.js +1 -1
  126. package/lib/esm/text-area/index.js.map +1 -0
  127. package/lib/esm/text-input/TextInput.js +2 -2
  128. package/lib/esm/text-input/TextInput.js.map +1 -1
  129. package/lib/esm/text-link/TextLink.js +1 -1
  130. package/lib/esm/text-link/TextLink.js.map +1 -1
  131. package/lib/types/_common/CodeBlockWrapper.d.ts +1 -1
  132. package/lib/types/_common/input/RadioAndCheckboxWrapper.d.ts +9 -0
  133. package/lib/types/_common/types.d.ts +12 -2
  134. package/lib/types/accordion/Accordion.d.ts +3 -7
  135. package/lib/types/avatar/Avatar.d.ts +0 -2
  136. package/lib/types/banner/Banner.d.ts +2 -2
  137. package/lib/types/button/Button.d.ts +0 -1
  138. package/lib/types/button/IconButtonArray.d.ts +2 -2
  139. package/lib/types/callout/Callout.d.ts +1 -1
  140. package/lib/types/charts/ChartTooltip.d.ts +3 -3
  141. package/lib/types/charts/Charts.d.ts +1 -1
  142. package/lib/types/code/Code.d.ts +0 -1
  143. package/lib/types/code/languages.d.ts +1 -1
  144. package/lib/types/context-menu/ContextMenu.d.ts +7 -5
  145. package/lib/types/data-grid/Components.d.ts +4 -5
  146. package/lib/types/data-grid/DataGrid.d.ts +3 -4
  147. package/lib/types/dialog/Dialog.d.ts +23 -15
  148. package/lib/types/dropzone/Dropzone.d.ts +2 -0
  149. package/lib/types/index.d.ts +1 -1
  150. package/lib/types/inline-edit/InlineEdit.d.ts +1 -1
  151. package/lib/types/label/Label.d.ts +4 -3
  152. package/lib/types/loading-spinner/LoadingSpinner.d.ts +4 -4
  153. package/lib/types/popover/Popover.d.ts +1 -1
  154. package/lib/types/progress-bar/ProgressBar.d.ts +4 -1
  155. package/lib/types/segmented-control/SegmentedControl.d.ts +3 -1
  156. package/lib/types/slider/Slider.d.ts +2 -2
  157. package/lib/types/status-indicator/StatusIndicator.d.ts +4 -4
  158. package/lib/types/tag/Tag.d.ts +1 -0
  159. package/lib/types/{textarea/Textarea.d.ts → text-area/TextArea.d.ts} +13 -4
  160. package/lib/types/{textarea → text-area}/index.d.ts +1 -1
  161. package/lib/types/text-input/TextInput.d.ts +3 -0
  162. package/package.json +3 -4
  163. package/lib/cjs/textarea/Textarea.js.map +0 -1
  164. package/lib/cjs/textarea/index.js.map +0 -1
  165. package/lib/esm/textarea/Textarea.js.map +0 -1
  166. package/lib/esm/textarea/index.js.map +0 -1
@@ -33,19 +33,20 @@ import { jsx as _jsx } from "react/jsx-runtime";
33
33
  import React from 'react';
34
34
  import { classNames } from '../_common/defaultImports';
35
35
  export const StatusIndicator = React.forwardRef(function StatusIndicator(_a, ref) {
36
- var { className, type = 'unknown' } = _a, restProps = __rest(_a, ["className", "type"]);
36
+ var { as, className, style, type = 'unknown', htmlAttributes } = _a, restProps = __rest(_a, ["as", "className", "style", "type", "htmlAttributes"]);
37
37
  const classes = classNames('ndl-status-indicator', className);
38
+ const Component = as || 'span';
38
39
  switch (type) {
39
40
  case 'success':
40
- return (_jsx("span", Object.assign({}, restProps, { className: classes, ref: ref, children: _jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("circle", { cx: "4", cy: "4", r: "4", fill: "rgb(var(--theme-palette-success-bg-status))" }) }) })));
41
+ return (_jsx(Component, Object.assign({}, restProps, { className: classes, style: style, ref: ref }, htmlAttributes, { children: _jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("circle", { cx: "4", cy: "4", r: "4", fill: "rgb(var(--theme-palette-success-bg-status))" }) }) })));
41
42
  case 'info':
42
- return (_jsx("span", Object.assign({}, restProps, { className: classes, ref: ref, children: _jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("circle", { cx: "4", cy: "4", r: "4", fill: "rgb(var(--theme-palette-primary-bg-status))" }) }) })));
43
+ return (_jsx(Component, Object.assign({}, restProps, { className: classes, style: style, ref: ref }, htmlAttributes, { children: _jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("circle", { cx: "4", cy: "4", r: "4", fill: "rgb(var(--theme-palette-primary-bg-status))" }) }) })));
43
44
  case 'warning':
44
- return (_jsx("span", Object.assign({}, restProps, { className: classes, ref: ref, children: _jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M4.57641 0.35903C4.52349 0.251301 4.44144 0.160559 4.33957 0.0970988C4.23769 0.0336384 4.12007 0 4.00005 0C3.88002 0 3.7624 0.0336384 3.66053 0.0970988C3.55865 0.160559 3.4766 0.251301 3.42368 0.35903L0.0554707 7.22061C0.0149262 7.30309 -0.00393024 7.39454 0.000681349 7.48633C0.00529294 7.57812 0.0332205 7.66722 0.0818275 7.74522C0.130434 7.82322 0.198117 7.88754 0.278487 7.93212C0.358856 7.9767 0.44926 8.00006 0.541165 8H7.45893C7.55083 8.00006 7.64124 7.9767 7.7216 7.93212C7.80197 7.88754 7.86966 7.82322 7.91826 7.74522C7.96687 7.66722 7.9948 7.57812 7.99941 7.48633C8.00402 7.39454 7.98517 7.30309 7.94462 7.22061L4.57641 0.35903Z", fill: "rgb(var(--theme-palette-warning-bg-status))" }) }) })));
45
+ return (_jsx(Component, Object.assign({}, restProps, { className: classes, style: style, ref: ref }, htmlAttributes, { children: _jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M4.57641 0.35903C4.52349 0.251301 4.44144 0.160559 4.33957 0.0970988C4.23769 0.0336384 4.12007 0 4.00005 0C3.88002 0 3.7624 0.0336384 3.66053 0.0970988C3.55865 0.160559 3.4766 0.251301 3.42368 0.35903L0.0554707 7.22061C0.0149262 7.30309 -0.00393024 7.39454 0.000681349 7.48633C0.00529294 7.57812 0.0332205 7.66722 0.0818275 7.74522C0.130434 7.82322 0.198117 7.88754 0.278487 7.93212C0.358856 7.9767 0.44926 8.00006 0.541165 8H7.45893C7.55083 8.00006 7.64124 7.9767 7.7216 7.93212C7.80197 7.88754 7.86966 7.82322 7.91826 7.74522C7.96687 7.66722 7.9948 7.57812 7.99941 7.48633C8.00402 7.39454 7.98517 7.30309 7.94462 7.22061L4.57641 0.35903Z", fill: "rgb(var(--theme-palette-warning-bg-status))" }) }) })));
45
46
  case 'danger':
46
- return (_jsx("span", Object.assign({}, restProps, { className: classes, ref: ref, children: _jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M0.188426 4.45553C0.067771 4.33472 0 4.17097 0 4.00024C0 3.8295 0.067771 3.66575 0.188426 3.54494L3.54489 0.188838C3.6046 0.128979 3.67554 0.0814871 3.75363 0.0490833C3.83173 0.0166795 3.91545 0 4 0C4.08455 0 4.16827 0.0166795 4.24637 0.0490833C4.32446 0.0814871 4.3954 0.128979 4.45511 0.188838L7.81157 3.54494C7.93223 3.66575 8 3.8295 8 4.00024C8 4.17097 7.93223 4.33472 7.81157 4.45553L4.45511 7.81163C4.33437 7.93226 4.17068 8.00003 4 8.00003C3.82932 8.00003 3.66563 7.93226 3.54489 7.81163L0.188426 4.45553Z", fill: "rgb(var(--theme-palette-danger-bg-status))" }) }) })));
47
+ return (_jsx(Component, Object.assign({}, restProps, { className: classes, style: style, ref: ref }, htmlAttributes, { children: _jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M0.188426 4.45553C0.067771 4.33472 0 4.17097 0 4.00024C0 3.8295 0.067771 3.66575 0.188426 3.54494L3.54489 0.188838C3.6046 0.128979 3.67554 0.0814871 3.75363 0.0490833C3.83173 0.0166795 3.91545 0 4 0C4.08455 0 4.16827 0.0166795 4.24637 0.0490833C4.32446 0.0814871 4.3954 0.128979 4.45511 0.188838L7.81157 3.54494C7.93223 3.66575 8 3.8295 8 4.00024C8 4.17097 7.93223 4.33472 7.81157 4.45553L4.45511 7.81163C4.33437 7.93226 4.17068 8.00003 4 8.00003C3.82932 8.00003 3.66563 7.93226 3.54489 7.81163L0.188426 4.45553Z", fill: "rgb(var(--theme-palette-danger-bg-status))" }) }) })));
47
48
  default:
48
- return (_jsx("span", Object.assign({}, restProps, { className: classes, ref: ref, children: _jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("rect", { width: "8", height: "8", rx: "1", fill: "rgb(var(--theme-palette-neutral-bg-status))" }) }) })));
49
+ return (_jsx(Component, Object.assign({}, restProps, { className: classes, style: style, ref: ref }, htmlAttributes, { children: _jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("rect", { width: "8", height: "8", rx: "1", fill: "rgb(var(--theme-palette-neutral-bg-status))" }) }) })));
49
50
  }
50
51
  });
51
52
  //# sourceMappingURL=StatusIndicator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIndicator.js","sourceRoot":"","sources":["../../../src/status-indicator/StatusIndicator.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAUvD,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,eAAe,CACtE,EAAmE,EACnE,GAAwC;QADxC,EAAE,SAAS,EAAE,IAAI,GAAG,SAAS,OAAsC,EAAjC,SAAS,cAA3C,qBAA6C,CAAF;IAG3C,MAAM,OAAO,GAAG,UAAU,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;IAE9D,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,SAAS;YACZ,OAAO,CACL,+BAAU,SAAS,IAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,YAC/C,cACE,KAAK,EAAC,GAAG,EACT,MAAM,EAAC,GAAG,EACV,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,YAElC,iBACE,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAC,GAAG,EACL,IAAI,EAAC,6CAA6C,GAClD,GACE,IACD,CACR,CAAC;QACJ,KAAK,MAAM;YACT,OAAO,CACL,+BAAU,SAAS,IAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,YAC/C,cACE,KAA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version":3,"file":"StatusIndicator.js","sourceRoot":"","sources":["../../../src/status-indicator/StatusIndicator.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAWvD,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,eAAe,CAGtE,EAOqD,EACrD,GAAsB;QARtB,EACE,EAAE,EACF,SAAS,EACT,KAAK,EACL,IAAI,GAAG,SAAS,EAChB,cAAc,OAEqC,EADhD,SAAS,cANd,sDAOC,CADa;IAId,MAAM,OAAO,GAAG,UAAU,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;IAC9D,MAAM,SAAS,GAAsB,EAAE,IAAI,MAAM,CAAC;IAClD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,SAAS;YACZ,OAAO,CACL,KAAC,SAAS,oBACJ,SAAS,IACb,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,IACJ,cAAc,cAElB,cACE,KAAK,EAAC,GAAG,EACT,MAAM,EAAC,GAAG,EACV,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,YAElC,iBACE,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAC,GAAG,EACL,IAAI,EAAC,6CAA6C,GAClD,GACE,IACI,CACb,CAAC;QACJ,KAAK,MAAM;YACT,OAAO,CACL,KAAC,SAAS,oBACJ,SAAS,IACb,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,IACJ,cAAc,cAElB,cACE,KAAK,EAAC,GAAG,EACT,MAAM,EAAC,GAAG,EACV,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B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,CAAC,CAAC,CAAC"}
@@ -40,14 +40,14 @@ const getGeneralTabClasses = (size, fill) => {
40
40
  'ndl-underline-tab': fill === 'underline',
41
41
  };
42
42
  };
43
- const TabsComponent = forwardRef(function TabsComponent({ children, size = 'large', fill = 'underline', onChange, value, className, as, htmlAttributes, }, ref) {
43
+ const TabsComponent = forwardRef(function TabsComponent({ children, size = 'large', fill = 'underline', onChange, value, className, style, as, htmlAttributes, }, ref) {
44
44
  const classes = classNames('ndl-tabs', getGeneralTabClasses(size, fill), className);
45
45
  const Component = as || 'div';
46
- return (_jsx(Component, Object.assign({ className: classes, role: "tablist", ref: ref }, htmlAttributes, { children: _jsx(TabsContext.Provider, { value: { value, size, fill, onChange }, children: children }) })));
46
+ return (_jsx(Component, Object.assign({ className: classes, style: style, role: "tablist", ref: ref }, htmlAttributes, { children: _jsx(TabsContext.Provider, { value: { value, size, fill, onChange }, children: children }) })));
47
47
  });
48
48
  TabsComponent.displayName =
49
49
  'Tabs';
50
- const TabsTab = forwardRef(function TabsTab({ children, tabId, isDisabled = false, className, as, htmlAttributes, }, ref) {
50
+ const TabsTab = forwardRef(function TabsTab({ children, tabId, isDisabled = false, className, style, as, htmlAttributes, }, ref) {
51
51
  const { size, fill, value, onChange } = useTabsContext();
52
52
  const baseClasses = classNames(Object.assign(Object.assign({}, getGeneralTabClasses(size, fill)), { 'ndl-selected': value === tabId, 'ndl-disabled': isDisabled }));
53
53
  const Component = as || 'button';
@@ -57,12 +57,12 @@ const TabsTab = forwardRef(function TabsTab({ children, tabId, isDisabled = fals
57
57
  const castOnChange = onChange;
58
58
  const handleChange = () => !isDisabled && castOnChange(tabId);
59
59
  const classes = classNames('ndl-tab', baseClasses, className);
60
- return (_jsxs(Component, Object.assign({ className: classes, onClick: handleChange, role: "tab", "aria-controls": value === tabId ? getTabPanelId(tabId) : undefined, ref: ref }, htmlAttributes, { children: [children, fill === 'underline' && _jsx("span", { className: "ndl-tab-underline" })] })));
60
+ return (_jsxs(Component, Object.assign({ className: classes, style: style, onClick: handleChange, role: "tab", "aria-controls": value === tabId ? getTabPanelId(tabId) : undefined, ref: ref }, htmlAttributes, { children: [children, fill === 'underline' && _jsx("span", { className: "ndl-tab-underline" })] })));
61
61
  });
62
62
  TabsTab.displayName = 'Tabs.Tab';
63
- const TabsTabPanel = React.forwardRef(function TabsTabPanel({ as, children, value, tabId, htmlAttributes, }, ref) {
63
+ const TabsTabPanel = React.forwardRef(function TabsTabPanel({ as, children, value, tabId, style, className, htmlAttributes, }, ref) {
64
64
  const Component = as || 'div';
65
- return (_jsx(_Fragment, { children: value === tabId && (_jsx(Component, Object.assign({ role: "tabpanel", id: getTabPanelId(tabId), ref: ref }, htmlAttributes, { children: children }))) }));
65
+ return (_jsx(_Fragment, { children: value === tabId && (_jsx(Component, Object.assign({ role: "tabpanel", id: getTabPanelId(tabId), style: style, className: classNames(className), ref: ref }, htmlAttributes, { children: children }))) }));
66
66
  });
67
67
  // To work with forwardRef: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-894053907
68
68
  const Tabs = Object.assign(TabsComponent, {
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/tabs/Tabs.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAA8B,UAAU,EAAE,MAAM,YAAY,CAAC;AAoCpE,8DAA8D;AAC9D,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAA8B,IAAI,CAAC,CAAC;AAE3E,MAAM,cAAc,GAAG,GAAG,EAAE;IAC1B,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IAExC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC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E,WAAW;QAC7B,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,YAAY,EAAE,IAAI,KAAK,QAAQ;QAC/B,WAAW,EAAE,IAAI,KAAK,OAAO;KAC9B,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,CAAyC,EAAE,EAAE;QAC5C,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE,CAAC;YACtB,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,CAAC,CAAC,CAAC;QAChB,CAAC;IACH,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,6BAAK,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAAM,cAAc,eAClD,QAAQ,EACR,WAAW,IAAI,CACd,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,iBAAiB,EAC3B,SAAS,EAAE,cAAc,EACzB,OAAO,EAAE,QAAQ,gBACN,YAAY,YAEvB,KAAC,gBAAgB,KAAG,GACb,CACV,KACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -28,13 +28,13 @@ import { Tooltip } from '../tooltip';
28
28
  /**
29
29
  *
30
30
  *
31
- * Textarea Component
31
+ * TextArea Component
32
32
  *
33
33
  *
34
34
  */
35
- export const Textarea = forwardRef(function Textarea(props, ref) {
36
- const { label, isFluid, errorText, helpText, isOptional = false, informationIconText, size = 'medium', ariaLabel: ariaLabel, tooltipProps, isDisabled, className, isReadOnly, htmlAttributes, } = props;
37
- const containerWrappingClasses = classNames(`ndl-textarea ndl-type-text`, className, {
35
+ export const TextArea = forwardRef(function TextArea(props, ref) {
36
+ const { label, isFluid, errorText, helpText, isOptional = false, informationIconText, size = 'medium', ariaLabel: ariaLabel, tooltipProps, isDisabled, className, isReadOnly, value, placeholder, htmlAttributes, } = props;
37
+ const containerWrappingClasses = classNames(`ndl-text-area ndl-type-text`, className, {
38
38
  'ndl-disabled': isDisabled,
39
39
  'ndl-small': size === 'small',
40
40
  'ndl-medium': size === 'medium',
@@ -44,15 +44,15 @@ export const Textarea = forwardRef(function Textarea(props, ref) {
44
44
  'ndl-has-icon': errorText,
45
45
  });
46
46
  const hasEmptyLabelValue = !label || label === '';
47
- const labelWrappingClasses = classNames('ndl-textarea-label', {
47
+ const labelWrappingClasses = classNames('ndl-text-area-label', {
48
48
  'ndl-fluid': isFluid,
49
- 'ndl-textarea-no-label': hasEmptyLabelValue,
49
+ 'ndl-text-area-no-label': hasEmptyLabelValue,
50
50
  });
51
51
  const isCustomLabel = label && typeof label !== 'string';
52
52
  const hasCustomLabelAndNoAriaLabel = isCustomLabel && !ariaLabel;
53
53
  useMemo(() => {
54
54
  if (!label && !ariaLabel) {
55
- needleWarningMessage('A Textarea without a label does not have an aria label, be sure to include an aria label for screen readers link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI');
55
+ needleWarningMessage('A TextArea without a label does not have an aria label, be sure to include an aria label for screen readers link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI');
56
56
  }
57
57
  if (hasCustomLabelAndNoAriaLabel) {
58
58
  needleWarningMessage(customLabelAndNoAriaLabelWarningMessage);
@@ -62,6 +62,6 @@ export const Textarea = forwardRef(function Textarea(props, ref) {
62
62
  'ndl-information-icon-small': size === 'small' || size === 'medium',
63
63
  'ndl-information-icon-large': size === 'large',
64
64
  });
65
- return (_jsxs("div", { className: containerWrappingClasses, children: [_jsxs("label", { className: labelWrappingClasses, children: [_jsx("div", { className: "ndl-textarea-wrapper", children: _jsx("textarea", Object.assign({ disabled: isDisabled, ref: ref, "aria-label": ariaLabel, readOnly: isReadOnly }, htmlAttributes)) }), !hasEmptyLabelValue && (_jsxs("div", { className: "ndl-textarea-wrapper", children: [_jsx("span", { className: "ndl-textarea-label-text", children: label }), informationIconText && (_jsxs(Tooltip, Object.assign({ type: "simple" }, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipRoot, { children: [_jsx(Tooltip.Trigger, Object.assign({}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipTrigger, { children: _jsx("div", { className: informationIconClasses, "data-testid": "ndl-information-icon", children: _jsx(InformationCircleIconOutline, {}) }) })), _jsx(Tooltip.Content, Object.assign({}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipContent, { children: informationIconText }))] }))), isOptional && (_jsx("span", { className: "ndl-textarea-optional", children: "Optional" }))] }))] }), helpText && !errorText && (_jsx("div", { className: "ndl-textarea-msg", children: helpText })), errorText && (_jsxs("div", { className: "ndl-textarea-msg", children: [_jsx("div", { className: "ndl-error-icon", children: _jsx(ExclamationCircleIconSolid, {}) }), _jsx("div", { className: "ndl-error-text", children: errorText })] }))] }));
65
+ return (_jsxs("div", { className: containerWrappingClasses, children: [_jsxs("label", { className: labelWrappingClasses, children: [_jsx("div", { className: "ndl-text-area-wrapper", children: _jsx("textarea", Object.assign({ disabled: isDisabled, ref: ref, "aria-label": ariaLabel, readOnly: isReadOnly, value: value, placeholder: placeholder }, htmlAttributes)) }), !hasEmptyLabelValue && (_jsxs("div", { className: "ndl-text-area-wrapper", children: [_jsx("span", { className: "ndl-text-area-label-text", children: label }), informationIconText && (_jsxs(Tooltip, Object.assign({ type: "simple" }, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipRoot, { children: [_jsx(Tooltip.Trigger, Object.assign({}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipTrigger, { children: _jsx("div", { className: informationIconClasses, "data-testid": "ndl-information-icon", children: _jsx(InformationCircleIconOutline, {}) }) })), _jsx(Tooltip.Content, Object.assign({}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipContent, { children: informationIconText }))] }))), isOptional && (_jsx("span", { className: "ndl-text-area-optional", children: "Optional" }))] }))] }), helpText && !errorText && (_jsx("div", { className: "ndl-text-area-msg", children: helpText })), errorText && (_jsxs("div", { className: "ndl-text-area-msg", children: [_jsx("div", { className: "ndl-error-icon", children: _jsx(ExclamationCircleIconSolid, {}) }), _jsx("div", { className: "ndl-error-text", children: errorText })] }))] }));
66
66
  });
67
- //# sourceMappingURL=Textarea.js.map
67
+ //# sourceMappingURL=TextArea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../src/text-area/TextArea.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAc,EAGZ,UAAU,EACV,OAAO,GACR,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,uCAAuC,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAyDrC;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,QAAQ,CAClD,KAAoB,EACpB,GAAsC;IAEtC,MAAM,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,UAAU,GAAG,KAAK,EAClB,mBAAmB,EACnB,IAAI,GAAG,QAAQ,EACf,SAAS,EAAE,SAAS,EACpB,YAAY,EACZ,UAAU,EACV,SAAS,EACT,UAAU,EACV,KAAK,EACL,WAAW,EACX,cAAc,GACf,GAAG,KAAK,CAAC;IAEV,MAAM,wBAAwB,GAAG,UAAU,CACzC,6BAA6B,EAC7B,SAAS,EACT;QACE,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,YAAY,EAAE,IAAI,KAAK,QAAQ;QAC/B,WAAW,EAAE,IAAI,KAAK,OAAO;QAC7B,eAAe,EAAE,SAAS;QAC1B,oBAAoB,EAAE,SAAS;QAC/B,cAAc,EAAE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I,EAAC,QAAQ,IAAK,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,WAAW,eAClD,KAAC,OAAO,CAAC,OAAO,oBAAK,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,cAAc,cAC/C,cACE,SAAS,EAAE,sBAAsB,iBACrB,sBAAsB,YAElC,KAAC,4BAA4B,KAAG,GAC5B,IACU,EAClB,KAAC,OAAO,CAAC,OAAO,oBAAK,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,cAAc,cAC9C,mBAAmB,IACJ,KACV,CACX,EACA,UAAU,IAAI,CACb,eAAM,SAAS,EAAC,wBAAwB,yBAAgB,CACzD,IACG,CACP,IACK,EACP,QAAQ,IAAI,CAAC,SAAS,IAAI,CACzB,cAAK,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAO,CACpD,EACA,SAAS,IAAI,CACZ,eAAK,SAAS,EAAC,mBAAmB,aAChC,cAAK,SAAS,EAAC,gBAAgB,YAC7B,KAAC,0BAA0B,KAAG,GAC1B,EACN,cAAK,SAAS,EAAC,gBAAgB,YAAE,SAAS,GAAO,IAC7C,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -18,5 +18,5 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
- export * from './Textarea';
21
+ export * from './TextArea';
22
22
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-area/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,YAAY,CAAC"}
@@ -34,7 +34,7 @@ import { Tooltip } from '../tooltip';
34
34
  *
35
35
  */
36
36
  export const TextInput = forwardRef(function TextInput(props, ref) {
37
- const { label, isFluid, errorText, helpText, leftElement, rightElement, isOptional = false, informationIconText, size = 'medium', value, tooltipProps, htmlAttributes, isDisabled, isReadOnly, isRequired, className, } = props;
37
+ const { label, isFluid, errorText, helpText, leftElement, rightElement, isOptional = false, informationIconText, size = 'medium', placeholder, value, tooltipProps, htmlAttributes, isDisabled, isReadOnly, isRequired, onChange, className, style, } = props;
38
38
  const containerWrappingClasses = classNames(`ndl-text-input`, className, {
39
39
  'ndl-disabled': isDisabled,
40
40
  'ndl-read-only': isReadOnly,
@@ -67,6 +67,6 @@ export const TextInput = forwardRef(function TextInput(props, ref) {
67
67
  'ndl-information-icon-small': size === 'small' || size === 'medium',
68
68
  'ndl-information-icon-large': size === 'large',
69
69
  });
70
- return (_jsxs("div", { className: containerWrappingClasses, children: [_jsxs("label", { className: labelWrappingClasses, children: [!hasEmptyLabelValue && (_jsxs("div", { className: "ndl-label-text-wrapper", children: [_jsx(Typography, { variant: size === 'large' ? 'body-large' : 'body-medium', className: "ndl-label-text", children: label }), informationIconText && (_jsxs(Tooltip, Object.assign({}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipRoot, { type: "simple", children: [_jsx(Tooltip.Trigger, Object.assign({}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipTrigger, { className: informationIconClasses, children: _jsx(InformationCircleIconOutline, {}) })), _jsx(Tooltip.Content, Object.assign({}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipContent, { children: informationIconText }))] }))), isOptional && (_jsx(Typography, { variant: size === 'large' ? 'body-large' : 'body-medium', className: "ndl-form-item-optional", children: "Optional" }))] })), _jsxs("div", { className: "ndl-input-wrapper", children: [leftElement && (_jsx("div", { className: "ndl-element-left ndl-element", children: leftElement })), _jsx("input", Object.assign({ readOnly: isReadOnly, disabled: isDisabled, required: isRequired, value: value, type: "text" }, combinedHtmlInputAttributes, { ref: ref })), rightElement && (_jsx("div", { className: "ndl-element-right ndl-element", children: rightElement }))] })] }), helpText && !errorText && (_jsx(Typography, { variant: size === 'large' ? 'body-medium' : 'body-small', className: "ndl-form-message", children: helpText })), errorText && (_jsxs("div", { className: "ndl-form-message", children: [_jsx("div", { className: "ndl-error-icon", children: _jsx(ExclamationCircleIconSolid, {}) }), _jsx(Typography, { className: "ndl-error-text", variant: size === 'large' ? 'body-medium' : 'body-small', children: errorText })] }))] }));
70
+ return (_jsxs("div", { className: containerWrappingClasses, style: style, children: [_jsxs("label", { className: labelWrappingClasses, children: [!hasEmptyLabelValue && (_jsxs("div", { className: "ndl-label-text-wrapper", children: [_jsx(Typography, { variant: size === 'large' ? 'body-large' : 'body-medium', className: "ndl-label-text", children: label }), informationIconText && (_jsxs(Tooltip, Object.assign({}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipRoot, { type: "simple", children: [_jsx(Tooltip.Trigger, Object.assign({}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipTrigger, { className: informationIconClasses, children: _jsx(InformationCircleIconOutline, {}) })), _jsx(Tooltip.Content, Object.assign({}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipContent, { children: informationIconText }))] }))), isOptional && (_jsx(Typography, { variant: size === 'large' ? 'body-large' : 'body-medium', className: "ndl-form-item-optional", children: "Optional" }))] })), _jsxs("div", { className: "ndl-input-wrapper", children: [leftElement && (_jsx("div", { className: "ndl-element-left ndl-element", children: leftElement })), _jsx("input", Object.assign({ readOnly: isReadOnly, disabled: isDisabled, required: isRequired, value: value, placeholder: placeholder, type: "text", onChange: onChange }, combinedHtmlInputAttributes, { ref: ref })), rightElement && (_jsx("div", { className: "ndl-element-right ndl-element", children: rightElement }))] })] }), helpText && !errorText && (_jsx(Typography, { variant: size === 'large' ? 'body-medium' : 'body-small', className: "ndl-form-message", children: helpText })), errorText && (_jsxs("div", { className: "ndl-form-message", children: [_jsx("div", { className: "ndl-error-icon", children: _jsx(ExclamationCircleIconSolid, {}) }), _jsx(Typography, { className: "ndl-error-text", variant: size === 'large' ? 'body-medium' : 'body-small', children: errorText })] }))] }));
71
71
  });
72
72
  //# sourceMappingURL=TextInput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ACP,QAAQ,IAAI,CAAC,SAAS,IAAI,CACzB,KAAC,UAAU,IACT,OAAO,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,EACxD,SAAS,EAAC,kBAAkB,YAE3B,QAAQ,GACE,CACd,EACA,SAAS,IAAI,CACZ,eAAK,SAAS,EAAC,kBAAkB,aAC/B,cAAK,SAAS,EAAC,gBAAgB,YAC7B,KAAC,0BAA0B,KAAG,GAC1B,EACN,KAAC,UAAU,IACT,SAAS,EAAC,gBAAgB,EAC1B,OAAO,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,YAEvD,SAAS,GACC,IACT,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -28,6 +28,6 @@ export const TextLink = React.forwardRef(function TextLink({ children, href, isE
28
28
  const classes = classNames('ndl-text-link', className, {
29
29
  'ndl-external-link': isExternalLink,
30
30
  });
31
- return (_jsxs(Component, Object.assign({ className: classes, href: href, ref: ref }, (propsTarget && { target: propsTarget }), htmlAttributes, { children: [_jsx("div", { children: children }), isExternalLink && (_jsx("div", { children: _jsx(ArrowUpRightIconOutline, { className: "ndl-external-link-icon" }) }))] })));
31
+ return (_jsxs(Component, Object.assign({ className: classes, href: href, ref: ref }, (propsTarget && { target: propsTarget }), htmlAttributes, { children: [children, isExternalLink && (_jsx(ArrowUpRightIconOutline, { className: "ndl-external-link-icon" }))] })));
32
32
  });
33
33
  //# sourceMappingURL=TextLink.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextLink.js","sourceRoot":"","sources":["../../../src/text-link/TextLink.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AA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GAAsB;IAEtB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAE/D,MAAM,SAAS,GAAG,EAAE,IAAI,GAAG,CAAC;IAE5B,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,EAAE,SAAS,EAAE;QACrD,mBAAmB,EAAE,cAAc;KACpC,CAAC,CAAC;IAEH,OAAO,CACL,MAAC,SAAS,kBACR,SAAS,EAAE,OAAO,EAClB,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAG,IACJ,CAAC,WAAW,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,EACxC,cAAc,eAEjB,QAAQ,EACR,cAAc,IAAI,CACjB,KAAC,uBAAuB,IAAC,SAAS,EAAC,wBAAwB,GAAG,CAC/D,KACS,CACb,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -35,4 +35,4 @@ export interface CodeBlockWrapperProps {
35
35
  export declare const CodeBlockWrapper: React.ForwardRefExoticComponent<{
36
36
  htmlAttributes?: import("./types").HtmlAttributes<React.ElementType<any>> | undefined;
37
37
  as?: React.ElementType<any> | undefined;
38
- } & CodeBlockWrapperProps & React.RefAttributes<unknown>>;
38
+ } & CodeBlockWrapperProps & import("./types").CommonComponentProps & React.RefAttributes<unknown>>;
@@ -40,10 +40,19 @@ export interface RadioAndCheckboxProps extends Omit<CommonInputProps, 'label'> {
40
40
  onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
41
41
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
42
42
  type?: ComponentPropsWithoutRef<'input'>['type'];
43
+ value?: React.InputHTMLAttributes<HTMLInputElement>['value'];
43
44
  ariaLabel?: string;
44
45
  isDefaultChecked?: boolean;
45
46
  /** HTML attributes */
46
47
  htmlAttributes?: HtmlAttributes<'input'>;
48
+ /**
49
+ * Additional classnames will be applied to the root element.
50
+ */
51
+ className?: string;
52
+ /**
53
+ * Additional css styling. Will be applied to the root element.
54
+ */
55
+ style?: React.CSSProperties;
47
56
  }
48
57
  /** Add any helper functions here. */
49
58
  /**
@@ -18,7 +18,17 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
- import { type ComponentPropsWithoutRef } from 'react';
21
+ import { type ComponentPropsWithoutRef, type CSSProperties } from 'react';
22
+ export type CommonComponentProps = {
23
+ /**
24
+ * Additional classnames will be applied to the root element.
25
+ */
26
+ className?: string;
27
+ /**
28
+ * Additional css styling. Will be applied to the root element.
29
+ */
30
+ style?: CSSProperties;
31
+ };
22
32
  export type PolymorphicComponentProps<T extends React.ElementType, Props = Record<string, never>> = {
23
33
  /**
24
34
  * Html attributes to apply to the root element. This will override any default html attributes, use with caution.
@@ -29,7 +39,7 @@ export type PolymorphicComponentProps<T extends React.ElementType, Props = Recor
29
39
  * Can also be another React component.
30
40
  */
31
41
  as?: T;
32
- } & Props;
42
+ } & Props & CommonComponentProps;
33
43
  export type PolymorphicRef<T extends React.ElementType> = React.ComponentPropsWithRef<T>['ref'];
34
44
  export type PolymorphicComponentPropsWithRef<T extends React.ElementType, Props = Record<string, never>> = PolymorphicComponentProps<T, Props> & {
35
45
  ref?: PolymorphicRef<T>;
@@ -19,15 +19,11 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
- import { type HtmlAttributes } from '../_common/types';
22
+ import { type PolymorphicComponentProps, type HtmlAttributes } from '../_common/types';
23
23
  export type AccordionItemId = string | number | undefined;
24
24
  export interface AccordionBase {
25
25
  /** The component children. */
26
26
  children: React.ReactNode;
27
- /** Additional className */
28
- className?: string;
29
- /** HtmlAttributes */
30
- htmlAttributes?: HtmlAttributes<'div'>;
31
27
  }
32
28
  interface IsNotMultiple<T extends AccordionItemId> {
33
29
  isMultiple: false | undefined;
@@ -58,9 +54,9 @@ export interface AccordionItemProps<T extends AccordionItemId> {
58
54
  children?: React.ReactNode;
59
55
  className?: string;
60
56
  }
61
- declare const Accordion: (<T extends AccordionItemId>(props: AccordionProps<T> & React.RefAttributes<unknown>) => React.ReactElement | null) & {
57
+ declare const Accordion: (<T extends AccordionItemId, U extends React.ElementType = "div">(props: PolymorphicComponentProps<U, AccordionProps<T>> & React.RefAttributes<unknown>) => React.ReactElement | null) & {
62
58
  Item: {
63
- <T extends AccordionItemId>({ itemId, children, title, className, arrowPosition, isDisabled, onExpandedChange, htmlAttributes, ...restProps }: AccordionItemProps<T>): import("react/jsx-runtime").JSX.Element;
59
+ <T extends AccordionItemId, U extends React.ElementType = "div">({ itemId, children, title, className, arrowPosition, isDisabled, onExpandedChange, htmlAttributes, style, as, }: PolymorphicComponentProps<U, AccordionItemProps<T>>): import("react/jsx-runtime").JSX.Element;
64
60
  displayName: string;
65
61
  };
66
62
  };
@@ -30,7 +30,6 @@ export type AvatarProps = {
30
30
  source?: string;
31
31
  status?: 'offline' | 'online' | 'unknown' | undefined;
32
32
  type?: 'icon' | 'image' | 'letters';
33
- className?: string;
34
33
  } & ({
35
34
  as: 'button';
36
35
  onClick: () => void;
@@ -40,7 +39,6 @@ export type AvatarProps = {
40
39
  type AvatarComponent = <T extends React.ElementType = 'div'>(props: PolymorphicComponentPropsWithRef<T, AvatarProps>) => React.ReactNode | null;
41
40
  export declare const defaultProps: {
42
41
  as: "div";
43
- className: undefined;
44
42
  hasStatus: false;
45
43
  isDisabled: false;
46
44
  name: undefined;
@@ -19,7 +19,7 @@
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
21
  import React from 'react';
22
- import { type HtmlAttributes, type PolymorphicComponentPropsWithRef } from '../_common/types';
22
+ import { type HtmlAttributes, type PolymorphicComponentProps, type PolymorphicComponentPropsWithRef } from '../_common/types';
23
23
  /**
24
24
  *
25
25
  *
@@ -92,7 +92,7 @@ type NonCloseableBannerProps = {
92
92
  type BannerCloseProps = CloseableBannerProps | NonCloseableBannerProps;
93
93
  export type BannerProps = BannerCommonProps & BannerCloseProps & BannerUsageProps;
94
94
  export type BannerType = 'info' | 'success' | 'warning' | 'danger' | 'neutral';
95
- declare const BannerNamespace: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>> & {
95
+ declare const BannerNamespace: React.ForwardRefExoticComponent<PolymorphicComponentProps<React.ElementType<any>, BannerProps> & React.RefAttributes<unknown>> & {
96
96
  Actions: BannerActionsComponent;
97
97
  };
98
98
  export { BannerNamespace as Banner };
@@ -45,7 +45,6 @@ type BaseButtonProps = {
45
45
  onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
46
46
  /** OnKeyDown callback */
47
47
  onKeyDown?: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
48
- className?: string;
49
48
  } & ({
50
49
  as: 'a';
51
50
  href: HtmlAttributes<'a'>['href'];
@@ -36,11 +36,11 @@ export interface CollapsibleButtonWrapperProps {
36
36
  export declare const IconButtonArrayComponent: React.ForwardRefExoticComponent<{
37
37
  htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
38
38
  as?: React.ElementType<any> | undefined;
39
- } & IconButtonArrayProps & React.RefAttributes<unknown>>;
39
+ } & IconButtonArrayProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
40
40
  declare const IconButtonArray: React.ForwardRefExoticComponent<{
41
41
  htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
42
42
  as?: React.ElementType<any> | undefined;
43
- } & IconButtonArrayProps & React.RefAttributes<unknown>> & {
43
+ } & IconButtonArrayProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>> & {
44
44
  CollapsibleButtonWrapper: React.FC<CollapsibleButtonWrapperProps>;
45
45
  };
46
46
  export { IconButtonArray };
@@ -48,4 +48,4 @@ export type CalloutType = 'note' | 'important' | 'example' | 'tip';
48
48
  export declare const Callout: React.ForwardRefExoticComponent<{
49
49
  htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
50
50
  as?: React.ElementType<any> | undefined;
51
- } & CalloutProps & React.RefAttributes<unknown>>;
51
+ } & CalloutProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
@@ -30,7 +30,7 @@ export interface ChartTooltipProps {
30
30
  export declare const ChartTooltipComponent: React.ForwardRefExoticComponent<{
31
31
  htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
32
32
  as?: React.ElementType<any> | undefined;
33
- } & ChartTooltipProps & React.RefAttributes<unknown>>;
33
+ } & ChartTooltipProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
34
34
  export type ChartTooltipContentProps = {
35
35
  leftElement?: React.ReactNode;
36
36
  rightElement?: React.ReactNode;
@@ -44,7 +44,7 @@ export type ChartTooltipContentProps = {
44
44
  declare const ChartTooltip: React.ForwardRefExoticComponent<{
45
45
  htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
46
46
  as?: React.ElementType<any> | undefined;
47
- } & ChartTooltipProps & React.RefAttributes<unknown>> & {
47
+ } & ChartTooltipProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>> & {
48
48
  Title: React.ForwardRefExoticComponent<{
49
49
  children: React.ReactNode;
50
50
  } & React.RefAttributes<unknown>>;
@@ -52,7 +52,7 @@ declare const ChartTooltip: React.ForwardRefExoticComponent<{
52
52
  Link: React.ForwardRefExoticComponent<Omit<{
53
53
  htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
54
54
  as?: React.ElementType<any> | undefined;
55
- } & import("../text-link").TextLinkProps & {
55
+ } & import("../text-link").TextLinkProps & import("../_common/types").CommonComponentProps & {
56
56
  ref?: any;
57
57
  }, "ref"> & React.RefAttributes<unknown>>;
58
58
  };
@@ -76,7 +76,7 @@ export declare const ChartsContext: import("react").Context<ChartsContextType>;
76
76
  declare const Charts: import("react").ForwardRefExoticComponent<{
77
77
  htmlAttributes?: import("../_common/types").HtmlAttributes<import("react").ElementType<any>> | undefined;
78
78
  as?: import("react").ElementType<any> | undefined;
79
- } & ChartsProps & import("react").RefAttributes<unknown>> & {
79
+ } & ChartsProps & import("../_common/types").CommonComponentProps & import("react").RefAttributes<unknown>> & {
80
80
  Chart: import("react").ForwardRefExoticComponent<import("./Chart").ChartProps & import("react").RefAttributes<unknown>> & {
81
81
  Line: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Line").LineProps & import("react").RefAttributes<SVGPathElement>>>;
82
82
  };
@@ -49,7 +49,6 @@ export interface BlockProps {
49
49
  export interface CommonProps {
50
50
  code: string;
51
51
  isDisabled?: boolean;
52
- className?: string;
53
52
  }
54
53
  type ConditionalProps = InlineProps | BlockProps;
55
54
  type Props = CommonProps & ConditionalProps;
@@ -18,5 +18,5 @@
18
18
  * You should have received a copy of the GNU General Public License
19
19
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  */
21
- export declare const Languages: readonly ["asciidoc", "bash", "c", "csharp", "css", "css-extras", "cypher", "docker", "json", "go", "graphql", "java", "javadoc", "javascript", "jsx", "kotlin", "php", "python", "regex", "rust", "sql", "typescript"];
21
+ export declare const Languages: readonly ["asciidoc", "bash", "c", "csharp", "css", "css-extras", "cypher", "docker", "json", "go", "graphql", "java", "javadoc", "javascript", "jsx", "kotlin", "php", "python", "regex", "rust", "sql", "typescript", "yaml"];
22
22
  export type LanguageProp = (typeof Languages)[number];
@@ -34,7 +34,7 @@ export interface MenuItemProps {
34
34
  declare const MenuItem: React.ForwardRefExoticComponent<{
35
35
  htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
36
36
  as?: React.ElementType<any> | undefined;
37
- } & MenuItemProps & React.RefAttributes<unknown>>;
37
+ } & MenuItemProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
38
38
  export type NestedMenuItemProps = Omit<React.ComponentProps<typeof MenuItem>, 'children'>;
39
39
  export interface ContextMenuProps {
40
40
  isOpen?: boolean;
@@ -49,7 +49,6 @@ export interface ContextMenuProps {
49
49
  }
50
50
  export interface MenuItemsProps {
51
51
  children: React.ReactNode;
52
- className?: string;
53
52
  }
54
53
  export interface MenuSubheaderProps {
55
54
  title: string;
@@ -66,13 +65,16 @@ declare const Menu: React.ForwardRefExoticComponent<ContextMenuProps & React.Ref
66
65
  Item: React.ForwardRefExoticComponent<{
67
66
  htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
68
67
  as?: React.ElementType<any> | undefined;
69
- } & MenuItemProps & React.RefAttributes<unknown>>;
70
- Items: ({ children, className }: MenuItemsProps) => import("react/jsx-runtime").JSX.Element;
68
+ } & MenuItemProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
69
+ Items: React.ForwardRefExoticComponent<{
70
+ htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
71
+ as?: React.ElementType<any> | undefined;
72
+ } & MenuItemsProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
71
73
  Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLHRElement>>;
72
74
  Subheader: (props: MenuSubheaderProps) => import("react/jsx-runtime").JSX.Element;
73
75
  Header: React.ForwardRefExoticComponent<{
74
76
  htmlAttributes?: import("../_common/types").HtmlAttributes<React.ElementType<any>> | undefined;
75
77
  as?: React.ElementType<any> | undefined;
76
- } & MenuHeaderProps & React.RefAttributes<unknown>>;
78
+ } & MenuHeaderProps & import("../_common/types").CommonComponentProps & React.RefAttributes<unknown>>;
77
79
  };
78
80
  export { Menu };
@@ -22,6 +22,7 @@ import { type Cell, type CellContext, type Header as HeaderType, type Row, type
22
22
  import { type IconButtonProps } from '../button';
23
23
  import { Menu } from '../context-menu';
24
24
  import { type ColumnAction } from './datagrid-types';
25
+ import NoDataIllustration from './illustrations/NoData';
25
26
  type MenuItemProps = React.ComponentProps<typeof Menu.Item>;
26
27
  export declare const DEFAULT_SORT_ACTIONS: (cell: HeaderType<any, unknown>) => {
27
28
  [key in SortDirection | 'default']: ColumnAction;
@@ -99,6 +100,8 @@ declare const PaginationNumericButtons: () => import("react/jsx-runtime").JSX.El
99
100
  declare const Pagination: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
100
101
  declare const Navigation: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
101
102
  declare const LoadingPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
103
+ declare const NoDataPlaceholder: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
104
+ export declare const NoDataPlaceholderContentWrapper: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
102
105
  export interface InlineEditCellProps<T extends RowData> {
103
106
  cell: CellContext<T, unknown>;
104
107
  value: string;
@@ -113,8 +116,4 @@ export interface DropDownCellProps<T extends RowData> {
113
116
  portalTarget?: HTMLElement;
114
117
  }
115
118
  declare const DropDownCell: <T extends RowData>({ cell, options, portalTarget, }: DropDownCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
116
- declare const NoDataPlaceholder: (({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element) & {
117
- Content: ({ children, innerProps, }: CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
118
- Illustration: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
119
- };
120
- export { ResizingBar, Header, Body, BodyCell, BodyRow, InlineEditCell, DropDownCell, RowActionCell, HeaderCell, HeaderTitle, Navigation, TableResults, RowsPerPage, Pagination, PaginationNumericButtons, PaginationArrowButton, PaginationNumericButton, NoDataPlaceholder, LoadingPlaceholder, Scrollable, };
119
+ export { ResizingBar, Header, Body, BodyCell, BodyRow, InlineEditCell, DropDownCell, RowActionCell, HeaderCell, HeaderTitle, Navigation, TableResults, RowsPerPage, Pagination, PaginationNumericButtons, PaginationArrowButton, PaginationNumericButton, NoDataPlaceholder, NoDataIllustration, LoadingPlaceholder, Scrollable, };
@@ -43,10 +43,9 @@ export declare const DataGridComponents: {
43
43
  PaginationNumericButton: ({ currentIndex, isSelected, children, innerProps, }: import("./Components").PaginationNumericButtonProps) => import("react/jsx-runtime").JSX.Element;
44
44
  PaginationArrowButton: ({ action, children, innerProps, }: import("./Components").PaginationArrowButtonProps) => import("react/jsx-runtime").JSX.Element;
45
45
  LoadingPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
46
- NoDataPlaceholder: (({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element) & {
47
- Content: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
48
- Illustration: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
49
- };
46
+ NoDataPlaceholder: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
47
+ NoDataIllustration: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
48
+ NoDataPlaceholderContentWrapper: ({ children, innerProps, }: import("./Components").CommonInnerProps<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
50
49
  Scrollable: ({ children, innerProps }: import("./Components").CommonInnerProps) => import("react/jsx-runtime").JSX.Element;
51
50
  };
52
51
  declare enum BorderStyleEnum {