@pingux/astro 2.208.3 → 2.208.4-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.
- package/lib/cjs/components/AIComponents/AIPanel/AIPanel.stories.js +3 -1
- package/lib/cjs/components/AIComponents/AIPanel/aiPanelAttributes.d.ts +17 -0
- package/lib/cjs/components/AIComponents/AIPanel/aiPanelAttributes.js +42 -0
- package/lib/cjs/components/AIComponents/Prompt/Prompt.stories.js +7 -1
- package/lib/cjs/components/AIComponents/Response/Response.stories.js +3 -1
- package/lib/cjs/components/AIComponents/Response/responseAttributes.d.ts +20 -0
- package/lib/cjs/components/AIComponents/Response/responseAttributes.js +27 -0
- package/lib/cjs/components/AIComponents/Suggestions/Suggestions.stories.js +17 -1
- package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +4 -23
- package/lib/cjs/components/AccordionGroup/accordionGroupAttributes.d.ts +21 -0
- package/lib/cjs/components/AccordionGroup/accordionGroupAttributes.js +29 -0
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +2 -28
- package/lib/cjs/components/ArrayField/arrayFieldAttributes.d.ts +99 -0
- package/lib/cjs/components/ArrayField/arrayFieldAttributes.js +46 -0
- package/lib/cjs/components/AstroProvider/AstroProvider.stories.js +21 -1
- package/lib/cjs/components/Avatar/Avatar.stories.js +2 -23
- package/lib/cjs/components/Avatar/avatarAttributes.d.ts +23 -0
- package/lib/cjs/components/Avatar/avatarAttributes.js +30 -0
- package/lib/cjs/components/Bracket/Bracket.stories.js +2 -25
- package/lib/cjs/components/Bracket/bracketAttributes.d.ts +25 -0
- package/lib/cjs/components/Bracket/bracketAttributes.js +32 -0
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +2 -34
- package/lib/cjs/components/CheckboxField/checkboxFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/CheckboxField/checkboxFieldAttributes.js +52 -0
- package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +12 -12
- package/lib/cjs/components/CollapsiblePanel/collapsiblePanelAttributes.d.ts +12 -0
- package/lib/cjs/components/CollapsiblePanel/collapsiblePanelAttributes.js +19 -0
- package/lib/cjs/components/ColorField/ColorField.stories.js +2 -26
- package/lib/cjs/components/ColorField/colorFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/ColorField/colorFieldAttributes.js +44 -0
- package/lib/cjs/components/DataTable/DataTable.stories.js +3 -101
- package/lib/cjs/components/DataTable/dataTableAttributes.d.ts +162 -0
- package/lib/cjs/components/DataTable/dataTableAttributes.js +109 -0
- package/lib/cjs/components/ExpandableText/ExpandableText.stories.js +13 -1
- package/lib/cjs/components/ExpandableText/expandableTextAttributes.d.ts +26 -0
- package/lib/cjs/components/ExpandableText/expandableTextAttributes.js +33 -0
- package/lib/cjs/components/Footer/Footer.stories.js +6 -0
- package/lib/cjs/components/Grid/Grid.stories.js +2 -19
- package/lib/cjs/components/Grid/gridAttributes.d.ts +19 -0
- package/lib/cjs/components/Grid/gridAttributes.js +26 -0
- package/lib/cjs/components/IconBadge/IconBadge.stories.js +32 -1
- package/lib/cjs/components/IconButtonToggle/IconButtonToggle.stories.js +3 -1
- package/lib/cjs/components/IconButtonToggle/iconButtonToggleAttributes.d.ts +40 -0
- package/lib/cjs/components/IconButtonToggle/iconButtonToggleAttributes.js +63 -0
- package/lib/cjs/components/Image/Image.stories.js +2 -16
- package/lib/cjs/components/Image/imageAttributes.d.ts +15 -0
- package/lib/cjs/components/Image/imageAttributes.js +23 -0
- package/lib/cjs/components/Input/Input.stories.js +12 -6
- package/lib/cjs/components/Input/inputAttributes.d.ts +6 -0
- package/lib/cjs/components/Input/inputAttributes.js +13 -0
- package/lib/cjs/components/Label/Label.stories.js +2 -13
- package/lib/cjs/components/Label/labelAttributes.d.ts +17 -0
- package/lib/cjs/components/Label/labelAttributes.js +21 -0
- package/lib/cjs/components/Link/Link.stories.js +2 -33
- package/lib/cjs/components/Link/linkAttributes.d.ts +28 -0
- package/lib/cjs/components/Link/linkAttributes.js +41 -0
- package/lib/cjs/components/ListView/stories/ListViewOnyxDark.stories.js +51 -1
- package/lib/cjs/components/ListView/stories/listViewOnyxDarkAttributes.d.ts +31 -0
- package/lib/cjs/components/ListView/stories/listViewOnyxDarkAttributes.js +58 -0
- package/lib/cjs/components/Modal/Convenience/ModalBody.stories.js +13 -1
- package/lib/cjs/components/Modal/Convenience/ModalFooter.stories.js +13 -1
- package/lib/cjs/components/Modal/Convenience/ModalHeader.stories.js +13 -1
- package/lib/cjs/components/Modal/Convenience/modalBodyAttributes.d.ts +21 -0
- package/lib/cjs/components/Modal/Convenience/modalBodyAttributes.js +42 -0
- package/lib/cjs/components/Modal/Convenience/modalFooterAttributes.d.ts +28 -0
- package/lib/cjs/components/Modal/Convenience/modalFooterAttributes.js +51 -0
- package/lib/cjs/components/Modal/Convenience/modalHeaderAttributes.d.ts +35 -0
- package/lib/cjs/components/Modal/Convenience/modalHeaderAttributes.js +60 -0
- package/lib/cjs/components/Modal/Modal.stories.js +13 -58
- package/lib/cjs/components/Modal/modalAttributes.d.ts +55 -0
- package/lib/cjs/components/Modal/modalAttributes.js +63 -0
- package/lib/cjs/components/NavBar/NavBar.stories.js +13 -2
- package/lib/cjs/components/NavBar/navBarAttributes.d.ts +30 -0
- package/lib/cjs/components/NavBar/navBarAttributes.js +55 -0
- package/lib/cjs/components/NavBar/stories/NavBar.Onyx.stories.js +13 -1
- package/lib/cjs/components/NavBar/stories/navBarOnyxAttributes.d.ts +24 -0
- package/lib/cjs/components/NavBar/stories/navBarOnyxAttributes.js +49 -0
- package/lib/cjs/components/Pagination/Pagination.stories.js +2 -24
- package/lib/cjs/components/Pagination/paginationAttributes.d.ts +24 -0
- package/lib/cjs/components/Pagination/paginationAttributes.js +31 -0
- package/lib/cjs/components/PopoverMenu/PopoverMenu.stories.js +2 -13
- package/lib/cjs/components/PopoverMenu/popoverMenuAttributes.d.ts +13 -0
- package/lib/cjs/components/PopoverMenu/popoverMenuAttributes.js +20 -0
- package/lib/cjs/components/ProgressBar/ProgressBar.stories.js +2 -27
- package/lib/cjs/components/ProgressBar/progressBarAttributes.d.ts +42 -0
- package/lib/cjs/components/ProgressBar/progressBarAttributes.js +65 -0
- package/lib/cjs/components/RadioGroupField/RadioGroupField.stories.js +2 -28
- package/lib/cjs/components/RadioGroupField/radioGroupFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/RadioGroupField/radioGroupFieldAttributes.js +46 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.js +4 -13
- package/lib/cjs/components/RangeCalendar/rangeCalendarAttributes.d.ts +121 -0
- package/lib/cjs/components/RangeCalendar/rangeCalendarAttributes.js +91 -0
- package/lib/cjs/components/SearchField/SearchField.stories.js +2 -27
- package/lib/cjs/components/SearchField/searchFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/SearchField/searchFieldAttributes.js +45 -0
- package/lib/cjs/components/SelectField/SelectField.stories.js +2 -41
- package/lib/cjs/components/SelectField/selectFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/SelectField/selectFieldAttributes.js +61 -0
- package/lib/cjs/components/Separator/Separator.stories.js +21 -1
- package/lib/cjs/components/ServerErrorBoundary/ServerErrorBoundary.stories.js +2 -0
- package/lib/cjs/components/ServerErrorBoundary/serverErrorBoundaryAttributes.d.ts +33 -0
- package/lib/cjs/components/ServerErrorBoundary/serverErrorBoundaryAttributes.js +54 -0
- package/lib/cjs/components/SliderField/SliderField.stories.js +2 -38
- package/lib/cjs/components/SliderField/sliderFieldAttributes.d.ts +38 -0
- package/lib/cjs/components/SliderField/sliderFieldAttributes.js +45 -0
- package/lib/cjs/components/StatusIcon/StatusIcon.stories.js +30 -0
- package/lib/cjs/components/Table/Table.stories.js +20 -4
- package/lib/cjs/components/TableBase/TableBase.stories.js +3 -1
- package/lib/cjs/components/TableBase/tableBaseAttributes.d.ts +33 -0
- package/lib/cjs/components/TableBase/tableBaseAttributes.js +62 -0
- package/lib/cjs/components/Tabs/Tabs.stories.js +2 -18
- package/lib/cjs/components/Tabs/tabsAttributes.d.ts +18 -0
- package/lib/cjs/components/Tabs/tabsAttributes.js +25 -0
- package/lib/cjs/components/Text/Text.stories.js +2 -26
- package/lib/cjs/components/Text/textAttributes.d.ts +26 -0
- package/lib/cjs/components/Text/textAttributes.js +33 -0
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +2 -41
- package/lib/cjs/components/TextAreaField/textAreaFieldAttributes.d.ts +1 -0
- package/lib/cjs/components/TextAreaField/textAreaFieldAttributes.js +61 -0
- package/lib/cjs/components/TimeField/TimeField.stories.js +2 -1
- package/lib/cjs/components/TimeField/timeFieldAttributes.d.ts +89 -0
- package/lib/cjs/components/TimeField/timeFieldAttributes.js +132 -0
- package/lib/cjs/components/TimeZonePicker/TimeZonePicker.stories.js +55 -0
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +3 -1
- package/lib/cjs/components/TooltipTrigger/tooltipTriggerAttributes.d.ts +130 -0
- package/lib/cjs/components/TooltipTrigger/tooltipTriggerAttributes.js +90 -0
- package/lib/cjs/components/TreeView/TreeView.stories.js +61 -1
- package/lib/components/AIComponents/AIPanel/AIPanel.stories.js +3 -1
- package/lib/components/AIComponents/AIPanel/aiPanelAttributes.js +35 -0
- package/lib/components/AIComponents/Prompt/Prompt.stories.js +7 -1
- package/lib/components/AIComponents/Response/Response.stories.js +3 -1
- package/lib/components/AIComponents/Response/responseAttributes.js +20 -0
- package/lib/components/AIComponents/Suggestions/Suggestions.stories.js +18 -1
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +4 -23
- package/lib/components/AccordionGroup/accordionGroupAttributes.js +22 -0
- package/lib/components/ArrayField/ArrayField.stories.js +2 -28
- package/lib/components/ArrayField/arrayFieldAttributes.js +39 -0
- package/lib/components/AstroProvider/AstroProvider.stories.js +21 -1
- package/lib/components/Avatar/Avatar.stories.js +2 -23
- package/lib/components/Avatar/avatarAttributes.js +23 -0
- package/lib/components/Bracket/Bracket.stories.js +2 -25
- package/lib/components/Bracket/bracketAttributes.js +25 -0
- package/lib/components/CheckboxField/CheckboxField.stories.js +2 -34
- package/lib/components/CheckboxField/checkboxFieldAttributes.js +45 -0
- package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +13 -12
- package/lib/components/CollapsiblePanel/collapsiblePanelAttributes.js +12 -0
- package/lib/components/ColorField/ColorField.stories.js +2 -26
- package/lib/components/ColorField/colorFieldAttributes.js +37 -0
- package/lib/components/DataTable/DataTable.stories.js +2 -101
- package/lib/components/DataTable/dataTableAttributes.js +102 -0
- package/lib/components/ExpandableText/ExpandableText.stories.js +14 -1
- package/lib/components/ExpandableText/expandableTextAttributes.js +26 -0
- package/lib/components/Footer/Footer.stories.js +6 -0
- package/lib/components/Grid/Grid.stories.js +2 -19
- package/lib/components/Grid/gridAttributes.js +19 -0
- package/lib/components/IconBadge/IconBadge.stories.js +33 -1
- package/lib/components/IconButtonToggle/IconButtonToggle.stories.js +3 -1
- package/lib/components/IconButtonToggle/iconButtonToggleAttributes.js +56 -0
- package/lib/components/Image/Image.stories.js +2 -16
- package/lib/components/Image/imageAttributes.js +16 -0
- package/lib/components/Input/Input.stories.js +13 -6
- package/lib/components/Input/inputAttributes.js +6 -0
- package/lib/components/Label/Label.stories.js +2 -13
- package/lib/components/Label/labelAttributes.js +14 -0
- package/lib/components/Link/Link.stories.js +2 -33
- package/lib/components/Link/linkAttributes.js +33 -0
- package/lib/components/ListView/stories/ListViewOnyxDark.stories.js +52 -1
- package/lib/components/ListView/stories/listViewOnyxDarkAttributes.js +51 -0
- package/lib/components/Modal/Convenience/ModalBody.stories.js +14 -1
- package/lib/components/Modal/Convenience/ModalFooter.stories.js +14 -1
- package/lib/components/Modal/Convenience/ModalHeader.stories.js +14 -1
- package/lib/components/Modal/Convenience/modalBodyAttributes.js +35 -0
- package/lib/components/Modal/Convenience/modalFooterAttributes.js +44 -0
- package/lib/components/Modal/Convenience/modalHeaderAttributes.js +53 -0
- package/lib/components/Modal/Modal.stories.js +13 -56
- package/lib/components/Modal/modalAttributes.js +56 -0
- package/lib/components/NavBar/NavBar.stories.js +13 -0
- package/lib/components/NavBar/navBarAttributes.js +48 -0
- package/lib/components/NavBar/stories/NavBar.Onyx.stories.js +14 -1
- package/lib/components/NavBar/stories/navBarOnyxAttributes.js +42 -0
- package/lib/components/Pagination/Pagination.stories.js +2 -24
- package/lib/components/Pagination/paginationAttributes.js +24 -0
- package/lib/components/PopoverMenu/PopoverMenu.stories.js +2 -13
- package/lib/components/PopoverMenu/popoverMenuAttributes.js +13 -0
- package/lib/components/ProgressBar/ProgressBar.stories.js +2 -27
- package/lib/components/ProgressBar/progressBarAttributes.js +58 -0
- package/lib/components/RadioGroupField/RadioGroupField.stories.js +2 -28
- package/lib/components/RadioGroupField/radioGroupFieldAttributes.js +39 -0
- package/lib/components/RangeCalendar/RangeCalendar.stories.js +2 -13
- package/lib/components/RangeCalendar/rangeCalendarAttributes.js +84 -0
- package/lib/components/SearchField/SearchField.stories.js +2 -27
- package/lib/components/SearchField/searchFieldAttributes.js +38 -0
- package/lib/components/SelectField/SelectField.stories.js +2 -41
- package/lib/components/SelectField/selectFieldAttributes.js +54 -0
- package/lib/components/Separator/Separator.stories.js +22 -1
- package/lib/components/ServerErrorBoundary/ServerErrorBoundary.stories.js +2 -0
- package/lib/components/ServerErrorBoundary/serverErrorBoundaryAttributes.js +47 -0
- package/lib/components/SliderField/SliderField.stories.js +2 -38
- package/lib/components/SliderField/sliderFieldAttributes.js +38 -0
- package/lib/components/StatusIcon/StatusIcon.stories.js +31 -0
- package/lib/components/Table/Table.stories.js +21 -4
- package/lib/components/TableBase/TableBase.stories.js +3 -1
- package/lib/components/TableBase/tableBaseAttributes.js +55 -0
- package/lib/components/Tabs/Tabs.stories.js +2 -18
- package/lib/components/Tabs/tabsAttributes.js +18 -0
- package/lib/components/Text/Text.stories.js +2 -26
- package/lib/components/Text/textAttributes.js +26 -0
- package/lib/components/TextAreaField/TextAreaField.stories.js +2 -41
- package/lib/components/TextAreaField/textAreaFieldAttributes.js +54 -0
- package/lib/components/TimeField/TimeField.stories.js +2 -1
- package/lib/components/TimeField/timeFieldAttributes.js +125 -0
- package/lib/components/TimeZonePicker/TimeZonePicker.stories.js +56 -0
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +3 -1
- package/lib/components/TooltipTrigger/tooltipTriggerAttributes.js +83 -0
- package/lib/components/TreeView/TreeView.stories.js +60 -0
- package/package.json +1 -1
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export declare const tooltipTriggerArgTypes: {
|
|
2
|
+
'aria-controls': {
|
|
3
|
+
control: {
|
|
4
|
+
type: string;
|
|
5
|
+
};
|
|
6
|
+
table: {
|
|
7
|
+
type: {
|
|
8
|
+
summary: string;
|
|
9
|
+
};
|
|
10
|
+
category: string;
|
|
11
|
+
};
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
'aria-describedby': {
|
|
15
|
+
control: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
table: {
|
|
19
|
+
type: {
|
|
20
|
+
summary: string;
|
|
21
|
+
};
|
|
22
|
+
category: string;
|
|
23
|
+
};
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
'aria-details': {
|
|
27
|
+
control: {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
table: {
|
|
31
|
+
type: {
|
|
32
|
+
summary: string;
|
|
33
|
+
};
|
|
34
|
+
category: string;
|
|
35
|
+
};
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
'aria-errormessage': {
|
|
39
|
+
control: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
table: {
|
|
43
|
+
type: {
|
|
44
|
+
summary: string;
|
|
45
|
+
};
|
|
46
|
+
category: string;
|
|
47
|
+
};
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
'aria-label': {
|
|
51
|
+
control: {
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
table: {
|
|
55
|
+
type: {
|
|
56
|
+
summary: string;
|
|
57
|
+
};
|
|
58
|
+
category: string;
|
|
59
|
+
};
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
'aria-labelledby': {
|
|
63
|
+
control: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
table: {
|
|
67
|
+
type: {
|
|
68
|
+
summary: string;
|
|
69
|
+
};
|
|
70
|
+
category: string;
|
|
71
|
+
};
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
align: {
|
|
75
|
+
description: string;
|
|
76
|
+
control: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
options: string[];
|
|
80
|
+
};
|
|
81
|
+
direction: {
|
|
82
|
+
description: string;
|
|
83
|
+
control: {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
options: string[];
|
|
87
|
+
};
|
|
88
|
+
offset: {
|
|
89
|
+
description: string;
|
|
90
|
+
control: {
|
|
91
|
+
type: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
crossOffset: {
|
|
95
|
+
description: string;
|
|
96
|
+
control: {
|
|
97
|
+
type: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
delay: {
|
|
101
|
+
description: string;
|
|
102
|
+
control: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
arrowCrossOffset: {
|
|
107
|
+
description: string;
|
|
108
|
+
control: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
width: {
|
|
113
|
+
description: string;
|
|
114
|
+
control: {
|
|
115
|
+
type: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
placement: {
|
|
119
|
+
description: string;
|
|
120
|
+
control: {
|
|
121
|
+
type: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
isDarkMode: any;
|
|
125
|
+
isDefaultOpen: any;
|
|
126
|
+
isNotFlippable: any;
|
|
127
|
+
hasNoArrow: any;
|
|
128
|
+
isOpen: any;
|
|
129
|
+
isDisabled: any;
|
|
130
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
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.tooltipTriggerArgTypes = void 0;
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
17
|
+
var _ariaAttributes = require("../../utils/docUtils/ariaAttributes");
|
|
18
|
+
var _docArgTypes = require("../../utils/docUtils/docArgTypes");
|
|
19
|
+
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; }
|
|
20
|
+
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; }
|
|
21
|
+
var tooltipTriggerArgTypes = exports.tooltipTriggerArgTypes = _objectSpread({
|
|
22
|
+
align: {
|
|
23
|
+
description: 'Alignment of the tooltip relative to the trigger element.',
|
|
24
|
+
control: {
|
|
25
|
+
type: 'select'
|
|
26
|
+
},
|
|
27
|
+
options: ['start', 'end', 'middle']
|
|
28
|
+
},
|
|
29
|
+
direction: {
|
|
30
|
+
description: 'Where the tooltip opens relative to its trigger.',
|
|
31
|
+
control: {
|
|
32
|
+
type: 'select'
|
|
33
|
+
},
|
|
34
|
+
options: ['top', 'right', 'bottom', 'left']
|
|
35
|
+
},
|
|
36
|
+
offset: {
|
|
37
|
+
description: 'Offset of the tooltip relative to its trigger along the primary axis.',
|
|
38
|
+
control: {
|
|
39
|
+
type: 'number'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
crossOffset: {
|
|
43
|
+
description: 'Additional offset applied along the cross axis between the tooltip and its anchor.',
|
|
44
|
+
control: {
|
|
45
|
+
type: 'number'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
delay: {
|
|
49
|
+
description: 'Delay in milliseconds before the tooltip is shown after hovering.',
|
|
50
|
+
control: {
|
|
51
|
+
type: 'number'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
arrowCrossOffset: {
|
|
55
|
+
description: 'Arrow offset relative to the left of the tooltip. Must be a px or percentage value.',
|
|
56
|
+
control: {
|
|
57
|
+
type: 'text'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
width: {
|
|
61
|
+
description: 'Width applied to the wrapper of the tooltip component.',
|
|
62
|
+
control: {
|
|
63
|
+
type: 'text'
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
placement: {
|
|
67
|
+
description: 'The placement of the tooltip with respect to its anchor element.',
|
|
68
|
+
control: {
|
|
69
|
+
type: 'text'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
isDarkMode: _objectSpread(_objectSpread({}, _docArgTypes.booleanArg), {}, {
|
|
73
|
+
description: 'Whether the tooltip uses dark styling with white text (defaults to true).'
|
|
74
|
+
}),
|
|
75
|
+
isDefaultOpen: _objectSpread(_objectSpread({}, _docArgTypes.booleanArg), {}, {
|
|
76
|
+
description: 'Whether the tooltip is open by default (uncontrolled).'
|
|
77
|
+
}),
|
|
78
|
+
isNotFlippable: _objectSpread(_objectSpread({}, _docArgTypes.booleanArg), {}, {
|
|
79
|
+
description: 'Whether the tooltip is prevented from flipping when there is insufficient space for the given direction.'
|
|
80
|
+
}),
|
|
81
|
+
hasNoArrow: _objectSpread(_objectSpread({}, _docArgTypes.booleanArg), {}, {
|
|
82
|
+
description: 'Whether the tooltip arrow indicator is hidden.'
|
|
83
|
+
}),
|
|
84
|
+
isOpen: _objectSpread(_objectSpread({}, _docArgTypes.booleanArg), {}, {
|
|
85
|
+
description: 'Whether the tooltip is currently open (controlled).'
|
|
86
|
+
}),
|
|
87
|
+
isDisabled: _objectSpread(_objectSpread({}, _docArgTypes.booleanArg), {}, {
|
|
88
|
+
description: 'Whether the tooltip trigger is disabled, preventing the tooltip from appearing.'
|
|
89
|
+
})
|
|
90
|
+
}, _ariaAttributes.ariaAttributeBaseArgTypes);
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
|
|
4
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
|
5
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
|
6
|
+
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
|
7
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
8
|
+
var _forEachInstanceProperty2 = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
|
9
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
|
10
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
|
4
11
|
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
5
12
|
var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
|
|
6
13
|
var _Object$create = require("@babel/runtime-corejs3/core-js-stable/object/create");
|
|
@@ -12,7 +19,6 @@ var _Promise2 = require("@babel/runtime-corejs3/core-js-stable/promise");
|
|
|
12
19
|
var _Symbol$iterator = require("@babel/runtime-corejs3/core-js-stable/symbol/iterator");
|
|
13
20
|
var _reverseInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/reverse");
|
|
14
21
|
var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
|
|
15
|
-
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
16
22
|
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
17
23
|
_Object$defineProperty(exports, "__esModule", {
|
|
18
24
|
value: true
|
|
@@ -28,9 +34,11 @@ var _splice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
|
|
|
28
34
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
|
|
29
35
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
30
36
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
37
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
31
38
|
var _react = _interopRequireWildcard(require("react"));
|
|
32
39
|
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
|
33
40
|
var _index = require("../../index");
|
|
41
|
+
var _docArgTypes = require("../../utils/docUtils/docArgTypes");
|
|
34
42
|
var _TreeView = _interopRequireDefault(require("./TreeView.mdx"));
|
|
35
43
|
var _react2 = require("@emotion/react");
|
|
36
44
|
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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
@@ -43,6 +51,8 @@ function _regeneratorAsyncIterator(t, e) { function n(r, o, i, f) { try { var c
|
|
|
43
51
|
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof _Symbol ? _Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = _Object$create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: _bindInstanceProperty(d).call(d, e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = _Object$getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(c); function f(e) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = _Object$create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
44
52
|
function _regeneratorDefine2(e, r, n, t) { var i = _Object$defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
45
53
|
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
54
|
+
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; }
|
|
55
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty2(_context5 = ownKeys(Object(t), !0)).call(_context5, function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty2(_context6 = ownKeys(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
46
56
|
var _default = exports["default"] = {
|
|
47
57
|
title: 'Experimental/TreeView',
|
|
48
58
|
component: _index.TreeView,
|
|
@@ -66,6 +76,56 @@ var _default = exports["default"] = {
|
|
|
66
76
|
}]
|
|
67
77
|
}
|
|
68
78
|
}
|
|
79
|
+
},
|
|
80
|
+
argTypes: {
|
|
81
|
+
onExpandedChange: _objectSpread(_objectSpread({}, _docArgTypes.funcArg), {}, {
|
|
82
|
+
description: 'Callback invoked when the set of expanded tree nodes changes.'
|
|
83
|
+
}),
|
|
84
|
+
onKeyDown: _objectSpread(_objectSpread({}, _docArgTypes.funcArg), {}, {
|
|
85
|
+
description: 'Callback invoked when a key is pressed while the tree has focus.'
|
|
86
|
+
}),
|
|
87
|
+
onDragStart: _objectSpread(_objectSpread({}, _docArgTypes.funcArg), {}, {
|
|
88
|
+
description: 'Callback invoked when a drag operation on a tree item starts.'
|
|
89
|
+
}),
|
|
90
|
+
onDrop: _objectSpread(_objectSpread({}, _docArgTypes.funcArg), {}, {
|
|
91
|
+
description: 'Callback invoked when an item is dropped onto the tree.'
|
|
92
|
+
}),
|
|
93
|
+
pageLength: {
|
|
94
|
+
description: 'Number of items to move focus by when Page Up or Page Down is pressed.',
|
|
95
|
+
control: {
|
|
96
|
+
type: 'number'
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
'aria-label': {
|
|
100
|
+
description: 'Defines an accessible label for the tree.',
|
|
101
|
+
control: {
|
|
102
|
+
type: 'text'
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
tree: {
|
|
106
|
+
description: 'The tree data object returned by useTreeData, used to manage tree state.',
|
|
107
|
+
control: {
|
|
108
|
+
type: null
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
items: {
|
|
112
|
+
description: 'The iterable list of top-level tree items to render.',
|
|
113
|
+
control: {
|
|
114
|
+
type: null
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
disabledKeys: {
|
|
118
|
+
description: 'Keys of items that are disabled and cannot be interacted with.',
|
|
119
|
+
control: {
|
|
120
|
+
type: null
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
loadingNodes: {
|
|
124
|
+
description: 'Array of node loading state objects indicating which nodes are currently loading children.',
|
|
125
|
+
control: {
|
|
126
|
+
type: null
|
|
127
|
+
}
|
|
128
|
+
}
|
|
69
129
|
}
|
|
70
130
|
};
|
|
71
131
|
var data = [{
|
|
@@ -5,11 +5,13 @@ import DotsIcon from '@pingux/mdi-react/DotsHorizontalIcon';
|
|
|
5
5
|
import { useOverlayPanelState } from '../../../hooks';
|
|
6
6
|
import { Box, Button, Icon, IconButton, Item, Menu, PopoverMenu, Text } from '../../../index';
|
|
7
7
|
import AIPanel from './AIPanel';
|
|
8
|
+
import { aiPanelArgTypes } from './aiPanelAttributes';
|
|
8
9
|
import AIPanelHeader from './AIPanelHeader';
|
|
9
10
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
10
11
|
export default {
|
|
11
12
|
component: AIPanel,
|
|
12
|
-
title: 'AI Components/AI Panel'
|
|
13
|
+
title: 'AI Components/AI Panel',
|
|
14
|
+
argTypes: aiPanelArgTypes
|
|
13
15
|
};
|
|
14
16
|
var AIMenuPopover = function AIMenuPopover() {
|
|
15
17
|
var _useState = useState(false),
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
+
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; }
|
|
11
|
+
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) { _defineProperty(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; }
|
|
12
|
+
import { booleanArg, funcArg } from '../../../utils/docUtils/docArgTypes';
|
|
13
|
+
export var aiPanelArgTypes = {
|
|
14
|
+
state: {
|
|
15
|
+
description: 'The overlay panel state object controlling open/close behavior (required).',
|
|
16
|
+
control: {
|
|
17
|
+
type: null
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
isExpanded: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
21
|
+
description: 'Whether the AI panel is in expanded (full-width) mode.'
|
|
22
|
+
}),
|
|
23
|
+
setIsExpanded: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
24
|
+
description: 'Callback invoked to toggle the expanded state of the panel.'
|
|
25
|
+
}),
|
|
26
|
+
onPanelClose: _objectSpread(_objectSpread({}, funcArg), {}, {
|
|
27
|
+
description: 'Callback invoked when the panel close action is triggered.'
|
|
28
|
+
}),
|
|
29
|
+
headerProps: {
|
|
30
|
+
description: 'Props passed to the panel header element.',
|
|
31
|
+
control: {
|
|
32
|
+
type: null
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -4,7 +4,13 @@ import Prompt from './Prompt';
|
|
|
4
4
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
5
|
export default {
|
|
6
6
|
title: 'AI Components/Prompt',
|
|
7
|
-
component: Prompt
|
|
7
|
+
component: Prompt,
|
|
8
|
+
argTypes: {
|
|
9
|
+
children: {
|
|
10
|
+
description: 'Content rendered inside the prompt container.',
|
|
11
|
+
control: false
|
|
12
|
+
}
|
|
13
|
+
}
|
|
8
14
|
};
|
|
9
15
|
export var Default = function Default() {
|
|
10
16
|
return ___EmotionJSX(Prompt, null, ___EmotionJSX(Text, null, "Did my number of registrations go up or down in the last month?"));
|
|
@@ -10,6 +10,7 @@ import { Response } from '../../../index';
|
|
|
10
10
|
import Markdown from './ResponseMarkdown/ResponseMarkdown';
|
|
11
11
|
import ResponseReadme from './Response.mdx';
|
|
12
12
|
import ResponseAttachment from './ResponseAttachment';
|
|
13
|
+
import { responseArgTypes } from './responseAttributes';
|
|
13
14
|
import ResponseList from './ResponseList';
|
|
14
15
|
import ResponseText from './ResponseText';
|
|
15
16
|
import ResponseToolbar from './ResponseToolbar';
|
|
@@ -24,7 +25,8 @@ export default {
|
|
|
24
25
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ResponseReadme, null), ___EmotionJSX(DocsLayout, null));
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
|
-
}
|
|
28
|
+
},
|
|
29
|
+
argTypes: responseArgTypes
|
|
28
30
|
};
|
|
29
31
|
var testText = 'Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet';
|
|
30
32
|
export var Default = function Default() {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export var responseArgTypes = {
|
|
2
|
+
delay: {
|
|
3
|
+
description: 'Delay in milliseconds before the animation starts.',
|
|
4
|
+
control: {
|
|
5
|
+
type: 'number'
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
children: {
|
|
9
|
+
description: 'Content rendered inside the response container (required).',
|
|
10
|
+
control: false
|
|
11
|
+
},
|
|
12
|
+
containerProps: {
|
|
13
|
+
description: 'Props passed to the outer container element.',
|
|
14
|
+
control: false
|
|
15
|
+
},
|
|
16
|
+
iconProps: {
|
|
17
|
+
description: 'Props passed to the AI icon element.',
|
|
18
|
+
control: false
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -1,9 +1,26 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
+
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; }
|
|
11
|
+
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) { _defineProperty(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; }
|
|
1
12
|
import React from 'react';
|
|
2
13
|
import { AstroWrapper, NextGenTheme, Suggestion, Suggestions } from '../../../index';
|
|
14
|
+
import { booleanArg } from '../../../utils/docUtils/docArgTypes';
|
|
3
15
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
4
16
|
export default {
|
|
5
17
|
title: 'Ai Components/Suggestions',
|
|
6
|
-
component: Suggestions
|
|
18
|
+
component: Suggestions,
|
|
19
|
+
argTypes: {
|
|
20
|
+
isFullScreen: _objectSpread(_objectSpread({}, booleanArg), {}, {
|
|
21
|
+
description: 'Whether the suggestions panel is displayed in full-screen mode.'
|
|
22
|
+
})
|
|
23
|
+
}
|
|
7
24
|
};
|
|
8
25
|
var lorem = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
|
|
9
26
|
export var Default = function Default() {
|
|
@@ -4,8 +4,8 @@ import React, { useState } from 'react';
|
|
|
4
4
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
5
5
|
import { AccordionGroup, Badge, Box, Button, HelpHint, Item, Text, TextField } from '../../index';
|
|
6
6
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
|
7
|
-
import { validHeadingTags } from '../AccordionItem/AccordionItem';
|
|
8
7
|
import AccordionReadme from './AccordionGroup.mdx';
|
|
8
|
+
import { accordionGroupArgTypes } from './accordionGroupAttributes';
|
|
9
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
10
10
|
var itemArray = [{
|
|
11
11
|
key: 't1',
|
|
@@ -42,7 +42,7 @@ var itemArrayDisabled = [{
|
|
|
42
42
|
label: 'Accordion Disabled',
|
|
43
43
|
children: ___EmotionJSX(Text, null, "Hi")
|
|
44
44
|
}];
|
|
45
|
-
|
|
45
|
+
var meta = {
|
|
46
46
|
title: 'Components/AccordionGroup',
|
|
47
47
|
component: AccordionGroup,
|
|
48
48
|
parameters: {
|
|
@@ -55,28 +55,9 @@ export default {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
argTypes:
|
|
59
|
-
id: {
|
|
60
|
-
control: {
|
|
61
|
-
type: 'text'
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
disabledKeys: {
|
|
65
|
-
description: 'The item keys that are disabled. These items cannot be selected, focused, or otherwise interacted with. Array of keys.'
|
|
66
|
-
},
|
|
67
|
-
defaultExpandedKeys: {},
|
|
68
|
-
expandedKeys: {
|
|
69
|
-
control: false
|
|
70
|
-
},
|
|
71
|
-
items: {
|
|
72
|
-
control: false
|
|
73
|
-
},
|
|
74
|
-
labelHeadingTag: {
|
|
75
|
-
control: 'radio',
|
|
76
|
-
options: validHeadingTags
|
|
77
|
-
}
|
|
78
|
-
}
|
|
58
|
+
argTypes: accordionGroupArgTypes
|
|
79
59
|
};
|
|
60
|
+
export default meta;
|
|
80
61
|
export var Default = function Default(args) {
|
|
81
62
|
return ___EmotionJSX(AccordionGroup, args, ___EmotionJSX(Item, {
|
|
82
63
|
key: "accordionKey",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { validHeadingTags } from '../AccordionItem/AccordionItem';
|
|
2
|
+
export var accordionGroupArgTypes = {
|
|
3
|
+
id: {
|
|
4
|
+
control: {
|
|
5
|
+
type: 'text'
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
disabledKeys: {
|
|
9
|
+
description: 'The item keys that are disabled. These items cannot be selected, focused, or otherwise interacted with. Array of keys.'
|
|
10
|
+
},
|
|
11
|
+
defaultExpandedKeys: {},
|
|
12
|
+
expandedKeys: {
|
|
13
|
+
control: false
|
|
14
|
+
},
|
|
15
|
+
items: {
|
|
16
|
+
control: false
|
|
17
|
+
},
|
|
18
|
+
labelHeadingTag: {
|
|
19
|
+
control: 'radio',
|
|
20
|
+
options: validHeadingTags
|
|
21
|
+
}
|
|
22
|
+
};
|
|
@@ -18,8 +18,8 @@ import { OverlayProvider } from 'react-aria';
|
|
|
18
18
|
import { v4 as uuid } from 'uuid';
|
|
19
19
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
20
20
|
import { ArrayField, ArrayFieldDeleteButton, Box, Button, Item, SelectField, Text, TextField } from '../../index';
|
|
21
|
-
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
22
21
|
import ArrayFieldReadme from './ArrayField.mdx';
|
|
22
|
+
import { arrayFieldArgTypes } from './arrayFieldAttributes';
|
|
23
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
24
24
|
export default {
|
|
25
25
|
title: 'Form/ArrayField',
|
|
@@ -34,33 +34,7 @@ export default {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
argTypes: _objectSpread({
|
|
38
|
-
label: {
|
|
39
|
-
control: {
|
|
40
|
-
type: 'text'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
helperText: {
|
|
44
|
-
control: {
|
|
45
|
-
type: 'text'
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
addButtonLabel: {
|
|
49
|
-
control: {
|
|
50
|
-
type: 'text'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
maxSize: {
|
|
54
|
-
control: {
|
|
55
|
-
type: 'text'
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
maxSizeText: {
|
|
59
|
-
control: {
|
|
60
|
-
type: 'text'
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}, ariaAttributeBaseArgTypes),
|
|
37
|
+
argTypes: _objectSpread({}, arrayFieldArgTypes),
|
|
64
38
|
args: {
|
|
65
39
|
label: 'Array field label',
|
|
66
40
|
helperText: 'Helper text info...',
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
10
|
+
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; }
|
|
11
|
+
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) { _defineProperty(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; }
|
|
12
|
+
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
|
13
|
+
export var arrayFieldArgTypes = _objectSpread({
|
|
14
|
+
label: {
|
|
15
|
+
control: {
|
|
16
|
+
type: 'text'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
helperText: {
|
|
20
|
+
control: {
|
|
21
|
+
type: 'text'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
addButtonLabel: {
|
|
25
|
+
control: {
|
|
26
|
+
type: 'text'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
maxSize: {
|
|
30
|
+
control: {
|
|
31
|
+
type: 'text'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
maxSizeText: {
|
|
35
|
+
control: {
|
|
36
|
+
type: 'text'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, ariaAttributeBaseArgTypes);
|
|
@@ -15,7 +15,27 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
decorators: [function (Story) {
|
|
17
17
|
return ___EmotionJSX("div", null, ___EmotionJSX(Story, null));
|
|
18
|
-
}]
|
|
18
|
+
}],
|
|
19
|
+
argTypes: {
|
|
20
|
+
themeOverrides: {
|
|
21
|
+
description: 'Array of theme override objects merged on top of the default Astro theme.',
|
|
22
|
+
control: {
|
|
23
|
+
type: null
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultTheme: {
|
|
27
|
+
description: 'The base theme object to use as the default instead of the built-in Astro theme.',
|
|
28
|
+
control: {
|
|
29
|
+
type: null
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
children: {
|
|
33
|
+
description: 'Content rendered inside the theme provider context.',
|
|
34
|
+
control: {
|
|
35
|
+
type: null
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
19
39
|
};
|
|
20
40
|
export var Default = function Default() {
|
|
21
41
|
return ___EmotionJSX(AstroProvider, {
|