@backstage/ui 0.6.0 → 0.7.0-next.0

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 (132) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/css/styles.css +92 -138
  3. package/dist/components/Avatar/Avatar.esm.js +29 -0
  4. package/dist/components/Avatar/Avatar.esm.js.map +1 -0
  5. package/dist/components/Box/Box.esm.js +34 -0
  6. package/dist/components/Box/Box.esm.js.map +1 -0
  7. package/dist/components/Box/Box.props.esm.js +7 -0
  8. package/dist/components/Box/Box.props.esm.js.map +1 -0
  9. package/dist/components/Button/Button.esm.js +41 -0
  10. package/dist/components/Button/Button.esm.js.map +1 -0
  11. package/dist/components/ButtonIcon/ButtonIcon.esm.js +37 -0
  12. package/dist/components/ButtonIcon/ButtonIcon.esm.js.map +1 -0
  13. package/dist/components/ButtonLink/ButtonLink.esm.js +42 -0
  14. package/dist/components/ButtonLink/ButtonLink.esm.js.map +1 -0
  15. package/dist/components/Card/Card.esm.js +53 -0
  16. package/dist/components/Card/Card.esm.js.map +1 -0
  17. package/dist/components/Checkbox/Checkbox.esm.js +74 -0
  18. package/dist/components/Checkbox/Checkbox.esm.js.map +1 -0
  19. package/dist/components/Collapsible/Collapsible.esm.js +50 -0
  20. package/dist/components/Collapsible/Collapsible.esm.js.map +1 -0
  21. package/dist/components/Container/Container.esm.js +35 -0
  22. package/dist/components/Container/Container.esm.js.map +1 -0
  23. package/dist/components/DataTable/DataTable.esm.js +26 -0
  24. package/dist/components/DataTable/DataTable.esm.js.map +1 -0
  25. package/dist/components/DataTable/Pagination/DataTablePagination.esm.js +84 -0
  26. package/dist/components/DataTable/Pagination/DataTablePagination.esm.js.map +1 -0
  27. package/dist/components/DataTable/Root/DataTableRoot.esm.js +24 -0
  28. package/dist/components/DataTable/Root/DataTableRoot.esm.js.map +1 -0
  29. package/dist/components/DataTable/Table/DataTableTable.esm.js +64 -0
  30. package/dist/components/DataTable/Table/DataTableTable.esm.js.map +1 -0
  31. package/dist/components/FieldError/FieldError.esm.js +22 -0
  32. package/dist/components/FieldError/FieldError.esm.js.map +1 -0
  33. package/dist/components/FieldLabel/FieldLabel.esm.js +27 -0
  34. package/dist/components/FieldLabel/FieldLabel.esm.js.map +1 -0
  35. package/dist/components/Flex/Flex.esm.js +26 -0
  36. package/dist/components/Flex/Flex.esm.js.map +1 -0
  37. package/dist/components/Flex/Flex.props.esm.js +31 -0
  38. package/dist/components/Flex/Flex.props.esm.js.map +1 -0
  39. package/dist/components/Grid/Grid.esm.js +43 -0
  40. package/dist/components/Grid/Grid.esm.js.map +1 -0
  41. package/dist/components/Grid/Grid.props.esm.js +58 -0
  42. package/dist/components/Grid/Grid.props.esm.js.map +1 -0
  43. package/dist/components/Header/Header.esm.js +46 -0
  44. package/dist/components/Header/Header.esm.js.map +1 -0
  45. package/dist/components/Header/HeaderToolbar.esm.js +132 -0
  46. package/dist/components/Header/HeaderToolbar.esm.js.map +1 -0
  47. package/dist/components/HeaderPage/HeaderPage.esm.js +57 -0
  48. package/dist/components/HeaderPage/HeaderPage.esm.js.map +1 -0
  49. package/dist/components/Icon/Icon.esm.js +29 -0
  50. package/dist/components/Icon/Icon.esm.js.map +1 -0
  51. package/dist/components/Icon/context.esm.js +10 -0
  52. package/dist/components/Icon/context.esm.js.map +1 -0
  53. package/dist/components/Icon/icons.esm.js +63 -0
  54. package/dist/components/Icon/icons.esm.js.map +1 -0
  55. package/dist/components/Icon/provider.esm.js +12 -0
  56. package/dist/components/Icon/provider.esm.js.map +1 -0
  57. package/dist/components/Link/Link.esm.js +67 -0
  58. package/dist/components/Link/Link.esm.js.map +1 -0
  59. package/dist/components/Menu/Combobox.esm.js +212 -0
  60. package/dist/components/Menu/Combobox.esm.js.map +1 -0
  61. package/dist/components/Menu/Menu.esm.js +224 -0
  62. package/dist/components/Menu/Menu.esm.js.map +1 -0
  63. package/dist/components/RadioGroup/RadioGroup.esm.js +71 -0
  64. package/dist/components/RadioGroup/RadioGroup.esm.js.map +1 -0
  65. package/dist/components/ScrollArea/ScrollArea.esm.js +63 -0
  66. package/dist/components/ScrollArea/ScrollArea.esm.js.map +1 -0
  67. package/dist/components/SearchField/SearchField.esm.js +107 -0
  68. package/dist/components/SearchField/SearchField.esm.js.map +1 -0
  69. package/dist/components/Select/Select.esm.js +89 -0
  70. package/dist/components/Select/Select.esm.js.map +1 -0
  71. package/dist/components/Select/Select.styles.css.esm.js +7 -0
  72. package/dist/components/Select/Select.styles.css.esm.js.map +1 -0
  73. package/dist/components/Skeleton/Skeleton.esm.js +22 -0
  74. package/dist/components/Skeleton/Skeleton.esm.js.map +1 -0
  75. package/dist/components/Switch/Switch.esm.js +18 -0
  76. package/dist/components/Switch/Switch.esm.js.map +1 -0
  77. package/dist/components/Table/Table.esm.js +68 -0
  78. package/dist/components/Table/Table.esm.js.map +1 -0
  79. package/dist/components/Table/TableCell/TableCell.esm.js +13 -0
  80. package/dist/components/Table/TableCell/TableCell.esm.js.map +1 -0
  81. package/dist/components/Table/TableCellLink/TableCellLink.esm.js +28 -0
  82. package/dist/components/Table/TableCellLink/TableCellLink.esm.js.map +1 -0
  83. package/dist/components/Table/TableCellProfile/TableCellProfile.esm.js +40 -0
  84. package/dist/components/Table/TableCellProfile/TableCellProfile.esm.js.map +1 -0
  85. package/dist/components/Table/TableCellText/TableCellText.esm.js +27 -0
  86. package/dist/components/Table/TableCellText/TableCellText.esm.js.map +1 -0
  87. package/dist/components/Tabs/Tabs.esm.js +139 -0
  88. package/dist/components/Tabs/Tabs.esm.js.map +1 -0
  89. package/dist/components/Tabs/TabsIndicators.esm.js +140 -0
  90. package/dist/components/Tabs/TabsIndicators.esm.js.map +1 -0
  91. package/dist/components/Text/Text.esm.js +40 -0
  92. package/dist/components/Text/Text.esm.js.map +1 -0
  93. package/dist/components/TextField/TextField.esm.js +88 -0
  94. package/dist/components/TextField/TextField.esm.js.map +1 -0
  95. package/dist/components/Tooltip/Tooltip.esm.js +34 -0
  96. package/dist/components/Tooltip/Tooltip.esm.js.map +1 -0
  97. package/dist/hooks/useBreakpoint.esm.js +43 -0
  98. package/dist/hooks/useBreakpoint.esm.js.map +1 -0
  99. package/dist/hooks/useIsomorphicLayoutEffect.esm.js +6 -0
  100. package/dist/hooks/useIsomorphicLayoutEffect.esm.js.map +1 -0
  101. package/dist/hooks/useMediaQuery.esm.js +44 -0
  102. package/dist/hooks/useMediaQuery.esm.js.map +1 -0
  103. package/dist/hooks/useStyles.esm.js +46 -0
  104. package/dist/hooks/useStyles.esm.js.map +1 -0
  105. package/dist/index.d.ts +1410 -0
  106. package/dist/index.esm.js +39 -0
  107. package/dist/index.esm.js.map +1 -0
  108. package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js +29 -0
  109. package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js.map +1 -0
  110. package/dist/props/display.props.esm.js +12 -0
  111. package/dist/props/display.props.esm.js.map +1 -0
  112. package/dist/props/gap-props.esm.js +15 -0
  113. package/dist/props/gap-props.esm.js.map +1 -0
  114. package/dist/props/height.props.esm.js +23 -0
  115. package/dist/props/height.props.esm.js.map +1 -0
  116. package/dist/props/margin.props.esm.js +54 -0
  117. package/dist/props/margin.props.esm.js.map +1 -0
  118. package/dist/props/padding.props.esm.js +54 -0
  119. package/dist/props/padding.props.esm.js.map +1 -0
  120. package/dist/props/position.props.esm.js +18 -0
  121. package/dist/props/position.props.esm.js.map +1 -0
  122. package/dist/props/prop-def.esm.js +4 -0
  123. package/dist/props/prop-def.esm.js.map +1 -0
  124. package/dist/props/spacing.props.esm.js +28 -0
  125. package/dist/props/spacing.props.esm.js.map +1 -0
  126. package/dist/props/width.props.esm.js +23 -0
  127. package/dist/props/width.props.esm.js.map +1 -0
  128. package/dist/utils/componentDefinitions.esm.js +272 -0
  129. package/dist/utils/componentDefinitions.esm.js.map +1 -0
  130. package/dist/utils/extractProps.esm.js +49 -0
  131. package/dist/utils/extractProps.esm.js.map +1 -0
  132. package/package.json +11 -3
@@ -0,0 +1,107 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { forwardRef, useEffect } from 'react';
3
+ import { SearchField as SearchField$1, Input, Button } from 'react-aria-components';
4
+ import clsx from 'clsx';
5
+ import { FieldLabel } from '../FieldLabel/FieldLabel.esm.js';
6
+ import { FieldError } from '../FieldError/FieldError.esm.js';
7
+ import { RiSearch2Line, RiCloseCircleLine } from '@remixicon/react';
8
+ import { useStyles } from '../../hooks/useStyles.esm.js';
9
+
10
+ const SearchField = forwardRef(
11
+ (props, ref) => {
12
+ const {
13
+ className,
14
+ icon,
15
+ size = "small",
16
+ label,
17
+ secondaryLabel,
18
+ description,
19
+ isRequired,
20
+ placeholder = "Search",
21
+ "aria-label": ariaLabel,
22
+ "aria-labelledby": ariaLabelledBy,
23
+ ...rest
24
+ } = props;
25
+ useEffect(() => {
26
+ if (!label && !ariaLabel && !ariaLabelledBy) {
27
+ console.warn(
28
+ "SearchField requires either a visible label, aria-label, or aria-labelledby for accessibility"
29
+ );
30
+ }
31
+ }, [label, ariaLabel, ariaLabelledBy]);
32
+ const { classNames: textFieldClassNames, dataAttributes } = useStyles(
33
+ "TextField",
34
+ {
35
+ size
36
+ }
37
+ );
38
+ const { classNames: searchFieldClassNames } = useStyles("SearchField", {
39
+ size
40
+ });
41
+ const secondaryLabelText = secondaryLabel || (isRequired ? "Required" : null);
42
+ return /* @__PURE__ */ jsxs(
43
+ SearchField$1,
44
+ {
45
+ className: clsx(
46
+ textFieldClassNames.root,
47
+ searchFieldClassNames.root,
48
+ className
49
+ ),
50
+ ...dataAttributes,
51
+ "aria-label": ariaLabel,
52
+ "aria-labelledby": ariaLabelledBy,
53
+ ...rest,
54
+ ref,
55
+ children: [
56
+ /* @__PURE__ */ jsx(
57
+ FieldLabel,
58
+ {
59
+ label,
60
+ secondaryLabel: secondaryLabelText,
61
+ description
62
+ }
63
+ ),
64
+ /* @__PURE__ */ jsxs(
65
+ "div",
66
+ {
67
+ className: textFieldClassNames.inputWrapper,
68
+ "data-size": dataAttributes["data-size"],
69
+ children: [
70
+ icon !== false && /* @__PURE__ */ jsx(
71
+ "div",
72
+ {
73
+ className: textFieldClassNames.inputIcon,
74
+ "data-size": dataAttributes["data-size"],
75
+ "aria-hidden": "true",
76
+ children: icon || /* @__PURE__ */ jsx(RiSearch2Line, {})
77
+ }
78
+ ),
79
+ /* @__PURE__ */ jsx(
80
+ Input,
81
+ {
82
+ className: textFieldClassNames.input,
83
+ ...icon !== false && { "data-icon": true },
84
+ placeholder
85
+ }
86
+ ),
87
+ /* @__PURE__ */ jsx(
88
+ Button,
89
+ {
90
+ className: searchFieldClassNames.clear,
91
+ "data-size": dataAttributes["data-size"],
92
+ children: /* @__PURE__ */ jsx(RiCloseCircleLine, {})
93
+ }
94
+ )
95
+ ]
96
+ }
97
+ ),
98
+ /* @__PURE__ */ jsx(FieldError, {})
99
+ ]
100
+ }
101
+ );
102
+ }
103
+ );
104
+ SearchField.displayName = "searchField";
105
+
106
+ export { SearchField };
107
+ //# sourceMappingURL=SearchField.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchField.esm.js","sources":["../../../src/components/SearchField/SearchField.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { forwardRef, useEffect } from 'react';\nimport {\n Input,\n SearchField as AriaSearchField,\n Button,\n} from 'react-aria-components';\nimport clsx from 'clsx';\nimport { FieldLabel } from '../FieldLabel';\nimport { FieldError } from '../FieldError';\nimport { RiSearch2Line, RiCloseCircleLine } from '@remixicon/react';\nimport { useStyles } from '../../hooks/useStyles';\n\nimport type { SearchFieldProps } from './types';\n\n/** @public */\nexport const SearchField = forwardRef<HTMLDivElement, SearchFieldProps>(\n (props, ref) => {\n const {\n className,\n icon,\n size = 'small',\n label,\n secondaryLabel,\n description,\n isRequired,\n placeholder = 'Search',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n ...rest\n } = props;\n\n useEffect(() => {\n if (!label && !ariaLabel && !ariaLabelledBy) {\n console.warn(\n 'SearchField requires either a visible label, aria-label, or aria-labelledby for accessibility',\n );\n }\n }, [label, ariaLabel, ariaLabelledBy]);\n\n const { classNames: textFieldClassNames, dataAttributes } = useStyles(\n 'TextField',\n {\n size,\n },\n );\n\n const { classNames: searchFieldClassNames } = useStyles('SearchField', {\n size,\n });\n\n // If a secondary label is provided, use it. Otherwise, use 'Required' if the field is required.\n const secondaryLabelText =\n secondaryLabel || (isRequired ? 'Required' : null);\n\n return (\n <AriaSearchField\n className={clsx(\n textFieldClassNames.root,\n searchFieldClassNames.root,\n className,\n )}\n {...dataAttributes}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n {...rest}\n ref={ref}\n >\n <FieldLabel\n label={label}\n secondaryLabel={secondaryLabelText}\n description={description}\n />\n <div\n className={textFieldClassNames.inputWrapper}\n data-size={dataAttributes['data-size']}\n >\n {icon !== false && (\n <div\n className={textFieldClassNames.inputIcon}\n data-size={dataAttributes['data-size']}\n aria-hidden=\"true\"\n >\n {icon || <RiSearch2Line />}\n </div>\n )}\n <Input\n className={textFieldClassNames.input}\n {...(icon !== false && { 'data-icon': true })}\n placeholder={placeholder}\n />\n <Button\n className={searchFieldClassNames.clear}\n data-size={dataAttributes['data-size']}\n >\n <RiCloseCircleLine />\n </Button>\n </div>\n <FieldError />\n </AriaSearchField>\n );\n },\n);\n\nSearchField.displayName = 'searchField';\n"],"names":["AriaSearchField"],"mappings":";;;;;;;;;AA+BO,MAAM,WAAc,GAAA,UAAA;AAAA,EACzB,CAAC,OAAO,GAAQ,KAAA;AACd,IAAM,MAAA;AAAA,MACJ,SAAA;AAAA,MACA,IAAA;AAAA,MACA,IAAO,GAAA,OAAA;AAAA,MACP,KAAA;AAAA,MACA,cAAA;AAAA,MACA,WAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAc,GAAA,QAAA;AAAA,MACd,YAAc,EAAA,SAAA;AAAA,MACd,iBAAmB,EAAA,cAAA;AAAA,MACnB,GAAG;AAAA,KACD,GAAA,KAAA;AAEJ,IAAA,SAAA,CAAU,MAAM;AACd,MAAA,IAAI,CAAC,KAAA,IAAS,CAAC,SAAA,IAAa,CAAC,cAAgB,EAAA;AAC3C,QAAQ,OAAA,CAAA,IAAA;AAAA,UACN;AAAA,SACF;AAAA;AACF,KACC,EAAA,CAAC,KAAO,EAAA,SAAA,EAAW,cAAc,CAAC,CAAA;AAErC,IAAA,MAAM,EAAE,UAAA,EAAY,mBAAqB,EAAA,cAAA,EAAmB,GAAA,SAAA;AAAA,MAC1D,WAAA;AAAA,MACA;AAAA,QACE;AAAA;AACF,KACF;AAEA,IAAA,MAAM,EAAE,UAAA,EAAY,qBAAsB,EAAA,GAAI,UAAU,aAAe,EAAA;AAAA,MACrE;AAAA,KACD,CAAA;AAGD,IAAM,MAAA,kBAAA,GACJ,cAAmB,KAAA,UAAA,GAAa,UAAa,GAAA,IAAA,CAAA;AAE/C,IACE,uBAAA,IAAA;AAAA,MAACA,aAAA;AAAA,MAAA;AAAA,QACC,SAAW,EAAA,IAAA;AAAA,UACT,mBAAoB,CAAA,IAAA;AAAA,UACpB,qBAAsB,CAAA,IAAA;AAAA,UACtB;AAAA,SACF;AAAA,QACC,GAAG,cAAA;AAAA,QACJ,YAAY,EAAA,SAAA;AAAA,QACZ,iBAAiB,EAAA,cAAA;AAAA,QAChB,GAAG,IAAA;AAAA,QACJ,GAAA;AAAA,QAEA,QAAA,EAAA;AAAA,0BAAA,GAAA;AAAA,YAAC,UAAA;AAAA,YAAA;AAAA,cACC,KAAA;AAAA,cACA,cAAgB,EAAA,kBAAA;AAAA,cAChB;AAAA;AAAA,WACF;AAAA,0BACA,IAAA;AAAA,YAAC,KAAA;AAAA,YAAA;AAAA,cACC,WAAW,mBAAoB,CAAA,YAAA;AAAA,cAC/B,WAAA,EAAW,eAAe,WAAW,CAAA;AAAA,cAEpC,QAAA,EAAA;AAAA,gBAAA,IAAA,KAAS,KACR,oBAAA,GAAA;AAAA,kBAAC,KAAA;AAAA,kBAAA;AAAA,oBACC,WAAW,mBAAoB,CAAA,SAAA;AAAA,oBAC/B,WAAA,EAAW,eAAe,WAAW,CAAA;AAAA,oBACrC,aAAY,EAAA,MAAA;AAAA,oBAEX,QAAA,EAAA,IAAA,wBAAS,aAAc,EAAA,EAAA;AAAA;AAAA,iBAC1B;AAAA,gCAEF,GAAA;AAAA,kBAAC,KAAA;AAAA,kBAAA;AAAA,oBACC,WAAW,mBAAoB,CAAA,KAAA;AAAA,oBAC9B,GAAI,IAAA,KAAS,KAAS,IAAA,EAAE,aAAa,IAAK,EAAA;AAAA,oBAC3C;AAAA;AAAA,iBACF;AAAA,gCACA,GAAA;AAAA,kBAAC,MAAA;AAAA,kBAAA;AAAA,oBACC,WAAW,qBAAsB,CAAA,KAAA;AAAA,oBACjC,WAAA,EAAW,eAAe,WAAW,CAAA;AAAA,oBAErC,8BAAC,iBAAkB,EAAA,EAAA;AAAA;AAAA;AACrB;AAAA;AAAA,WACF;AAAA,8BACC,UAAW,EAAA,EAAA;AAAA;AAAA;AAAA,KACd;AAAA;AAGN;AAEA,WAAA,CAAY,WAAc,GAAA,aAAA;;;;"}
@@ -0,0 +1,89 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { forwardRef, useEffect } from 'react';
3
+ import { Select as Select$1, Button, SelectValue, Popover, ListBox, ListBoxItem, Text } from 'react-aria-components';
4
+ import clsx from 'clsx';
5
+ import './Select.styles.css.esm.js';
6
+ import { useStyles } from '../../hooks/useStyles.esm.js';
7
+ import { FieldLabel } from '../FieldLabel/FieldLabel.esm.js';
8
+ import '@remixicon/react';
9
+ import { Icon } from '../Icon/Icon.esm.js';
10
+ import '../Icon/context.esm.js';
11
+ import { FieldError } from '../FieldError/FieldError.esm.js';
12
+
13
+ const Select = forwardRef((props, ref) => {
14
+ const {
15
+ className,
16
+ label,
17
+ description,
18
+ options,
19
+ placeholder = "Select an option",
20
+ size = "small",
21
+ icon,
22
+ "aria-label": ariaLabel,
23
+ "aria-labelledby": ariaLabelledBy,
24
+ isRequired,
25
+ secondaryLabel,
26
+ style,
27
+ ...rest
28
+ } = props;
29
+ const { classNames: popoverClassNames } = useStyles("Popover");
30
+ const { classNames, dataAttributes } = useStyles("Select", {
31
+ size
32
+ });
33
+ useEffect(() => {
34
+ if (!label && !ariaLabel && !ariaLabelledBy) {
35
+ console.warn(
36
+ "TextField requires either a visible label, aria-label, or aria-labelledby for accessibility"
37
+ );
38
+ }
39
+ }, [label, ariaLabel, ariaLabelledBy]);
40
+ const secondaryLabelText = secondaryLabel || (isRequired ? "Required" : null);
41
+ return /* @__PURE__ */ jsxs(
42
+ Select$1,
43
+ {
44
+ className: clsx(classNames.root, className),
45
+ ...dataAttributes,
46
+ ref,
47
+ ...rest,
48
+ children: [
49
+ /* @__PURE__ */ jsx(
50
+ FieldLabel,
51
+ {
52
+ label,
53
+ secondaryLabel: secondaryLabelText,
54
+ description
55
+ }
56
+ ),
57
+ /* @__PURE__ */ jsxs(
58
+ Button,
59
+ {
60
+ className: classNames.trigger,
61
+ "data-size": dataAttributes["data-size"],
62
+ children: [
63
+ icon,
64
+ /* @__PURE__ */ jsx(SelectValue, { className: classNames.value }),
65
+ /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true", name: "chevron-down" })
66
+ ]
67
+ }
68
+ ),
69
+ /* @__PURE__ */ jsx(FieldError, {}),
70
+ /* @__PURE__ */ jsx(Popover, { className: popoverClassNames.root, children: /* @__PURE__ */ jsx(ListBox, { className: classNames.list, children: options?.map((option) => /* @__PURE__ */ jsxs(
71
+ ListBoxItem,
72
+ {
73
+ id: option.value,
74
+ className: classNames.item,
75
+ children: [
76
+ /* @__PURE__ */ jsx("div", { className: classNames.itemIndicator, children: /* @__PURE__ */ jsx(Icon, { name: "check" }) }),
77
+ /* @__PURE__ */ jsx(Text, { slot: "label", className: classNames.itemLabel, children: option.label })
78
+ ]
79
+ },
80
+ option.value
81
+ )) }) })
82
+ ]
83
+ }
84
+ );
85
+ });
86
+ Select.displayName = "Select";
87
+
88
+ export { Select };
89
+ //# sourceMappingURL=Select.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.esm.js","sources":["../../../src/components/Select/Select.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { forwardRef, useEffect } from 'react';\nimport {\n Select as AriaSelect,\n SelectValue,\n Button,\n Popover,\n ListBox,\n ListBoxItem,\n Text,\n} from 'react-aria-components';\nimport clsx from 'clsx';\nimport './Select.styles.css';\nimport { SelectProps } from './types';\nimport { useStyles } from '../../hooks/useStyles';\nimport { FieldLabel } from '../FieldLabel';\nimport { Icon } from '../Icon';\nimport { FieldError } from '../FieldError';\n\n/** @public */\nexport const Select = forwardRef<HTMLDivElement, SelectProps>((props, ref) => {\n const {\n className,\n label,\n description,\n options,\n placeholder = 'Select an option',\n size = 'small',\n icon,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n isRequired,\n secondaryLabel,\n style,\n ...rest\n } = props;\n\n const { classNames: popoverClassNames } = useStyles('Popover');\n const { classNames, dataAttributes } = useStyles('Select', {\n size,\n });\n\n useEffect(() => {\n if (!label && !ariaLabel && !ariaLabelledBy) {\n console.warn(\n 'TextField requires either a visible label, aria-label, or aria-labelledby for accessibility',\n );\n }\n }, [label, ariaLabel, ariaLabelledBy]);\n\n // If a secondary label is provided, use it. Otherwise, use 'Required' if the field is required.\n const secondaryLabelText = secondaryLabel || (isRequired ? 'Required' : null);\n\n return (\n <AriaSelect\n className={clsx(classNames.root, className)}\n {...dataAttributes}\n ref={ref}\n {...rest}\n >\n <FieldLabel\n label={label}\n secondaryLabel={secondaryLabelText}\n description={description}\n />\n <Button\n className={classNames.trigger}\n data-size={dataAttributes['data-size']}\n >\n {icon}\n <SelectValue className={classNames.value} />\n <Icon aria-hidden=\"true\" name=\"chevron-down\" />\n </Button>\n <FieldError />\n <Popover className={popoverClassNames.root}>\n <ListBox className={classNames.list}>\n {options?.map(option => (\n <ListBoxItem\n key={option.value}\n id={option.value}\n className={classNames.item}\n >\n <div className={classNames.itemIndicator}>\n <Icon name=\"check\" />\n </div>\n <Text slot=\"label\" className={classNames.itemLabel}>\n {option.label}\n </Text>\n </ListBoxItem>\n ))}\n </ListBox>\n </Popover>\n </AriaSelect>\n );\n});\n\nSelect.displayName = 'Select';\n"],"names":["AriaSelect"],"mappings":"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"}
@@ -0,0 +1,7 @@
1
+ import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
2
+
3
+ var css_248z = "/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.bui-Select[data-invalid] {\n & .bui-SelectTrigger {\n border-color: var(--bui-fg-danger);\n }\n}\n\n.bui-SelectTrigger {\n box-sizing: border-box;\n border-radius: var(--bui-radius-3);\n border: 1px solid var(--bui-border);\n background-color: var(--bui-bg-surface-1);\n display: flex;\n justify-content: space-between;\n align-items: center;\n transition: border-color 0.2s ease-in-out, outline-color 0.2s ease-in-out;\n cursor: pointer;\n gap: var(--bui-space-2);\n max-width: 100%;\n\n & svg {\n flex-shrink: 0;\n }\n\n &[data-size='small'] {\n height: 2rem;\n padding-inline: var(--bui-space-3);\n }\n\n &[data-size='medium'] {\n height: 3rem;\n padding-inline: var(--bui-space-4);\n }\n\n &[data-size='small'] svg {\n width: 1rem;\n height: 1rem;\n }\n\n &[data-size='medium'] svg {\n width: 1.25rem;\n height: 1.25rem;\n }\n\n &::placeholder {\n color: var(--bui-fg-secondary);\n }\n\n &:hover {\n border-color: var(--bui-border-hover);\n }\n\n &:focus-visible {\n border-color: var(--bui-border-pressed);\n outline: 0;\n }\n\n &[data-invalid] {\n border-color: var(--bui-fg-danger);\n }\n &[data-invalid]:hover {\n border-width: 2px;\n }\n\n &[data-invalid]:focus-visible {\n border-width: 2px;\n }\n\n &[disabled] {\n cursor: not-allowed;\n border-color: var(--bui-border-disabled);\n color: var(--bui-fg-disabled);\n }\n\n &[disabled] .bui-SelectValue {\n color: var(--bui-fg-disabled);\n }\n\n &[data-popup-open] .bui-SelectIcon {\n transform: rotate(180deg);\n }\n}\n\n.bui-SelectValue {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 100%;\n font-size: var(--bui-font-size-3);\n font-family: var(--bui-font-regular);\n font-weight: var(--bui-font-weight-regular);\n color: var(--bui-fg-primary);\n\n & .bui-SelectItemIndicator {\n display: none;\n }\n\n &[disabled] {\n color: var(--bui-fg-disabled);\n }\n}\n\n.bui-SelectItem {\n position: relative;\n width: var(--anchor-width);\n display: grid;\n grid-template-areas: 'icon text';\n grid-template-columns: 1rem 1fr;\n align-items: center;\n padding-block: var(--bui-space-2);\n padding-inline: var(--bui-space-4);\n color: var(--bui-fg-primary);\n border-radius: var(--bui-radius-3);\n cursor: pointer;\n user-select: none;\n font-size: var(--bui-font-size-3);\n gap: var(--bui-space-2);\n outline: none;\n\n &[data-focused] {\n z-index: 0;\n position: relative;\n color: var(--bui-fg-primary);\n }\n\n &[data-focused]::before {\n content: '';\n z-index: -1;\n position: absolute;\n inset-block: 0;\n inset-inline: 0.25rem;\n border-radius: 0.25rem;\n background-color: var(--bui-bg-tint-hover);\n }\n\n &[data-disabled] {\n cursor: not-allowed;\n color: var(--bui-fg-disabled);\n }\n\n &[data-selected] .bui-SelectItemIndicator {\n opacity: 1;\n }\n}\n\n.bui-SelectItemIndicator {\n grid-area: icon;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n}\n\n.bui-SelectItemLabel {\n flex: 1;\n grid-area: text;\n}\n";
4
+ styleInject(css_248z);
5
+
6
+ export { css_248z as default };
7
+ //# sourceMappingURL=Select.styles.css.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.styles.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,22 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { useStyles } from '../../hooks/useStyles.esm.js';
3
+
4
+ const Skeleton = (props) => {
5
+ const { width = 80, height = 24, rounded = false, ...rest } = props;
6
+ const { classNames } = useStyles("Skeleton");
7
+ return /* @__PURE__ */ jsx(
8
+ "div",
9
+ {
10
+ className: classNames.root,
11
+ "data-rounded": rounded,
12
+ style: {
13
+ width,
14
+ height
15
+ },
16
+ ...rest
17
+ }
18
+ );
19
+ };
20
+
21
+ export { Skeleton };
22
+ //# sourceMappingURL=Skeleton.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.esm.js","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useStyles } from '../../hooks/useStyles';\nimport { SkeletonProps } from './types';\n\n/** @public */\nexport const Skeleton = (props: SkeletonProps) => {\n const { width = 80, height = 24, rounded = false, ...rest } = props;\n const { classNames } = useStyles('Skeleton');\n\n return (\n <div\n className={classNames.root}\n data-rounded={rounded}\n style={{\n width,\n height,\n }}\n {...rest}\n />\n );\n};\n"],"names":[],"mappings":";;;AAoBa,MAAA,QAAA,GAAW,CAAC,KAAyB,KAAA;AAChD,EAAM,MAAA,EAAE,QAAQ,EAAI,EAAA,MAAA,GAAS,IAAI,OAAU,GAAA,KAAA,EAAO,GAAG,IAAA,EAAS,GAAA,KAAA;AAC9D,EAAA,MAAM,EAAE,UAAA,EAAe,GAAA,SAAA,CAAU,UAAU,CAAA;AAE3C,EACE,uBAAA,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,WAAW,UAAW,CAAA,IAAA;AAAA,MACtB,cAAc,EAAA,OAAA;AAAA,MACd,KAAO,EAAA;AAAA,QACL,KAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA,GACN;AAEJ;;;;"}
@@ -0,0 +1,18 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import { Switch as Switch$1 } from 'react-aria-components';
4
+ import { useStyles } from '../../hooks/useStyles.esm.js';
5
+
6
+ const Switch = forwardRef(
7
+ ({ label, ...props }, ref) => {
8
+ const { classNames } = useStyles("Switch");
9
+ return /* @__PURE__ */ jsxs(Switch$1, { className: classNames.root, ref, ...props, children: [
10
+ /* @__PURE__ */ jsx("div", { className: classNames.indicator }),
11
+ label
12
+ ] });
13
+ }
14
+ );
15
+ Switch.displayName = "Switch";
16
+
17
+ export { Switch };
18
+ //# sourceMappingURL=Switch.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.esm.js","sources":["../../../src/components/Switch/Switch.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { forwardRef } from 'react';\nimport { Switch as AriaSwitch } from 'react-aria-components';\nimport type { SwitchProps } from './types';\nimport { useStyles } from '../../hooks/useStyles';\n\n/** @public */\nexport const Switch = forwardRef<HTMLLabelElement, SwitchProps>(\n ({ label, ...props }, ref) => {\n const { classNames } = useStyles('Switch');\n\n return (\n <AriaSwitch className={classNames.root} ref={ref} {...props}>\n <div className={classNames.indicator} />\n {label}\n </AriaSwitch>\n );\n },\n);\n\nSwitch.displayName = 'Switch';\n"],"names":["AriaSwitch"],"mappings":";;;;;AAsBO,MAAM,MAAS,GAAA,UAAA;AAAA,EACpB,CAAC,EAAE,KAAA,EAAO,GAAG,KAAA,IAAS,GAAQ,KAAA;AAC5B,IAAA,MAAM,EAAE,UAAA,EAAe,GAAA,SAAA,CAAU,QAAQ,CAAA;AAEzC,IAAA,4BACGA,QAAW,EAAA,EAAA,SAAA,EAAW,WAAW,IAAM,EAAA,GAAA,EAAW,GAAG,KACpD,EAAA,QAAA,EAAA;AAAA,sBAAC,GAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,UAAA,CAAW,SAAW,EAAA,CAAA;AAAA,MACrC;AAAA,KACH,EAAA,CAAA;AAAA;AAGN;AAEA,MAAA,CAAO,WAAc,GAAA,QAAA;;;;"}
@@ -0,0 +1,68 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import clsx from 'clsx';
4
+ import { TableCell } from './TableCell/TableCell.esm.js';
5
+ import { TableCellText } from './TableCellText/TableCellText.esm.js';
6
+ import { TableCellLink } from './TableCellLink/TableCellLink.esm.js';
7
+ import { TableCellProfile } from './TableCellProfile/TableCellProfile.esm.js';
8
+ import { useStyles } from '../../hooks/useStyles.esm.js';
9
+
10
+ const TableRoot = forwardRef(({ className, ...props }, ref) => {
11
+ const { classNames } = useStyles("Table");
12
+ return /* @__PURE__ */ jsx("table", { ref, className: clsx(classNames.root, className), ...props });
13
+ });
14
+ TableRoot.displayName = "TableRoot";
15
+ const TableHeader = forwardRef(({ className, ...props }, ref) => {
16
+ const { classNames } = useStyles("Table");
17
+ return /* @__PURE__ */ jsx(
18
+ "thead",
19
+ {
20
+ ref,
21
+ className: clsx(classNames.header, className),
22
+ ...props
23
+ }
24
+ );
25
+ });
26
+ TableHeader.displayName = "TableHeader";
27
+ const TableBody = forwardRef(({ className, ...props }, ref) => {
28
+ const { classNames } = useStyles("Table");
29
+ return /* @__PURE__ */ jsx("tbody", { ref, className: clsx(classNames.body, className), ...props });
30
+ });
31
+ TableBody.displayName = "TableBody";
32
+ const TableRow = forwardRef(({ className, ...props }, ref) => {
33
+ const { classNames } = useStyles("Table");
34
+ return /* @__PURE__ */ jsx("tr", { ref, className: clsx(classNames.row, className), ...props, children: props.children });
35
+ });
36
+ TableRow.displayName = "TableRow";
37
+ const TableHead = forwardRef(({ className, ...props }, ref) => {
38
+ const { classNames } = useStyles("Table");
39
+ return /* @__PURE__ */ jsx("th", { ref, className: clsx(classNames.head, className), ...props });
40
+ });
41
+ TableHead.displayName = "TableHead";
42
+ const TableCaption = forwardRef(({ className, ...props }, ref) => {
43
+ const { classNames } = useStyles("Table");
44
+ return /* @__PURE__ */ jsx(
45
+ "caption",
46
+ {
47
+ ref,
48
+ className: clsx(classNames.caption, className),
49
+ ...props
50
+ }
51
+ );
52
+ });
53
+ TableCaption.displayName = "TableCaption";
54
+ const Table = {
55
+ Root: TableRoot,
56
+ Header: TableHeader,
57
+ Body: TableBody,
58
+ Head: TableHead,
59
+ Row: TableRow,
60
+ Cell: TableCell,
61
+ CellText: TableCellText,
62
+ CellLink: TableCellLink,
63
+ CellProfile: TableCellProfile,
64
+ Caption: TableCaption
65
+ };
66
+
67
+ export { Table };
68
+ //# sourceMappingURL=Table.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.esm.js","sources":["../../../src/components/Table/Table.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { forwardRef } from 'react';\nimport clsx from 'clsx';\nimport { TableCell } from './TableCell/TableCell';\nimport { TableCellText } from './TableCellText/TableCellText';\nimport { TableCellLink } from './TableCellLink/TableCellLink';\nimport { TableCellProfile } from './TableCellProfile/TableCellProfile';\nimport { useStyles } from '../../hooks/useStyles';\n\nconst TableRoot = forwardRef<\n HTMLTableElement,\n React.HTMLAttributes<HTMLTableElement>\n>(({ className, ...props }, ref) => {\n const { classNames } = useStyles('Table');\n\n return (\n <table ref={ref} className={clsx(classNames.root, className)} {...props} />\n );\n});\nTableRoot.displayName = 'TableRoot';\n\nconst TableHeader = forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => {\n const { classNames } = useStyles('Table');\n\n return (\n <thead\n ref={ref}\n className={clsx(classNames.header, className)}\n {...props}\n />\n );\n});\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => {\n const { classNames } = useStyles('Table');\n\n return (\n <tbody ref={ref} className={clsx(classNames.body, className)} {...props} />\n );\n});\nTableBody.displayName = 'TableBody';\n\nconst TableRow = forwardRef<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => {\n const { classNames } = useStyles('Table');\n\n return (\n <tr ref={ref} className={clsx(classNames.row, className)} {...props}>\n {props.children}\n </tr>\n );\n});\nTableRow.displayName = 'TableRow';\n\nconst TableHead = forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => {\n const { classNames } = useStyles('Table');\n\n return (\n <th ref={ref} className={clsx(classNames.head, className)} {...props} />\n );\n});\nTableHead.displayName = 'TableHead';\n\nconst TableCaption = forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => {\n const { classNames } = useStyles('Table');\n\n return (\n <caption\n ref={ref}\n className={clsx(classNames.caption, className)}\n {...props}\n />\n );\n});\nTableCaption.displayName = 'TableCaption';\n\n/**\n * Table component for displaying tabular data\n * @public\n */\nexport const Table = {\n Root: TableRoot,\n Header: TableHeader,\n Body: TableBody,\n Head: TableHead,\n Row: TableRow,\n Cell: TableCell,\n CellText: TableCellText,\n CellLink: TableCellLink,\n CellProfile: TableCellProfile,\n Caption: TableCaption,\n};\n"],"names":[],"mappings":"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"}
@@ -0,0 +1,13 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import clsx from 'clsx';
4
+ import { useStyles } from '../../../hooks/useStyles.esm.js';
5
+
6
+ const TableCell = forwardRef(({ className, ...props }, ref) => {
7
+ const { classNames } = useStyles("Table");
8
+ return /* @__PURE__ */ jsx("td", { ref, className: clsx(classNames.cell, className), ...props });
9
+ });
10
+ TableCell.displayName = "TableCell";
11
+
12
+ export { TableCell };
13
+ //# sourceMappingURL=TableCell.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCell.esm.js","sources":["../../../../src/components/Table/TableCell/TableCell.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { forwardRef } from 'react';\nimport clsx from 'clsx';\nimport { useStyles } from '../../../hooks/useStyles';\n\n/** @public */\nconst TableCell = forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => {\n const { classNames } = useStyles('Table');\n\n return (\n <td ref={ref} className={clsx(classNames.cell, className)} {...props} />\n );\n});\nTableCell.displayName = 'TableCell';\n\nexport { TableCell };\n"],"names":[],"mappings":";;;;;AAqBM,MAAA,SAAA,GAAY,WAGhB,CAAC,EAAE,WAAW,GAAG,KAAA,IAAS,GAAQ,KAAA;AAClC,EAAA,MAAM,EAAE,UAAA,EAAe,GAAA,SAAA,CAAU,OAAO,CAAA;AAExC,EACE,uBAAA,GAAA,CAAC,IAAG,EAAA,EAAA,GAAA,EAAU,SAAW,EAAA,IAAA,CAAK,WAAW,IAAM,EAAA,SAAS,CAAI,EAAA,GAAG,KAAO,EAAA,CAAA;AAE1E,CAAC;AACD,SAAA,CAAU,WAAc,GAAA,WAAA;;;;"}
@@ -0,0 +1,28 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import clsx from 'clsx';
4
+ import { Text } from '../../Text/Text.esm.js';
5
+ import { Link } from '../../Link/Link.esm.js';
6
+ import { useStyles } from '../../../hooks/useStyles.esm.js';
7
+
8
+ const TableCellLink = forwardRef(
9
+ ({ className, title, description, href, render, ...props }, ref) => {
10
+ const { classNames } = useStyles("Table");
11
+ return /* @__PURE__ */ jsxs(
12
+ "div",
13
+ {
14
+ ref,
15
+ className: clsx(classNames.cellLink, className),
16
+ ...props,
17
+ children: [
18
+ title && /* @__PURE__ */ jsx(Link, { href, children: title }),
19
+ description && /* @__PURE__ */ jsx(Text, { variant: "body-medium", color: "secondary", children: description })
20
+ ]
21
+ }
22
+ );
23
+ }
24
+ );
25
+ TableCellLink.displayName = "TableCellLink";
26
+
27
+ export { TableCellLink };
28
+ //# sourceMappingURL=TableCellLink.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCellLink.esm.js","sources":["../../../../src/components/Table/TableCellLink/TableCellLink.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { forwardRef } from 'react';\nimport clsx from 'clsx';\nimport { TableCellLinkProps } from './types';\nimport { Text } from '../../Text/Text';\nimport { Link } from '../../Link/Link';\nimport { useStyles } from '../../../hooks/useStyles';\n\n/** @public */\nconst TableCellLink = forwardRef<HTMLDivElement, TableCellLinkProps>(\n ({ className, title, description, href, render, ...props }, ref) => {\n const { classNames } = useStyles('Table');\n\n return (\n <div\n ref={ref}\n className={clsx(classNames.cellLink, className)}\n {...props}\n >\n {title && <Link href={href}>{title}</Link>}\n {description && (\n <Text variant=\"body-medium\" color=\"secondary\">\n {description}\n </Text>\n )}\n </div>\n );\n },\n);\nTableCellLink.displayName = 'TableCellLink';\n\nexport { TableCellLink };\n"],"names":[],"mappings":";;;;;;;AAwBA,MAAM,aAAgB,GAAA,UAAA;AAAA,EACpB,CAAC,EAAE,SAAA,EAAW,KAAO,EAAA,WAAA,EAAa,MAAM,MAAQ,EAAA,GAAG,KAAM,EAAA,EAAG,GAAQ,KAAA;AAClE,IAAA,MAAM,EAAE,UAAA,EAAe,GAAA,SAAA,CAAU,OAAO,CAAA;AAExC,IACE,uBAAA,IAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,SAAW,EAAA,IAAA,CAAK,UAAW,CAAA,QAAA,EAAU,SAAS,CAAA;AAAA,QAC7C,GAAG,KAAA;AAAA,QAEH,QAAA,EAAA;AAAA,UAAS,KAAA,oBAAA,GAAA,CAAC,IAAK,EAAA,EAAA,IAAA,EAAa,QAAM,EAAA,KAAA,EAAA,CAAA;AAAA,UAClC,+BACE,GAAA,CAAA,IAAA,EAAA,EAAK,SAAQ,aAAc,EAAA,KAAA,EAAM,aAC/B,QACH,EAAA,WAAA,EAAA;AAAA;AAAA;AAAA,KAEJ;AAAA;AAGN;AACA,aAAA,CAAc,WAAc,GAAA,eAAA;;;;"}
@@ -0,0 +1,40 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import clsx from 'clsx';
4
+ import { Text } from '../../Text/Text.esm.js';
5
+ import { Link } from '../../Link/Link.esm.js';
6
+ import { Avatar } from '@base-ui-components/react/avatar';
7
+ import { useStyles } from '../../../hooks/useStyles.esm.js';
8
+
9
+ const TableCellProfile = forwardRef(
10
+ ({ className, src, name, to, withImage = true, ...rest }, ref) => {
11
+ const { classNames } = useStyles("Table");
12
+ return /* @__PURE__ */ jsxs(
13
+ "div",
14
+ {
15
+ ref,
16
+ className: clsx(classNames.cellProfile, className),
17
+ ...rest,
18
+ children: [
19
+ withImage && /* @__PURE__ */ jsxs(Avatar.Root, { className: classNames.cellProfileAvatar, children: [
20
+ /* @__PURE__ */ jsx(
21
+ Avatar.Image,
22
+ {
23
+ src,
24
+ width: "20",
25
+ height: "20",
26
+ className: classNames.cellProfileAvatarImage
27
+ }
28
+ ),
29
+ /* @__PURE__ */ jsx(Avatar.Fallback, { className: classNames.cellProfileAvatarFallback, children: (name || "").split(" ").map((word) => word[0]).join("").toLocaleUpperCase("en-US").slice(0, 1) })
30
+ ] }),
31
+ name && to ? /* @__PURE__ */ jsx(Link, { href: to, children: name }) : /* @__PURE__ */ jsx(Text, { variant: "body-medium", children: name })
32
+ ]
33
+ }
34
+ );
35
+ }
36
+ );
37
+ TableCellProfile.displayName = "TableCellProfile";
38
+
39
+ export { TableCellProfile };
40
+ //# sourceMappingURL=TableCellProfile.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCellProfile.esm.js","sources":["../../../../src/components/Table/TableCellProfile/TableCellProfile.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { forwardRef } from 'react';\nimport clsx from 'clsx';\nimport { TableCellProfileProps } from './types';\nimport { Text } from '../../Text/Text';\nimport { Link } from '../../Link/Link';\nimport { Avatar } from '@base-ui-components/react/avatar';\nimport { useStyles } from '../../../hooks/useStyles';\n\n/** @public */\nconst TableCellProfile = forwardRef<HTMLDivElement, TableCellProfileProps>(\n ({ className, src, name, to, withImage = true, ...rest }, ref) => {\n const { classNames } = useStyles('Table');\n\n return (\n <div\n ref={ref}\n className={clsx(classNames.cellProfile, className)}\n {...rest}\n >\n {withImage && (\n <Avatar.Root className={classNames.cellProfileAvatar}>\n <Avatar.Image\n src={src}\n width=\"20\"\n height=\"20\"\n className={classNames.cellProfileAvatarImage}\n />\n <Avatar.Fallback className={classNames.cellProfileAvatarFallback}>\n {(name || '')\n .split(' ')\n .map(word => word[0])\n .join('')\n .toLocaleUpperCase('en-US')\n .slice(0, 1)}\n </Avatar.Fallback>\n </Avatar.Root>\n )}\n {name && to ? (\n <Link href={to}>{name}</Link>\n ) : (\n <Text variant=\"body-medium\">{name}</Text>\n )}\n </div>\n );\n },\n);\nTableCellProfile.displayName = 'TableCellProfile';\n\nexport { TableCellProfile };\n"],"names":[],"mappings":";;;;;;;;AAyBA,MAAM,gBAAmB,GAAA,UAAA;AAAA,EACvB,CAAC,EAAE,SAAA,EAAW,GAAK,EAAA,IAAA,EAAM,EAAI,EAAA,SAAA,GAAY,IAAM,EAAA,GAAG,IAAK,EAAA,EAAG,GAAQ,KAAA;AAChE,IAAA,MAAM,EAAE,UAAA,EAAe,GAAA,SAAA,CAAU,OAAO,CAAA;AAExC,IACE,uBAAA,IAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,SAAW,EAAA,IAAA,CAAK,UAAW,CAAA,WAAA,EAAa,SAAS,CAAA;AAAA,QAChD,GAAG,IAAA;AAAA,QAEH,QAAA,EAAA;AAAA,UAAA,SAAA,yBACE,MAAO,CAAA,IAAA,EAAP,EAAY,SAAA,EAAW,WAAW,iBACjC,EAAA,QAAA,EAAA;AAAA,4BAAA,GAAA;AAAA,cAAC,MAAO,CAAA,KAAA;AAAA,cAAP;AAAA,gBACC,GAAA;AAAA,gBACA,KAAM,EAAA,IAAA;AAAA,gBACN,MAAO,EAAA,IAAA;AAAA,gBACP,WAAW,UAAW,CAAA;AAAA;AAAA,aACxB;AAAA,4BACA,GAAA,CAAC,MAAO,CAAA,QAAA,EAAP,EAAgB,SAAA,EAAW,UAAW,CAAA,yBAAA,EACnC,QAAQ,EAAA,CAAA,IAAA,IAAA,EAAA,EACP,KAAM,CAAA,GAAG,CACT,CAAA,GAAA,CAAI,CAAQ,IAAA,KAAA,IAAA,CAAK,CAAC,CAAC,CACnB,CAAA,IAAA,CAAK,EAAE,CAAA,CACP,iBAAkB,CAAA,OAAO,CACzB,CAAA,KAAA,CAAM,CAAG,EAAA,CAAC,CACf,EAAA;AAAA,WACF,EAAA,CAAA;AAAA,UAED,IAAQ,IAAA,EAAA,mBACN,GAAA,CAAA,IAAA,EAAA,EAAK,IAAM,EAAA,EAAA,EAAK,QAAK,EAAA,IAAA,EAAA,CAAA,mBAErB,GAAA,CAAA,IAAA,EAAA,EAAK,OAAQ,EAAA,aAAA,EAAe,QAAK,EAAA,IAAA,EAAA;AAAA;AAAA;AAAA,KAEtC;AAAA;AAGN;AACA,gBAAA,CAAiB,WAAc,GAAA,kBAAA;;;;"}
@@ -0,0 +1,27 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import clsx from 'clsx';
4
+ import { Text } from '../../Text/Text.esm.js';
5
+ import { useStyles } from '../../../hooks/useStyles.esm.js';
6
+
7
+ const TableCellText = forwardRef(
8
+ ({ className, title, description, ...props }, ref) => {
9
+ const { classNames } = useStyles("Table");
10
+ return /* @__PURE__ */ jsxs(
11
+ "div",
12
+ {
13
+ ref,
14
+ className: clsx(classNames.cellText, className),
15
+ ...props,
16
+ children: [
17
+ title && /* @__PURE__ */ jsx(Text, { variant: "body-medium", children: title }),
18
+ description && /* @__PURE__ */ jsx(Text, { variant: "body-medium", color: "secondary", children: description })
19
+ ]
20
+ }
21
+ );
22
+ }
23
+ );
24
+ TableCellText.displayName = "TableCellText";
25
+
26
+ export { TableCellText };
27
+ //# sourceMappingURL=TableCellText.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCellText.esm.js","sources":["../../../../src/components/Table/TableCellText/TableCellText.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { forwardRef } from 'react';\nimport clsx from 'clsx';\nimport { TableCellTextProps } from './types';\nimport { Text } from '../../Text/Text';\nimport { useStyles } from '../../../hooks/useStyles';\n\n/** @public */\nconst TableCellText = forwardRef<HTMLDivElement, TableCellTextProps>(\n ({ className, title, description, ...props }, ref) => {\n const { classNames } = useStyles('Table');\n\n return (\n <div\n ref={ref}\n className={clsx(classNames.cellText, className)}\n {...props}\n >\n {title && <Text variant=\"body-medium\">{title}</Text>}\n {description && (\n <Text variant=\"body-medium\" color=\"secondary\">\n {description}\n </Text>\n )}\n </div>\n );\n },\n);\nTableCellText.displayName = 'TableCellText';\n\nexport { TableCellText };\n"],"names":[],"mappings":";;;;;;AAuBA,MAAM,aAAgB,GAAA,UAAA;AAAA,EACpB,CAAC,EAAE,SAAW,EAAA,KAAA,EAAO,aAAa,GAAG,KAAA,IAAS,GAAQ,KAAA;AACpD,IAAA,MAAM,EAAE,UAAA,EAAe,GAAA,SAAA,CAAU,OAAO,CAAA;AAExC,IACE,uBAAA,IAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,SAAW,EAAA,IAAA,CAAK,UAAW,CAAA,QAAA,EAAU,SAAS,CAAA;AAAA,QAC7C,GAAG,KAAA;AAAA,QAEH,QAAA,EAAA;AAAA,UAAA,KAAA,oBAAU,GAAA,CAAA,IAAA,EAAA,EAAK,OAAQ,EAAA,aAAA,EAAe,QAAM,EAAA,KAAA,EAAA,CAAA;AAAA,UAC5C,+BACE,GAAA,CAAA,IAAA,EAAA,EAAK,SAAQ,aAAc,EAAA,KAAA,EAAM,aAC/B,QACH,EAAA,WAAA,EAAA;AAAA;AAAA;AAAA,KAEJ;AAAA;AAGN;AACA,aAAA,CAAc,WAAc,GAAA,eAAA;;;;"}