@pingux/astro 2.210.6-alpha.0 → 2.212.0-alpha.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 (72) hide show
  1. package/lib/cjs/components/ComboBoxField/ComboBoxField.js +2 -1
  2. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.d.ts +14 -0
  3. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.js +70 -0
  4. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.mdx +69 -0
  5. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.stories.js +109 -0
  6. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.styles.d.ts +18 -0
  7. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.styles.js +28 -0
  8. package/lib/cjs/components/LabelValuePairs/LabelValuePairs.test.js +315 -0
  9. package/lib/cjs/components/LabelValuePairs/LabelValuePairsLabel.d.ts +4 -0
  10. package/lib/cjs/components/LabelValuePairs/LabelValuePairsLabel.js +47 -0
  11. package/lib/cjs/components/LabelValuePairs/LabelValuePairsRow.d.ts +3 -0
  12. package/lib/cjs/components/LabelValuePairs/LabelValuePairsRow.js +40 -0
  13. package/lib/cjs/components/LabelValuePairs/LabelValuePairsSubvalue.d.ts +4 -0
  14. package/lib/cjs/components/LabelValuePairs/LabelValuePairsSubvalue.js +29 -0
  15. package/lib/cjs/components/LabelValuePairs/LabelValuePairsValue.d.ts +4 -0
  16. package/lib/cjs/components/LabelValuePairs/LabelValuePairsValue.js +120 -0
  17. package/lib/cjs/components/LabelValuePairs/constants.d.ts +5 -0
  18. package/lib/cjs/components/LabelValuePairs/constants.js +12 -0
  19. package/lib/cjs/components/LabelValuePairs/index.d.ts +2 -0
  20. package/lib/cjs/components/LabelValuePairs/index.js +62 -0
  21. package/lib/cjs/components/LabelValuePairs/labelValuePairsAttributes.d.ts +74 -0
  22. package/lib/cjs/components/LabelValuePairs/labelValuePairsAttributes.js +20 -0
  23. package/lib/cjs/components/Popover/Popover.js +3 -2
  24. package/lib/cjs/components/Popover/Popover.test.js +8 -0
  25. package/lib/cjs/components/PopoverMenu/PopoverMenu.js +2 -1
  26. package/lib/cjs/components/SearchField/SearchAutoComplete.js +2 -1
  27. package/lib/cjs/hooks/useSelectField/useSelectField.js +1 -1
  28. package/lib/cjs/index.d.ts +3 -0
  29. package/lib/cjs/index.js +79 -52
  30. package/lib/cjs/recipes/ListAndPanel.stories.js +1 -16
  31. package/lib/cjs/recipes/PanelContent.stories.js +11 -47
  32. package/lib/cjs/recipes/items.js +38 -30
  33. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  34. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +17 -0
  35. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +17 -0
  36. package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
  37. package/lib/cjs/styles/variants/variants.js +2 -0
  38. package/lib/cjs/types/index.d.ts +1 -0
  39. package/lib/cjs/types/index.js +46 -35
  40. package/lib/cjs/types/labelValuePairs.d.ts +35 -0
  41. package/lib/cjs/types/labelValuePairs.js +6 -0
  42. package/lib/cjs/utils/designUtils/figmaLinks.d.ts +3 -0
  43. package/lib/cjs/utils/designUtils/figmaLinks.js +3 -0
  44. package/lib/components/ComboBoxField/ComboBoxField.js +2 -1
  45. package/lib/components/LabelValuePairs/LabelValuePairs.js +35 -0
  46. package/lib/components/LabelValuePairs/LabelValuePairs.mdx +69 -0
  47. package/lib/components/LabelValuePairs/LabelValuePairs.stories.js +102 -0
  48. package/lib/components/LabelValuePairs/LabelValuePairs.styles.js +21 -0
  49. package/lib/components/LabelValuePairs/LabelValuePairs.test.js +309 -0
  50. package/lib/components/LabelValuePairs/LabelValuePairsLabel.js +35 -0
  51. package/lib/components/LabelValuePairs/LabelValuePairsRow.js +28 -0
  52. package/lib/components/LabelValuePairs/LabelValuePairsSubvalue.js +17 -0
  53. package/lib/components/LabelValuePairs/LabelValuePairsValue.js +108 -0
  54. package/lib/components/LabelValuePairs/constants.js +5 -0
  55. package/lib/components/LabelValuePairs/index.js +2 -0
  56. package/lib/components/LabelValuePairs/labelValuePairsAttributes.js +13 -0
  57. package/lib/components/Popover/Popover.js +3 -2
  58. package/lib/components/Popover/Popover.test.js +8 -0
  59. package/lib/components/PopoverMenu/PopoverMenu.js +2 -1
  60. package/lib/components/SearchField/SearchAutoComplete.js +2 -1
  61. package/lib/hooks/useSelectField/useSelectField.js +1 -1
  62. package/lib/index.js +3 -0
  63. package/lib/recipes/ListAndPanel.stories.js +3 -18
  64. package/lib/recipes/PanelContent.stories.js +11 -47
  65. package/lib/recipes/items.js +39 -31
  66. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  67. package/lib/styles/themes/next-gen/variants/variants.js +2 -0
  68. package/lib/styles/variants/variants.js +2 -0
  69. package/lib/types/index.js +1 -0
  70. package/lib/types/labelValuePairs.js +1 -0
  71. package/lib/utils/designUtils/figmaLinks.js +3 -0
  72. package/package.json +1 -1
@@ -204,7 +204,8 @@ var ComboBoxField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
204
204
  style: style,
205
205
  state: state,
206
206
  triggerRef: inputRef,
207
- popoverRef: popoverRef
207
+ popoverRef: popoverRef,
208
+ offset: 5
208
209
  }, (0, _react2.jsx)(_reactAria.FocusScope, null, (0, _react2.jsx)(_reactAria.DismissButton, {
209
210
  onDismiss: state.close
210
211
  }), (0, _react2.jsx)(_ScrollBox["default"], scrollBoxProps, (0, _react2.jsx)(_ListBox["default"], (0, _extends2["default"])({
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import PairLabel from './LabelValuePairsLabel';
3
+ import Pair from './LabelValuePairsRow';
4
+ import PairSubvalue from './LabelValuePairsSubvalue';
5
+ import PairValue from './LabelValuePairsValue';
6
+ declare const LabelValuePairs: React.ForwardRefExoticComponent<import("../../index").LabelValuePairsContainerProps & React.RefAttributes<HTMLElement>>;
7
+ declare const LabelValuePairsWithSubcomponents: typeof LabelValuePairs & {
8
+ Row: typeof Pair;
9
+ Label: typeof PairLabel;
10
+ Value: typeof PairValue;
11
+ Subvalue: typeof PairSubvalue;
12
+ };
13
+ export default LabelValuePairsWithSubcomponents;
14
+ export { Pair, PairLabel, PairSubvalue, PairValue, };
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
4
+ var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
6
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
7
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
8
+ _Object$defineProperty(exports, "__esModule", {
9
+ value: true
10
+ });
11
+ _Object$defineProperty(exports, "Pair", {
12
+ enumerable: true,
13
+ get: function get() {
14
+ return _LabelValuePairsRow["default"];
15
+ }
16
+ });
17
+ _Object$defineProperty(exports, "PairLabel", {
18
+ enumerable: true,
19
+ get: function get() {
20
+ return _LabelValuePairsLabel["default"];
21
+ }
22
+ });
23
+ _Object$defineProperty(exports, "PairSubvalue", {
24
+ enumerable: true,
25
+ get: function get() {
26
+ return _LabelValuePairsSubvalue["default"];
27
+ }
28
+ });
29
+ _Object$defineProperty(exports, "PairValue", {
30
+ enumerable: true,
31
+ get: function get() {
32
+ return _LabelValuePairsValue["default"];
33
+ }
34
+ });
35
+ exports["default"] = void 0;
36
+ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
37
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/objectWithoutProperties"));
38
+ var _react = _interopRequireWildcard(require("react"));
39
+ var _index = require("../../index");
40
+ var _LabelValuePairsLabel = _interopRequireDefault(require("./LabelValuePairsLabel"));
41
+ var _LabelValuePairsRow = _interopRequireDefault(require("./LabelValuePairsRow"));
42
+ var _LabelValuePairsSubvalue = _interopRequireDefault(require("./LabelValuePairsSubvalue"));
43
+ var _LabelValuePairsValue = _interopRequireDefault(require("./LabelValuePairsValue"));
44
+ var _react2 = require("@emotion/react");
45
+ var _excluded = ["children"];
46
+ function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
47
+ var displayName = 'LabelValuePairs';
48
+ var LabelValuePairs = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
49
+ var children = props.children,
50
+ others = (0, _objectWithoutProperties2["default"])(props, _excluded);
51
+ return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
52
+ ref: ref,
53
+ variant: "labelValuePairs.container"
54
+ }, others), children);
55
+ });
56
+ LabelValuePairs.displayName = displayName;
57
+
58
+ // The subcomponents are exported bare under a `Pair*` naming family (`Pair`, `PairLabel`,
59
+ // `PairValue`, `PairSubvalue`) as the primary, terser usage — the short `Row`/`Label` names
60
+ // can't be exported bare from the top-level barrel (`libs/astro/src/index.ts`) because they
61
+ // already resolve to unrelated exports there: `Label` (a form-label component) and `Row`
62
+ // (from react-stately). Prefixing sidesteps that collision. Static properties are also
63
+ // attached so the namespaced `<LabelValuePairs.Row>` / `.Label` / `.Value` / `.Subvalue`
64
+ // access keeps working; inside the namespace the short names are unambiguous.
65
+ var LabelValuePairsWithSubcomponents = LabelValuePairs;
66
+ LabelValuePairsWithSubcomponents.Row = _LabelValuePairsRow["default"];
67
+ LabelValuePairsWithSubcomponents.Label = _LabelValuePairsLabel["default"];
68
+ LabelValuePairsWithSubcomponents.Value = _LabelValuePairsValue["default"];
69
+ LabelValuePairsWithSubcomponents.Subvalue = _LabelValuePairsSubvalue["default"];
70
+ var _default = exports["default"] = LabelValuePairsWithSubcomponents;
@@ -0,0 +1,69 @@
1
+ import { Meta } from '@storybook/addon-docs/blocks';
2
+ import * as LabelValuePairsStories from './LabelValuePairs.stories';
3
+
4
+ <Meta of={LabelValuePairsStories} isTemplate />
5
+
6
+ # LabelValuePairs
7
+
8
+ LabelValuePairs renders a vertical list of labelled key/value rows. It is intended for read-only detail views such as slide-over panels, summary tabs, and profile pages.
9
+
10
+ Pairs are composed from child components. Each pair supports four value display modes, an optional help hint tooltip, a secondary sub-label, and an optional inline label icon or action element. Pairs with a falsy value are suppressed unless the pair is in a loading state.
11
+
12
+ ```jsx
13
+ import { Icon, LabelValuePairs, Pair, PairLabel, PairValue, PairSubvalue } from '@pingux/astro';
14
+
15
+ <LabelValuePairs>
16
+ <Pair>
17
+ <PairLabel helpHint="...">
18
+ Username
19
+ <Icon aria-hidden="true" title={{ name: '' }} icon={InformationIcon} />
20
+ </PairLabel>
21
+ <PairSubvalue>Optional secondary text</PairSubvalue>
22
+ <PairValue valueType={ValueTypes.COPYABLE}>jsmith</PairValue>
23
+ </Pair>
24
+ </LabelValuePairs>
25
+ ```
26
+
27
+ ### Required Components
28
+
29
+ `LabelValuePairs` is a public composition API, not a standalone data-driven component. Each pair must be composed from these building blocks, available both as named exports (`Pair`, `PairLabel`, `PairValue`, `PairSubvalue`) and, equivalently, as static properties on the parent (`LabelValuePairs.Row`, `.Label`, `.Value`, `.Subvalue`):
30
+
31
+ - **`Pair`** — wraps one labelled entry. Expects a `PairLabel`, optionally a `PairSubvalue`, and a `PairValue` as children. Suppresses itself (renders nothing) when its `PairValue` child's content is falsy and not loading.
32
+ - **`PairLabel`** — the pair's heading text, rendered as an `<h5>`. Accepts an optional `helpHint` prop. Its first child is the label text; an optional second child renders alongside it as an icon or action element (e.g. an `Icon` or `IconButton`).
33
+ - **`PairValue`** — the pair's value content. Accepts `valueType` (see Value Types below) and `isLoading`.
34
+ - **`PairSubvalue`** — optional secondary text rendered beneath the label.
35
+
36
+ ### Value Types
37
+
38
+ Use the exported `ValueTypes` constant to select the display mode for a `PairValue`'s content.
39
+
40
+ | `valueType` | Behavior |
41
+ | ---- | --------- |
42
+ | _(omitted)_ | Renders the value as plain `Text`. |
43
+ | `ValueTypes.COPYABLE` | Wraps the value in `CopyText`, adding a copy-to-clipboard button. |
44
+ | `ValueTypes.MASKED` | Displays bullet characters by default. An eye toggle reveals or hides the real value. |
45
+ | `ValueTypes.ELEMENT` | Renders `Value`'s children directly as a React node — use for custom content. |
46
+
47
+ ### Loading State
48
+
49
+ Set `isLoading` on `PairValue` to replace the value area with a skeleton placeholder. The pair still renders its label normally, and it renders even when `PairValue` has no children — useful when data is being fetched.
50
+
51
+ ### Accessibility
52
+
53
+ This component adheres to standard heading and landmark semantics.
54
+
55
+ #### Keyboard Navigation
56
+
57
+ | Keys | Functions |
58
+ | ---- | --------- |
59
+ | Tab | Moves focus through interactive elements: copy buttons, masked value toggles, and help hint triggers. |
60
+ | Space or Enter | Activates the focused button (copy, show/hide, or help hint). |
61
+ | Escape | Closes an open help hint popover. |
62
+
63
+ #### Screen Readers
64
+
65
+ This component uses the following attributes to assist screen readers:
66
+ - Each label heading is rendered as an **`<h5>`** element, preserving document outline semantics.
67
+ - The `helpHint` trigger button uses **`aria-label`** derived from the row label (e.g. `"Client ID help hint"`).
68
+ - The masked value toggle uses **`aria-label="Show content"`** or **`"Hide content"`** to reflect the current state.
69
+ - Loading rows use **`role="alert"`** and **`aria-live="assertive"`** on the skeleton container so screen readers announce when content becomes available.
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
4
+ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
5
+ var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
6
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
7
+ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
8
+ var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
9
+ var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
10
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
11
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
12
+ _Object$defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ exports["default"] = exports.WithSubLabel = exports.WithMaskedValue = exports.WithLoadingState = exports.WithLabelIcon = exports.WithHelpHint = exports.WithCopyableValues = exports.Default = void 0;
16
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
+ var _react = _interopRequireDefault(require("react"));
18
+ var _CheckIcon = _interopRequireDefault(require("@pingux/mdi-react/CheckIcon"));
19
+ var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
20
+ var _ = require("../..");
21
+ var _hooks = require("../../hooks");
22
+ var _figmaLinks = require("../../utils/designUtils/figmaLinks");
23
+ var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
24
+ var _LabelValuePairs = _interopRequireDefault(require("./LabelValuePairs.mdx"));
25
+ var _labelValuePairsAttributes = require("./labelValuePairsAttributes");
26
+ var _react2 = require("@emotion/react");
27
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
29
+ var _default = exports["default"] = {
30
+ title: 'Components/LabelValuePairs',
31
+ component: _.LabelValuePairs,
32
+ parameters: {
33
+ docs: {
34
+ page: function page() {
35
+ return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_LabelValuePairs["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
36
+ }
37
+ }
38
+ },
39
+ argTypes: _objectSpread({}, _labelValuePairsAttributes.labelValuePairsArgTypes)
40
+ };
41
+ var Default = exports.Default = function Default(args) {
42
+ return (0, _react2.jsx)(_.LabelValuePairs, args, (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "Username"), (0, _react2.jsx)(_.PairValue, null, "jsmith")), (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "Email"), (0, _react2.jsx)(_.PairValue, null, "jsmith@example.com")), (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "Role"), (0, _react2.jsx)(_.PairValue, null, "Administrator")));
43
+ };
44
+ Default.parameters = {
45
+ design: {
46
+ type: 'figma',
47
+ url: _figmaLinks.FIGMA_LINKS.labelValuePairs["default"]
48
+ }
49
+ };
50
+ var WithCopyableValues = exports.WithCopyableValues = function WithCopyableValues(args) {
51
+ return (0, _react2.jsx)(_.LabelValuePairs, args, (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "API Key"), (0, _react2.jsx)(_.PairValue, {
52
+ valueType: _.ValueTypes.COPYABLE
53
+ }, "abc123def456ghi789")), (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "Client Secret"), (0, _react2.jsx)(_.PairValue, {
54
+ valueType: _.ValueTypes.COPYABLE
55
+ }, "supersecretvalue")));
56
+ };
57
+ var WithMaskedValue = exports.WithMaskedValue = function WithMaskedValue(args) {
58
+ return (0, _react2.jsx)(_.LabelValuePairs, args, (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "Password"), (0, _react2.jsx)(_.PairValue, {
59
+ valueType: _.ValueTypes.MASKED
60
+ }, "mypassword123")));
61
+ };
62
+ var WithHelpHint = exports.WithHelpHint = function WithHelpHint(args) {
63
+ return (0, _react2.jsx)(_.LabelValuePairs, args, (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, {
64
+ helpHint: "This is the unique identifier for your OAuth application."
65
+ }, "Client ID"), (0, _react2.jsx)(_.PairValue, null, "client-abc-123")));
66
+ };
67
+ var WithSubLabel = exports.WithSubLabel = function WithSubLabel(args) {
68
+ return (0, _react2.jsx)(_.LabelValuePairs, args, (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "Domain"), (0, _react2.jsx)(_.PairSubvalue, null, "The primary domain for your environment."), (0, _react2.jsx)(_.PairValue, null, "example.com")));
69
+ };
70
+ var WithLabelIcon = exports.WithLabelIcon = function WithLabelIcon(args) {
71
+ var _useGetTheme = (0, _hooks.useGetTheme)(),
72
+ isOnyx = _useGetTheme.themeState.isOnyx;
73
+ var icon = isOnyx ? (0, _react2.jsx)(_.IconWrapper, {
74
+ icon: _CheckIcon["default"],
75
+ color: "green",
76
+ size: "xs",
77
+ isCircle: true,
78
+ title: {
79
+ name: 'Verified'
80
+ },
81
+ iconProps: {
82
+ size: 'sm'
83
+ }
84
+ }) : (0, _react2.jsx)(_.NoticeIcon, {
85
+ color: "green",
86
+ status: _statuses["default"].SUCCESS,
87
+ "aria-label": "".concat(_statuses["default"].SUCCESS, "-icon"),
88
+ size: "xs"
89
+ });
90
+ return (0, _react2.jsx)(_.LabelValuePairs, args, (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "Status", (0, _react2.jsx)(_.Box, {
91
+ isRow: true,
92
+ gap: "xs",
93
+ alignItems: "center"
94
+ }, icon, (0, _react2.jsx)(_.Text, {
95
+ variant: "listSubtitle",
96
+ color: isOnyx ? 'darkgreen' : 'green'
97
+ }, "Verified"))), (0, _react2.jsx)(_.PairValue, null, "Active")));
98
+ };
99
+ var WithLoadingState = exports.WithLoadingState = function WithLoadingState(args) {
100
+ return (0, _react2.jsx)(_.Box, {
101
+ width: "200px"
102
+ }, (0, _react2.jsx)(_.LabelValuePairs, args, (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "Username"), (0, _react2.jsx)(_.PairValue, {
103
+ isLoading: true
104
+ })), (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "Email"), (0, _react2.jsx)(_.PairValue, {
105
+ isLoading: true
106
+ })), (0, _react2.jsx)(_.Pair, null, (0, _react2.jsx)(_.PairLabel, null, "Role"), (0, _react2.jsx)(_.PairValue, {
107
+ isLoading: true
108
+ }))));
109
+ };
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ container: {
3
+ gap: string;
4
+ };
5
+ fieldItem: {
6
+ gap: string;
7
+ };
8
+ value: {
9
+ fontWeight: number;
10
+ color: string;
11
+ };
12
+ subLabel: {
13
+ fontSize: string;
14
+ fontWeight: number;
15
+ color: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var container = {
9
+ gap: 'md'
10
+ };
11
+ var fieldItem = {
12
+ gap: 'xs'
13
+ };
14
+ var value = {
15
+ fontWeight: 0,
16
+ color: 'secondary'
17
+ };
18
+ var subLabel = {
19
+ fontSize: 'sm',
20
+ fontWeight: 0,
21
+ color: 'secondary'
22
+ };
23
+ var _default = exports["default"] = {
24
+ container: container,
25
+ fieldItem: fieldItem,
26
+ value: value,
27
+ subLabel: subLabel
28
+ };