@orianatech/pire 0.2.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/LICENSE +202 -0
- package/NOTICE +7 -0
- package/README.md +114 -0
- package/dist/components/core/Avatar.d.cts +11 -0
- package/dist/components/core/Avatar.d.ts +12 -0
- package/dist/components/core/Avatar.d.ts.map +1 -0
- package/dist/components/core/Badge.d.cts +9 -0
- package/dist/components/core/Badge.d.ts +10 -0
- package/dist/components/core/Badge.d.ts.map +1 -0
- package/dist/components/core/Button.d.cts +17 -0
- package/dist/components/core/Button.d.ts +18 -0
- package/dist/components/core/Button.d.ts.map +1 -0
- package/dist/components/core/Card.d.cts +13 -0
- package/dist/components/core/Card.d.ts +14 -0
- package/dist/components/core/Card.d.ts.map +1 -0
- package/dist/components/core/Icon.d.cts +22 -0
- package/dist/components/core/Icon.d.ts +23 -0
- package/dist/components/core/Icon.d.ts.map +1 -0
- package/dist/components/core/IconButton.d.cts +15 -0
- package/dist/components/core/IconButton.d.ts +16 -0
- package/dist/components/core/IconButton.d.ts.map +1 -0
- package/dist/components/core/SegmentedControl.d.cts +23 -0
- package/dist/components/core/SegmentedControl.d.ts +24 -0
- package/dist/components/core/SegmentedControl.d.ts.map +1 -0
- package/dist/components/core/Tag.d.cts +8 -0
- package/dist/components/core/Tag.d.ts +9 -0
- package/dist/components/core/Tag.d.ts.map +1 -0
- package/dist/components/data/DataTable.d.cts +40 -0
- package/dist/components/data/DataTable.d.ts +41 -0
- package/dist/components/data/DataTable.d.ts.map +1 -0
- package/dist/components/data/DescriptionList.d.cts +21 -0
- package/dist/components/data/DescriptionList.d.ts +22 -0
- package/dist/components/data/DescriptionList.d.ts.map +1 -0
- package/dist/components/data/FilterBar.d.cts +19 -0
- package/dist/components/data/FilterBar.d.ts +20 -0
- package/dist/components/data/FilterBar.d.ts.map +1 -0
- package/dist/components/data/KpiTile.d.cts +23 -0
- package/dist/components/data/KpiTile.d.ts +24 -0
- package/dist/components/data/KpiTile.d.ts.map +1 -0
- package/dist/components/data/LinkList.d.cts +18 -0
- package/dist/components/data/LinkList.d.ts +19 -0
- package/dist/components/data/LinkList.d.ts.map +1 -0
- package/dist/components/data/ObjectHeader.d.cts +21 -0
- package/dist/components/data/ObjectHeader.d.ts +22 -0
- package/dist/components/data/ObjectHeader.d.ts.map +1 -0
- package/dist/components/data/Timeline.d.cts +16 -0
- package/dist/components/data/Timeline.d.ts +17 -0
- package/dist/components/data/Timeline.d.ts.map +1 -0
- package/dist/components/feedback/Dialog.d.cts +21 -0
- package/dist/components/feedback/Dialog.d.ts +22 -0
- package/dist/components/feedback/Dialog.d.ts.map +1 -0
- package/dist/components/feedback/InlineMessage.d.cts +13 -0
- package/dist/components/feedback/InlineMessage.d.ts +14 -0
- package/dist/components/feedback/InlineMessage.d.ts.map +1 -0
- package/dist/components/feedback/ProgressBar.d.cts +16 -0
- package/dist/components/feedback/ProgressBar.d.ts +17 -0
- package/dist/components/feedback/ProgressBar.d.ts.map +1 -0
- package/dist/components/feedback/Toast.d.cts +28 -0
- package/dist/components/feedback/Toast.d.ts +29 -0
- package/dist/components/feedback/Toast.d.ts.map +1 -0
- package/dist/components/feedback/Tooltip.d.cts +11 -0
- package/dist/components/feedback/Tooltip.d.ts +12 -0
- package/dist/components/feedback/Tooltip.d.ts.map +1 -0
- package/dist/components/forms/Checkbox.d.cts +9 -0
- package/dist/components/forms/Checkbox.d.ts +10 -0
- package/dist/components/forms/Checkbox.d.ts.map +1 -0
- package/dist/components/forms/ComboBox.d.cts +45 -0
- package/dist/components/forms/ComboBox.d.ts +46 -0
- package/dist/components/forms/ComboBox.d.ts.map +1 -0
- package/dist/components/forms/DatePicker.d.cts +27 -0
- package/dist/components/forms/DatePicker.d.ts +28 -0
- package/dist/components/forms/DatePicker.d.ts.map +1 -0
- package/dist/components/forms/FormField.d.cts +17 -0
- package/dist/components/forms/FormField.d.ts +18 -0
- package/dist/components/forms/FormField.d.ts.map +1 -0
- package/dist/components/forms/Input.d.cts +33 -0
- package/dist/components/forms/Input.d.ts +34 -0
- package/dist/components/forms/Input.d.ts.map +1 -0
- package/dist/components/forms/NumberField.d.cts +33 -0
- package/dist/components/forms/NumberField.d.ts +34 -0
- package/dist/components/forms/NumberField.d.ts.map +1 -0
- package/dist/components/forms/Radio.d.cts +18 -0
- package/dist/components/forms/Radio.d.ts +19 -0
- package/dist/components/forms/Radio.d.ts.map +1 -0
- package/dist/components/forms/Select.d.cts +28 -0
- package/dist/components/forms/Select.d.ts +29 -0
- package/dist/components/forms/Select.d.ts.map +1 -0
- package/dist/components/forms/Switch.d.cts +9 -0
- package/dist/components/forms/Switch.d.ts +10 -0
- package/dist/components/forms/Switch.d.ts.map +1 -0
- package/dist/components/forms/ValueHelpField.d.cts +31 -0
- package/dist/components/forms/ValueHelpField.d.ts +32 -0
- package/dist/components/forms/ValueHelpField.d.ts.map +1 -0
- package/dist/components/layout/FooterBar.d.cts +10 -0
- package/dist/components/layout/FooterBar.d.ts +11 -0
- package/dist/components/layout/FooterBar.d.ts.map +1 -0
- package/dist/components/layout/PageHeader.d.cts +10 -0
- package/dist/components/layout/PageHeader.d.ts +11 -0
- package/dist/components/layout/PageHeader.d.ts.map +1 -0
- package/dist/components/layout/SectionHeader.d.cts +11 -0
- package/dist/components/layout/SectionHeader.d.ts +12 -0
- package/dist/components/layout/SectionHeader.d.ts.map +1 -0
- package/dist/components/layout/SelectionBar.d.cts +14 -0
- package/dist/components/layout/SelectionBar.d.ts +15 -0
- package/dist/components/layout/SelectionBar.d.ts.map +1 -0
- package/dist/components/navigation/Breadcrumb.d.cts +14 -0
- package/dist/components/navigation/Breadcrumb.d.ts +15 -0
- package/dist/components/navigation/Breadcrumb.d.ts.map +1 -0
- package/dist/components/navigation/Pagination.d.cts +13 -0
- package/dist/components/navigation/Pagination.d.ts +14 -0
- package/dist/components/navigation/Pagination.d.ts.map +1 -0
- package/dist/components/navigation/ShellBar.d.cts +17 -0
- package/dist/components/navigation/ShellBar.d.ts +18 -0
- package/dist/components/navigation/ShellBar.d.ts.map +1 -0
- package/dist/components/navigation/SideNav.d.cts +22 -0
- package/dist/components/navigation/SideNav.d.ts +23 -0
- package/dist/components/navigation/SideNav.d.ts.map +1 -0
- package/dist/components/navigation/Tabs.d.cts +23 -0
- package/dist/components/navigation/Tabs.d.ts +24 -0
- package/dist/components/navigation/Tabs.d.ts.map +1 -0
- package/dist/components/patterns/ConfirmDialog.d.cts +21 -0
- package/dist/components/patterns/ConfirmDialog.d.ts +22 -0
- package/dist/components/patterns/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/patterns/EmptyState.d.cts +13 -0
- package/dist/components/patterns/EmptyState.d.ts +14 -0
- package/dist/components/patterns/EmptyState.d.ts.map +1 -0
- package/dist/components/patterns/SidePanel.d.cts +14 -0
- package/dist/components/patterns/SidePanel.d.ts +15 -0
- package/dist/components/patterns/SidePanel.d.ts.map +1 -0
- package/dist/components/patterns/ValueHelpDialog.d.cts +20 -0
- package/dist/components/patterns/ValueHelpDialog.d.ts +21 -0
- package/dist/components/patterns/ValueHelpDialog.d.ts.map +1 -0
- package/dist/components/utils/cx.d.cts +2 -0
- package/dist/components/utils/cx.d.ts +3 -0
- package/dist/components/utils/cx.d.ts.map +1 -0
- package/dist/components.css +352 -0
- package/dist/index.cjs +1590 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +46 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1560 -0
- package/dist/index.js.map +1 -0
- package/dist/pire.css +11 -0
- package/dist/tokens/base.css +18 -0
- package/dist/tokens/colors.css +53 -0
- package/dist/tokens/elevation.css +21 -0
- package/dist/tokens/fonts.css +15 -0
- package/dist/tokens/motion.css +13 -0
- package/dist/tokens/spacing.css +18 -0
- package/dist/tokens/themes.css +23 -0
- package/dist/tokens/typography.css +39 -0
- package/dist/tokens.css +8 -0
- package/package.json +99 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Oriana Tech
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# @orianatech/pire
|
|
2
|
+
|
|
3
|
+
React implementation of the Pire Design System — ERP interface components built on
|
|
4
|
+
[React Aria Components](https://react-spectrum.adobe.com/react-aria/), documented in Storybook.
|
|
5
|
+
|
|
6
|
+
## Quick start
|
|
7
|
+
|
|
8
|
+
Requires Node 20+ and pnpm.
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
pnpm install
|
|
12
|
+
pnpm storybook # docs + playground at http://localhost:6006
|
|
13
|
+
pnpm build # dist/ (ESM + CJS + .d.ts + CSS)
|
|
14
|
+
pnpm typecheck # tsc --noEmit
|
|
15
|
+
pnpm lint # biome
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Consuming app:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @orianatech/pire react-aria-components
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
import '@orianatech/pire/styles.css'; // once, at the app root
|
|
26
|
+
import { Button, DataTable, ToastProvider } from '@orianatech/pire';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## What is in the box
|
|
30
|
+
|
|
31
|
+
| Group | Components |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| Core | Button, IconButton, Badge, Tag, Card, Icon, Avatar, SegmentedControl |
|
|
34
|
+
| Forms | Input, Select, ComboBox, NumberField, DatePicker, ValueHelpField, Checkbox, RadioGroup + Radio, Switch, FormField |
|
|
35
|
+
| Navigation | ShellBar, SideNav, Tabs, Breadcrumb, Pagination |
|
|
36
|
+
| Feedback | Dialog, InlineMessage, ProgressBar, Tooltip, Toast + ToastProvider |
|
|
37
|
+
| Data | DataTable, KpiTile, ObjectHeader, FilterBar, DescriptionList, Timeline, LinkList |
|
|
38
|
+
| Layout | PageHeader, SectionHeader, SelectionBar, FooterBar |
|
|
39
|
+
| Patterns | ConfirmDialog, ValueHelpDialog, SidePanel, EmptyState |
|
|
40
|
+
|
|
41
|
+
The Core/Forms/Navigation/Feedback/Data/Patterns groups mirror the design-system prototypes. The
|
|
42
|
+
rest close gaps the ERP screens had been solving inline:
|
|
43
|
+
|
|
44
|
+
| Component | Replaces in the screens |
|
|
45
|
+
| --- | --- |
|
|
46
|
+
| `DescriptionList` | the hand-rolled `<dl>` in order totals, stock detail, general data |
|
|
47
|
+
| `Timeline` | the history rows on the order detail screen |
|
|
48
|
+
| `LinkList` | "Recently viewed" on the launchpad |
|
|
49
|
+
| `SelectionBar` | the "N selected" InlineMessage above every worklist table |
|
|
50
|
+
| `FooterBar` | the fixed submit bar on sales order registration |
|
|
51
|
+
| `PageHeader` / `SectionHeader` | the `<h1>` + eyebrow blocks on launchpad and settings |
|
|
52
|
+
| `SegmentedControl` | the pair of density IconButtons in each FilterBar |
|
|
53
|
+
| `ValueHelpField` | Input + search IconButton + ValueHelpDialog, wired by hand per field |
|
|
54
|
+
| `ComboBox`, `NumberField`, `DatePicker` | Input standing in for search, quantity and date entry |
|
|
55
|
+
|
|
56
|
+
## Architecture
|
|
57
|
+
|
|
58
|
+
- `src/components/<group>/<Name>.tsx` — one component per file, typed props, no local state
|
|
59
|
+
beyond what the pattern needs. Behaviour comes from React Aria; Pire owns only the markup shape
|
|
60
|
+
and the class names.
|
|
61
|
+
- `src/components/<group>/<Name>.stories.tsx` — CSF3 stories beside the component. Every story
|
|
62
|
+
file is checked by the a11y addon.
|
|
63
|
+
- `src/styles/components.css` — the entire class contract. State selectors key off React Aria data
|
|
64
|
+
attributes (`[data-hovered]`, `[data-focus-visible]`, `[data-selected]`, `[data-disabled]`),
|
|
65
|
+
never on `:hover` alone.
|
|
66
|
+
- `src/styles/tokens/*.css` — the design tokens, unchanged from the design-system source of truth.
|
|
67
|
+
|
|
68
|
+
### Theming
|
|
69
|
+
|
|
70
|
+
Override tokens, never component rules:
|
|
71
|
+
|
|
72
|
+
```css
|
|
73
|
+
:root { --accent-bg: #0b56b4; --control-h-md: 36px; } /* tighter, re-branded */
|
|
74
|
+
[data-theme="dark"] { /* shipped in tokens/themes.css */ }
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Icons
|
|
78
|
+
|
|
79
|
+
Names are Lucide slugs; the shipped pack is IBM Carbon, resolved through an internal map. Glyphs
|
|
80
|
+
load from a CDN by default — self-host in production:
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
import { configureIcons } from '@orianatech/pire';
|
|
84
|
+
configureIcons({ base: '/assets/icons/' }); // folder of <slug>.svg
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Migrating from the HTML/JSX prototypes
|
|
88
|
+
|
|
89
|
+
| Prototype API | Package API |
|
|
90
|
+
| --- | --- |
|
|
91
|
+
| `disabled` | `isDisabled` |
|
|
92
|
+
| `onClick` | `onPress` (works for touch, mouse, keyboard and pen) |
|
|
93
|
+
| `checked` / `onChange(bool)` | `isSelected` / `onChange(bool)` |
|
|
94
|
+
| `<Radio name=… />` | `<RadioGroup><Radio value=… /></RadioGroup>` |
|
|
95
|
+
| `<Input onChange={(v, e) => …} />` | `<Input onChange={(v) => …} />` |
|
|
96
|
+
| `<DataTable onRowClick />` | `<DataTable aria-label onRowAction />` |
|
|
97
|
+
| `<Dialog open />` | `<Dialog isOpen />` |
|
|
98
|
+
|
|
99
|
+
## Release checklist
|
|
100
|
+
|
|
101
|
+
1. `pnpm typecheck`, `pnpm lint` and `pnpm build` clean.
|
|
102
|
+
2. `pnpm build-storybook` — publish `storybook-static/` for the team.
|
|
103
|
+
3. Bump the version, tag, publish to the internal registry.
|
|
104
|
+
|
|
105
|
+
## Toolchain notes
|
|
106
|
+
|
|
107
|
+
- `pnpm build` runs `tsup` for the JS bundles, then `tsc -p tsconfig.build.json` for the
|
|
108
|
+
`.d.ts` files, then `scripts/postbuild-types.mjs`. tsup's own declaration pipeline is not
|
|
109
|
+
compatible with the TypeScript 7 native compiler, so `dts` is off in `tsup.config.ts` —
|
|
110
|
+
leave it that way. The post-pass makes the emitted declarations resolvable under
|
|
111
|
+
`node16`/`nodenext` (extensioned specifiers) and emits the CommonJS `.d.cts` twin that the
|
|
112
|
+
`require` condition points at. `pnpm pack:check` verifies both against a packed tarball.
|
|
113
|
+
- Stylesheets are copied rather than bundled, so `dist/` mirrors `src/styles/` and `pire.css`
|
|
114
|
+
keeps its relative `@import`s working.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
/** Full name — initials are derived from the first two words. */
|
|
4
|
+
name: string;
|
|
5
|
+
size?: 'sm' | 'md' | 'lg';
|
|
6
|
+
/** Optional photo. Falls back to initials if it fails to load. */
|
|
7
|
+
src?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Identity chip for the shell bar, approval lists and history rows. Never the only way a person
|
|
10
|
+
* is named — always sits beside or is labelled with the full name. */
|
|
11
|
+
export declare function Avatar({ name, size, src, className, ...rest }: AvatarProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
/** Full name — initials are derived from the first two words. */
|
|
4
|
+
name: string;
|
|
5
|
+
size?: 'sm' | 'md' | 'lg';
|
|
6
|
+
/** Optional photo. Falls back to initials if it fails to load. */
|
|
7
|
+
src?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Identity chip for the shell bar, approval lists and history rows. Never the only way a person
|
|
10
|
+
* is named — always sits beside or is labelled with the full name. */
|
|
11
|
+
export declare function Avatar({ name, size, src, className, ...rest }: AvatarProps): React.JSX.Element;
|
|
12
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/core/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACxE,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,kEAAkE;IAClE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAID;uEACuE;AACvE,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,IAAW,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,qBAUjF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export type BadgeStatus = 'positive' | 'critical' | 'negative' | 'informative' | 'neutral';
|
|
3
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** Semantic value state. Colour is never the only signal — the icon carries the same meaning. */
|
|
5
|
+
status?: BadgeStatus;
|
|
6
|
+
showIcon?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Value state on an object or row. Text is the label, never a bare colour dot. */
|
|
9
|
+
export declare function Badge({ children, status, showIcon, className, ...rest }: BadgeProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export type BadgeStatus = 'positive' | 'critical' | 'negative' | 'informative' | 'neutral';
|
|
3
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** Semantic value state. Colour is never the only signal — the icon carries the same meaning. */
|
|
5
|
+
status?: BadgeStatus;
|
|
6
|
+
showIcon?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Value state on an object or row. Text is the label, never a bare colour dot. */
|
|
9
|
+
export declare function Badge({ children, status, showIcon, className, ...rest }: BadgeProps): React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/core/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,CAAC;AAO3F,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACvE,iGAAiG;IACjG,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,mFAAmF;AACnF,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,MAAkB,EAAE,QAAe,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,qBAOtG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
3
|
+
export interface ButtonProps extends Omit<AriaButtonProps, 'className' | 'children'> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** primary = one per view. secondary = default action. tertiary = low-stakes/inline.
|
|
6
|
+
* danger = destructive. emphasized = on the dark shell. */
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'emphasized';
|
|
8
|
+
/** sm = table rows & toolbars, md = default forms, lg = full-width CTAs. */
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
/** Icon slug rendered before the label. */
|
|
11
|
+
icon?: string;
|
|
12
|
+
/** Icon slug rendered after the label. */
|
|
13
|
+
iconEnd?: string;
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
3
|
+
export interface ButtonProps extends Omit<AriaButtonProps, 'className' | 'children'> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** primary = one per view. secondary = default action. tertiary = low-stakes/inline.
|
|
6
|
+
* danger = destructive. emphasized = on the dark shell. */
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'emphasized';
|
|
8
|
+
/** sm = table rows & toolbars, md = default forms, lg = full-width CTAs. */
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
/** Icon slug rendered before the label. */
|
|
11
|
+
icon?: string;
|
|
12
|
+
/** Icon slug rendered after the label. */
|
|
13
|
+
iconEnd?: string;
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/core/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAIlG,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,UAAU,CAAC;IAClF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;gEAC4D;IAC5D,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,YAAY,CAAC;IACzE,4EAA4E;IAC5E,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,uFAWjB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
|
|
3
|
+
title?: React.ReactNode;
|
|
4
|
+
subtitle?: React.ReactNode;
|
|
5
|
+
icon?: string;
|
|
6
|
+
/** Header-right actions — usually IconButtons. */
|
|
7
|
+
actions?: React.ReactNode;
|
|
8
|
+
/** Right-aligned footer actions, separated by a hairline. */
|
|
9
|
+
footer?: React.ReactNode;
|
|
10
|
+
/** Raises the shadow on hover and sets a pointer cursor. Pair with onClick and a heading link. */
|
|
11
|
+
interactive?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function Card({ title, subtitle, icon, actions, footer, interactive, children, className, ...rest }: CardProps): React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
|
|
3
|
+
title?: React.ReactNode;
|
|
4
|
+
subtitle?: React.ReactNode;
|
|
5
|
+
icon?: string;
|
|
6
|
+
/** Header-right actions — usually IconButtons. */
|
|
7
|
+
actions?: React.ReactNode;
|
|
8
|
+
/** Right-aligned footer actions, separated by a hairline. */
|
|
9
|
+
footer?: React.ReactNode;
|
|
10
|
+
/** Raises the shadow on hover and sets a pointer cursor. Pair with onClick and a heading link. */
|
|
11
|
+
interactive?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function Card({ title, subtitle, icon, actions, footer, interactive, children, className, ...rest }: CardProps): React.JSX.Element;
|
|
14
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/core/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IACjF,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,kGAAkG;IAClG,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,qBAiBpH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type IconPack = 'carbon' | 'lucide';
|
|
3
|
+
export interface IconConfig {
|
|
4
|
+
/** Pack used when an <Icon> does not specify one. Default 'carbon'. */
|
|
5
|
+
pack?: IconPack;
|
|
6
|
+
/** Serve glyphs from your own origin: a folder of <slug>.svg files. Recommended in production. */
|
|
7
|
+
base?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Point the whole app at a self-hosted glyph folder, or switch packs, once at startup. */
|
|
10
|
+
export declare function configureIcons(next: IconConfig): void;
|
|
11
|
+
export interface IconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
12
|
+
/** Canonical (Lucide) slug, e.g. "shopping-cart". Mapped automatically for the Carbon pack. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Pixel box. 16 in dense UI, 20 in headers, 24 in tiles. */
|
|
15
|
+
size?: number;
|
|
16
|
+
/** Accessible name. Omit for decorative icons — they are hidden from assistive tech. */
|
|
17
|
+
label?: string;
|
|
18
|
+
pack?: IconPack;
|
|
19
|
+
}
|
|
20
|
+
/** Glyph painted as a CSS mask over currentColor, so it inherits text colour everywhere.
|
|
21
|
+
* A missing glyph degrades to empty space rather than a solid block. */
|
|
22
|
+
export declare function Icon({ name, size, label, pack, style, ...rest }: IconProps): React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type IconPack = 'carbon' | 'lucide';
|
|
3
|
+
export interface IconConfig {
|
|
4
|
+
/** Pack used when an <Icon> does not specify one. Default 'carbon'. */
|
|
5
|
+
pack?: IconPack;
|
|
6
|
+
/** Serve glyphs from your own origin: a folder of <slug>.svg files. Recommended in production. */
|
|
7
|
+
base?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Point the whole app at a self-hosted glyph folder, or switch packs, once at startup. */
|
|
10
|
+
export declare function configureIcons(next: IconConfig): void;
|
|
11
|
+
export interface IconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
12
|
+
/** Canonical (Lucide) slug, e.g. "shopping-cart". Mapped automatically for the Carbon pack. */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Pixel box. 16 in dense UI, 20 in headers, 24 in tiles. */
|
|
15
|
+
size?: number;
|
|
16
|
+
/** Accessible name. Omit for decorative icons — they are hidden from assistive tech. */
|
|
17
|
+
label?: string;
|
|
18
|
+
pack?: IconPack;
|
|
19
|
+
}
|
|
20
|
+
/** Glyph painted as a CSS mask over currentColor, so it inherits text colour everywhere.
|
|
21
|
+
* A missing glyph degrades to empty space rather than a solid block. */
|
|
22
|
+
export declare function Icon({ name, size, label, pack, style, ...rest }: IconProps): React.JSX.Element;
|
|
23
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/core/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AA4B3C,MAAM,WAAW,UAAU;IACzB,uEAAuE;IACvE,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,kGAAkG;IAClG,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,2FAA2F;AAC3F,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,QAAsC;AAErF,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IACxF,+FAA+F;IAC/F,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wFAAwF;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED;yEACyE;AACzE,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,IAAS,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,qBAuB/E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
3
|
+
export interface IconButtonProps extends Omit<AriaButtonProps, 'className' | 'children' | 'aria-label'> {
|
|
4
|
+
icon: string;
|
|
5
|
+
/** Required accessible name — also the tooltip text. */
|
|
6
|
+
label: string;
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
/** inverse = on the dark shell bar. outlined = standalone beside fields. */
|
|
9
|
+
variant?: 'tertiary' | 'outlined' | 'inverse';
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
/** Suppress the tooltip when the control already sits inside one. */
|
|
12
|
+
hideTooltip?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
3
|
+
export interface IconButtonProps extends Omit<AriaButtonProps, 'className' | 'children' | 'aria-label'> {
|
|
4
|
+
icon: string;
|
|
5
|
+
/** Required accessible name — also the tooltip text. */
|
|
6
|
+
label: string;
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
/** inverse = on the dark shell bar. outlined = standalone beside fields. */
|
|
9
|
+
variant?: 'tertiary' | 'outlined' | 'inverse';
|
|
10
|
+
selected?: boolean;
|
|
11
|
+
/** Suppress the tooltip when the control already sits inside one. */
|
|
12
|
+
hideTooltip?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/core/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKlG,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,UAAU,GAAG,YAAY,CAAC;IACrG,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,4EAA4E;IAC5E,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,2FAUrB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface SegmentOption {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface SegmentedControlProps {
|
|
9
|
+
/** Names the choice for assistive tech, e.g. "Row density". */
|
|
10
|
+
'aria-label': string;
|
|
11
|
+
options: SegmentOption[];
|
|
12
|
+
value?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
onChange?: (id: string) => void;
|
|
15
|
+
/** Show icons only; labels move into the accessible name and the tooltip. */
|
|
16
|
+
iconOnly?: boolean;
|
|
17
|
+
size?: 'sm' | 'md';
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: React.CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
/** Two to four mutually exclusive view options that change how data is displayed, not what it is:
|
|
22
|
+
* row density, list vs chart, period. For filtering, use Select or Tabs. */
|
|
23
|
+
export declare function SegmentedControl({ options, value, defaultValue, onChange, iconOnly, size, className, style, ...rest }: SegmentedControlProps): React.JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface SegmentOption {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface SegmentedControlProps {
|
|
9
|
+
/** Names the choice for assistive tech, e.g. "Row density". */
|
|
10
|
+
'aria-label': string;
|
|
11
|
+
options: SegmentOption[];
|
|
12
|
+
value?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
onChange?: (id: string) => void;
|
|
15
|
+
/** Show icons only; labels move into the accessible name and the tooltip. */
|
|
16
|
+
iconOnly?: boolean;
|
|
17
|
+
size?: 'sm' | 'md';
|
|
18
|
+
className?: string;
|
|
19
|
+
style?: React.CSSProperties;
|
|
20
|
+
}
|
|
21
|
+
/** Two to four mutually exclusive view options that change how data is displayed, not what it is:
|
|
22
|
+
* row density, list vs chart, period. For filtering, use Select or Tabs. */
|
|
23
|
+
export declare function SegmentedControl({ options, value, defaultValue, onChange, iconOnly, size, className, style, ...rest }: SegmentedControlProps): React.JSX.Element;
|
|
24
|
+
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/components/core/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,aAAa;IAAG,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE;AAEjG,MAAM,WAAW,qBAAqB;IACpC,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;6EAC6E;AAC7E,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAW,EAC9F,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,qBAAqB,qBAkBnD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
/** Provide to render the remove affordance — filter tokens, multi-select values. */
|
|
4
|
+
onRemove?: () => void;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** A removable token: applied filters, multi-select values. */
|
|
8
|
+
export declare function Tag({ children, onRemove, isDisabled, className, ...rest }: TagProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
/** Provide to render the remove affordance — filter tokens, multi-select values. */
|
|
4
|
+
onRemove?: () => void;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** A removable token: applied filters, multi-select values. */
|
|
8
|
+
export declare function Tag({ children, onRemove, isDisabled, className, ...rest }: TagProps): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/core/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACrE,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,+DAA+D;AAC/D,wBAAgB,GAAG,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,qBAYnF"}
|