@oxide/design-system 2.2.6 → 2.2.7--canary.f2f7829.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/{components/dist → dist/components/src}/index.js +72 -182
- package/dist/components/src/index.js.map +1 -0
- package/dist/icons/index.d.ts +489 -0
- package/dist/icons/index.js +1 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/icons/react/index.d.ts +976 -0
- package/dist/icons/react/index.js +329 -0
- package/dist/icons/react/index.js.map +1 -0
- package/package.json +8 -8
- package/components/dist/asciidoc.css +0 -858
- package/components/dist/button.css +0 -65
- package/components/dist/index.js.map +0 -1
- package/components/dist/spinner.css +0 -71
- package/components/dist/tabs.css +0 -68
- package/icons/index.ts +0 -171
- package/icons/react/Access16Icon.tsx +0 -37
- package/icons/react/Access24Icon.tsx +0 -37
- package/icons/react/Action16Icon.tsx +0 -35
- package/icons/react/Action24Icon.tsx +0 -35
- package/icons/react/Add12Icon.tsx +0 -33
- package/icons/react/AddRoundel12Icon.tsx +0 -37
- package/icons/react/AddRoundel16Icon.tsx +0 -37
- package/icons/react/AddRoundel24Icon.tsx +0 -37
- package/icons/react/AutoRestart12Icon.tsx +0 -35
- package/icons/react/Calendar16Icon.tsx +0 -37
- package/icons/react/Calendar24Icon.tsx +0 -37
- package/icons/react/Chat16Icon.tsx +0 -33
- package/icons/react/Chat24Icon.tsx +0 -33
- package/icons/react/Checkmark12Icon.tsx +0 -37
- package/icons/react/Clipboard12Icon.tsx +0 -37
- package/icons/react/Clipboard16Icon.tsx +0 -37
- package/icons/react/Clipboard24Icon.tsx +0 -37
- package/icons/react/Close12Icon.tsx +0 -31
- package/icons/react/Close16Icon.tsx +0 -33
- package/icons/react/Close8Icon.tsx +0 -33
- package/icons/react/Cloud16Icon.tsx +0 -33
- package/icons/react/Cloud24Icon.tsx +0 -33
- package/icons/react/Compability16Icon.tsx +0 -37
- package/icons/react/Compass16Icon.tsx +0 -37
- package/icons/react/Compatibility24Icon.tsx +0 -37
- package/icons/react/Contrast16Icon.tsx +0 -37
- package/icons/react/Contrast24Icon.tsx +0 -37
- package/icons/react/Copy12Icon.tsx +0 -33
- package/icons/react/Cpu16Icon.tsx +0 -33
- package/icons/react/Cpu24Icon.tsx +0 -33
- package/icons/react/Delete16Icon.tsx +0 -37
- package/icons/react/Delete24Icon.tsx +0 -37
- package/icons/react/DirectionDownIcon.tsx +0 -35
- package/icons/react/DirectionLeftIcon.tsx +0 -35
- package/icons/react/DirectionRightIcon.tsx +0 -35
- package/icons/react/DirectionUpIcon.tsx +0 -35
- package/icons/react/Disabled12Icon.tsx +0 -37
- package/icons/react/Dislike16Icon.tsx +0 -37
- package/icons/react/Dislike24Icon.tsx +0 -37
- package/icons/react/Document16Icon.tsx +0 -35
- package/icons/react/Document24Icon.tsx +0 -35
- package/icons/react/DocumentApi16Icon.tsx +0 -37
- package/icons/react/Dots16Icon.tsx +0 -33
- package/icons/react/Dots24Icon.tsx +0 -33
- package/icons/react/Download24Icon.tsx +0 -37
- package/icons/react/DownloadRoundel16Icon.tsx +0 -37
- package/icons/react/Edit16Icon.tsx +0 -33
- package/icons/react/Email16Icon.tsx +0 -33
- package/icons/react/Email24Icon.tsx +0 -33
- package/icons/react/Error12Icon.tsx +0 -33
- package/icons/react/Error16Icon.tsx +0 -33
- package/icons/react/Error24Icon.tsx +0 -33
- package/icons/react/Filter12Icon.tsx +0 -37
- package/icons/react/Filter16Icon.tsx +0 -37
- package/icons/react/Firewall16Icon.tsx +0 -37
- package/icons/react/Firewall24Icon.tsx +0 -37
- package/icons/react/Folder16Icon.tsx +0 -37
- package/icons/react/Folder24Icon.tsx +0 -37
- package/icons/react/Gateway16Icon.tsx +0 -37
- package/icons/react/Gateway24Icon.tsx +0 -37
- package/icons/react/Heart16Icon.tsx +0 -31
- package/icons/react/Heart24Icon.tsx +0 -31
- package/icons/react/Hide12Icon.tsx +0 -33
- package/icons/react/Hide16Icon.tsx +0 -33
- package/icons/react/Hide24Icon.tsx +0 -33
- package/icons/react/Hourglass16Icon.tsx +0 -37
- package/icons/react/Hourglass24Icon.tsx +0 -37
- package/icons/react/Images16Icon.tsx +0 -34
- package/icons/react/Images24Icon.tsx +0 -37
- package/icons/react/Info12Icon.tsx +0 -33
- package/icons/react/Info16Icon.tsx +0 -33
- package/icons/react/Info24Icon.tsx +0 -33
- package/icons/react/Instances16Icon.tsx +0 -37
- package/icons/react/Instances24Icon.tsx +0 -37
- package/icons/react/Integration16Icon.tsx +0 -37
- package/icons/react/IpGlobal16Icon.tsx +0 -37
- package/icons/react/IpGlobal24Icon.tsx +0 -37
- package/icons/react/IpLocal16Icon.tsx +0 -37
- package/icons/react/IpLocal24Icon.tsx +0 -37
- package/icons/react/Issues16Icon.tsx +0 -37
- package/icons/react/Issues24Icon.tsx +0 -37
- package/icons/react/Key12Icon.tsx +0 -33
- package/icons/react/Key16Icon.tsx +0 -33
- package/icons/react/Key24Icon.tsx +0 -33
- package/icons/react/Like16Icon.tsx +0 -33
- package/icons/react/Like24Icon.tsx +0 -33
- package/icons/react/Link16Icon.tsx +0 -31
- package/icons/react/LoadBalancer16Icon.tsx +0 -37
- package/icons/react/LoadBalancer24Icon.tsx +0 -37
- package/icons/react/Loader12Icon.tsx +0 -38
- package/icons/react/Location24Icon.tsx +0 -37
- package/icons/react/Logs16Icon.tsx +0 -33
- package/icons/react/Logs24Icon.tsx +0 -33
- package/icons/react/MenuClose12Icon.tsx +0 -37
- package/icons/react/MenuOpen12Icon.tsx +0 -37
- package/icons/react/Metrics16Icon.tsx +0 -37
- package/icons/react/Metrics24Icon.tsx +0 -37
- package/icons/react/Monitoring16Icon.tsx +0 -37
- package/icons/react/Monitoring24Icon.tsx +0 -37
- package/icons/react/More12Icon.tsx +0 -33
- package/icons/react/Networking16Icon.tsx +0 -37
- package/icons/react/Networking24Icon.tsx +0 -37
- package/icons/react/NewWindow16Icon.tsx +0 -37
- package/icons/react/NextArrow12Icon.tsx +0 -35
- package/icons/react/Notifications16Icon.tsx +0 -37
- package/icons/react/OpenLink12Icon.tsx +0 -37
- package/icons/react/Organization16Icon.tsx +0 -37
- package/icons/react/Organization24Icon.tsx +0 -34
- package/icons/react/Overview16Icon.tsx +0 -37
- package/icons/react/Overview24Icon.tsx +0 -37
- package/icons/react/Person16Icon.tsx +0 -37
- package/icons/react/Person24Icon.tsx +0 -37
- package/icons/react/PersonGroup16Icon.tsx +0 -37
- package/icons/react/PersonGroup24Icon.tsx +0 -37
- package/icons/react/PrevArrow12Icon.tsx +0 -35
- package/icons/react/Profile16Icon.tsx +0 -37
- package/icons/react/Progress24Icon.tsx +0 -37
- package/icons/react/Prohibited24Icon.tsx +0 -37
- package/icons/react/Question12Icon.tsx +0 -37
- package/icons/react/Question16Icon.tsx +0 -37
- package/icons/react/Question24Icon.tsx +0 -37
- package/icons/react/Ram16Icon.tsx +0 -33
- package/icons/react/Refresh16Icon.tsx +0 -37
- package/icons/react/Repair12Icon.tsx +0 -37
- package/icons/react/Repair16Icon.tsx +0 -37
- package/icons/react/Resize16Icon.tsx +0 -37
- package/icons/react/Resize24Icon.tsx +0 -37
- package/icons/react/Router16Icon.tsx +0 -37
- package/icons/react/Router24Icon.tsx +0 -37
- package/icons/react/Safety24Icon.tsx +0 -35
- package/icons/react/Search16Icon.tsx +0 -37
- package/icons/react/Security12Icon.tsx +0 -37
- package/icons/react/Security16Icon.tsx +0 -37
- package/icons/react/Security24Icon.tsx +0 -37
- package/icons/react/SelectArrows6Icon.tsx +0 -37
- package/icons/react/Servers16Icon.tsx +0 -37
- package/icons/react/Servers24Icon.tsx +0 -37
- package/icons/react/Settings16Icon.tsx +0 -37
- package/icons/react/Settings24Icon.tsx +0 -37
- package/icons/react/Show16Icon.tsx +0 -33
- package/icons/react/SignOut16Icon.tsx +0 -40
- package/icons/react/Snapshots16Icon.tsx +0 -37
- package/icons/react/Snapshots24Icon.tsx +0 -37
- package/icons/react/SoftwareUpdate16Icon.tsx +0 -37
- package/icons/react/SoftwareUpdate24Icon.tsx +0 -37
- package/icons/react/Sort16Icon.tsx +0 -33
- package/icons/react/Speaker24Icon.tsx +0 -37
- package/icons/react/Ssd16Icon.tsx +0 -33
- package/icons/react/Storage16Icon.tsx +0 -37
- package/icons/react/Storage24Icon.tsx +0 -35
- package/icons/react/Subnet16Icon.tsx +0 -37
- package/icons/react/Subnet24Icon.tsx +0 -37
- package/icons/react/Success12Icon.tsx +0 -37
- package/icons/react/Tags16Icon.tsx +0 -33
- package/icons/react/Terminal16Icon.tsx +0 -37
- package/icons/react/Terminal24Icon.tsx +0 -37
- package/icons/react/Time16Icon.tsx +0 -33
- package/icons/react/Transmit16Icon.tsx +0 -37
- package/icons/react/Transmit24Icon.tsx +0 -37
- package/icons/react/Unauthorized12Icon.tsx +0 -37
- package/icons/react/Warning12Icon.tsx +0 -37
- package/icons/react/Wireless24Icon.tsx +0 -35
- package/icons/react/index.ts +0 -169
- package/icons/sprite.svg +0 -1
- package/icons/svg/access-16.svg +0 -1
- package/icons/svg/access-24.svg +0 -1
- package/icons/svg/action-16.svg +0 -1
- package/icons/svg/action-24.svg +0 -1
- package/icons/svg/add-12.svg +0 -1
- package/icons/svg/add-roundel-12.svg +0 -1
- package/icons/svg/add-roundel-16.svg +0 -1
- package/icons/svg/add-roundel-24.svg +0 -1
- package/icons/svg/auto-restart-12.svg +0 -1
- package/icons/svg/calendar-16.svg +0 -1
- package/icons/svg/calendar-24.svg +0 -1
- package/icons/svg/carat-down-12.svg +0 -1
- package/icons/svg/carat-left-12.svg +0 -1
- package/icons/svg/carat-right-12.svg +0 -1
- package/icons/svg/carat-up-12.svg +0 -1
- package/icons/svg/chat-16.svg +0 -1
- package/icons/svg/chat-24.svg +0 -1
- package/icons/svg/checkmark-12.svg +0 -1
- package/icons/svg/clipboard-12.svg +0 -1
- package/icons/svg/clipboard-16.svg +0 -1
- package/icons/svg/clipboard-24.svg +0 -1
- package/icons/svg/close-12.svg +0 -1
- package/icons/svg/close-16.svg +0 -1
- package/icons/svg/close-8.svg +0 -1
- package/icons/svg/cloud-16.svg +0 -1
- package/icons/svg/cloud-24.svg +0 -1
- package/icons/svg/compability-16.svg +0 -1
- package/icons/svg/compass-16.svg +0 -1
- package/icons/svg/compatibility-24.svg +0 -1
- package/icons/svg/contrast-16.svg +0 -1
- package/icons/svg/contrast-24.svg +0 -1
- package/icons/svg/copy-12.svg +0 -1
- package/icons/svg/cpu-16.svg +0 -1
- package/icons/svg/cpu-24.svg +0 -1
- package/icons/svg/delete-16.svg +0 -1
- package/icons/svg/delete-24.svg +0 -1
- package/icons/svg/disabled-12.svg +0 -1
- package/icons/svg/dislike-16.svg +0 -1
- package/icons/svg/dislike-24.svg +0 -1
- package/icons/svg/document-16.svg +0 -1
- package/icons/svg/document-24.svg +0 -1
- package/icons/svg/document-api-16.svg +0 -1
- package/icons/svg/dots-16.svg +0 -1
- package/icons/svg/dots-24.svg +0 -1
- package/icons/svg/download-24.svg +0 -1
- package/icons/svg/download-roundel-16.svg +0 -1
- package/icons/svg/edit-16.svg +0 -1
- package/icons/svg/email-16.svg +0 -1
- package/icons/svg/email-24.svg +0 -1
- package/icons/svg/error-12.svg +0 -1
- package/icons/svg/error-16.svg +0 -1
- package/icons/svg/error-24.svg +0 -1
- package/icons/svg/filter-12.svg +0 -1
- package/icons/svg/filter-16.svg +0 -1
- package/icons/svg/firewall-16.svg +0 -1
- package/icons/svg/firewall-24.svg +0 -1
- package/icons/svg/folder-16.svg +0 -1
- package/icons/svg/folder-24.svg +0 -1
- package/icons/svg/gateway-16.svg +0 -1
- package/icons/svg/gateway-24.svg +0 -1
- package/icons/svg/heart-16.svg +0 -1
- package/icons/svg/heart-24.svg +0 -1
- package/icons/svg/hide-12.svg +0 -1
- package/icons/svg/hide-16.svg +0 -1
- package/icons/svg/hide-24.svg +0 -1
- package/icons/svg/hourglass-16.svg +0 -1
- package/icons/svg/hourglass-24.svg +0 -1
- package/icons/svg/images-16.svg +0 -1
- package/icons/svg/images-24.svg +0 -1
- package/icons/svg/info-12.svg +0 -1
- package/icons/svg/info-16.svg +0 -1
- package/icons/svg/info-24.svg +0 -1
- package/icons/svg/instances-16.svg +0 -1
- package/icons/svg/instances-24.svg +0 -1
- package/icons/svg/integration-16.svg +0 -1
- package/icons/svg/ip-global-16.svg +0 -1
- package/icons/svg/ip-global-24.svg +0 -1
- package/icons/svg/ip-local-16.svg +0 -1
- package/icons/svg/ip-local-24.svg +0 -1
- package/icons/svg/issues-16.svg +0 -1
- package/icons/svg/issues-24.svg +0 -1
- package/icons/svg/key-12.svg +0 -1
- package/icons/svg/key-16.svg +0 -1
- package/icons/svg/key-24.svg +0 -1
- package/icons/svg/like-16.svg +0 -1
- package/icons/svg/like-24.svg +0 -1
- package/icons/svg/link-16.svg +0 -1
- package/icons/svg/load-balancer-16.svg +0 -1
- package/icons/svg/load-balancer-24.svg +0 -1
- package/icons/svg/loader-12.svg +0 -1
- package/icons/svg/location-24.svg +0 -1
- package/icons/svg/logs-16.svg +0 -1
- package/icons/svg/logs-24.svg +0 -1
- package/icons/svg/menu-close-12.svg +0 -1
- package/icons/svg/menu-open-12.svg +0 -1
- package/icons/svg/metrics-16.svg +0 -1
- package/icons/svg/metrics-24.svg +0 -1
- package/icons/svg/monitoring-16.svg +0 -1
- package/icons/svg/monitoring-24.svg +0 -1
- package/icons/svg/more-12.svg +0 -1
- package/icons/svg/networking-16.svg +0 -1
- package/icons/svg/networking-24.svg +0 -1
- package/icons/svg/new-window-16.svg +0 -1
- package/icons/svg/next-arrow-12.svg +0 -1
- package/icons/svg/notifications-16.svg +0 -1
- package/icons/svg/open-link-12.svg +0 -1
- package/icons/svg/organization-16.svg +0 -1
- package/icons/svg/organization-24.svg +0 -1
- package/icons/svg/overview-16.svg +0 -1
- package/icons/svg/overview-24.svg +0 -1
- package/icons/svg/person-16.svg +0 -1
- package/icons/svg/person-24.svg +0 -1
- package/icons/svg/person-group-16.svg +0 -1
- package/icons/svg/person-group-24.svg +0 -1
- package/icons/svg/prev-arrow-12.svg +0 -1
- package/icons/svg/profile-16.svg +0 -1
- package/icons/svg/progress-24.svg +0 -1
- package/icons/svg/prohibited-24.svg +0 -1
- package/icons/svg/question-12.svg +0 -1
- package/icons/svg/question-16.svg +0 -1
- package/icons/svg/question-24.svg +0 -1
- package/icons/svg/ram-16.svg +0 -1
- package/icons/svg/refresh-16.svg +0 -1
- package/icons/svg/repair-12.svg +0 -1
- package/icons/svg/repair-16.svg +0 -1
- package/icons/svg/resize-16.svg +0 -1
- package/icons/svg/resize-24.svg +0 -1
- package/icons/svg/router-16.svg +0 -1
- package/icons/svg/router-24.svg +0 -1
- package/icons/svg/safety-24.svg +0 -1
- package/icons/svg/search-16.svg +0 -1
- package/icons/svg/security-12.svg +0 -1
- package/icons/svg/security-16.svg +0 -1
- package/icons/svg/security-24.svg +0 -1
- package/icons/svg/select-arrows-6.svg +0 -1
- package/icons/svg/servers-16.svg +0 -1
- package/icons/svg/servers-24.svg +0 -1
- package/icons/svg/settings-16.svg +0 -1
- package/icons/svg/settings-24.svg +0 -1
- package/icons/svg/show-16.svg +0 -1
- package/icons/svg/sign-out-16.svg +0 -1
- package/icons/svg/snapshots-16.svg +0 -1
- package/icons/svg/snapshots-24.svg +0 -1
- package/icons/svg/software-update-16.svg +0 -1
- package/icons/svg/software-update-24.svg +0 -1
- package/icons/svg/sort-16.svg +0 -1
- package/icons/svg/speaker-24.svg +0 -1
- package/icons/svg/ssd-16.svg +0 -1
- package/icons/svg/storage-16.svg +0 -1
- package/icons/svg/storage-24.svg +0 -1
- package/icons/svg/subnet-16.svg +0 -1
- package/icons/svg/subnet-24.svg +0 -1
- package/icons/svg/success-12.svg +0 -1
- package/icons/svg/tags-16.svg +0 -1
- package/icons/svg/terminal-16.svg +0 -1
- package/icons/svg/terminal-24.svg +0 -1
- package/icons/svg/time-16.svg +0 -1
- package/icons/svg/transmit-16.svg +0 -1
- package/icons/svg/transmit-24.svg +0 -1
- package/icons/svg/unauthorized-12.svg +0 -1
- package/icons/svg/warning-12.svg +0 -1
- package/icons/svg/wireless-24.svg +0 -1
- /package/{components/dist → dist/components/src}/index.d.ts +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Checkmark12Icon_default,
|
|
3
|
+
DirectionRightIcon_default,
|
|
4
|
+
Link16Icon_default,
|
|
5
|
+
SelectArrows6Icon_default
|
|
6
|
+
} from "../../chunk-ML7NK3OF.js";
|
|
7
|
+
|
|
1
8
|
// components/src/asciidoc/index.tsx
|
|
2
9
|
import asciidoctor2 from "@asciidoctor/core";
|
|
3
10
|
import { Content as Content4 } from "@oxide/react-asciidoc";
|
|
@@ -110,150 +117,33 @@ var Warning12 = ({ className }) => /* @__PURE__ */ jsx(
|
|
|
110
117
|
);
|
|
111
118
|
var Admonition_default = Admonition;
|
|
112
119
|
|
|
113
|
-
// icons/react/Link16Icon.tsx
|
|
114
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
115
|
-
var Link16Icon = ({ title, titleId, ...props }) => /* @__PURE__ */ jsxs2(
|
|
116
|
-
"svg",
|
|
117
|
-
{
|
|
118
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
119
|
-
width: 16,
|
|
120
|
-
height: 16,
|
|
121
|
-
viewBox: "0 0 16 16",
|
|
122
|
-
role: "img",
|
|
123
|
-
"aria-labelledby": titleId,
|
|
124
|
-
...props,
|
|
125
|
-
children: [
|
|
126
|
-
title ? /* @__PURE__ */ jsx2("title", { id: titleId, children: title }) : null,
|
|
127
|
-
/* @__PURE__ */ jsxs2("g", { fill: "currentColor", children: [
|
|
128
|
-
/* @__PURE__ */ jsx2("path", { d: "m6.586 12.243 1.59-1.591a.75.75 0 0 1 1.061 0l.354.353a.75.75 0 0 1 0 1.06L8 13.658A4 4 0 0 1 2.343 8l1.591-1.591a.75.75 0 0 1 1.06 0l.354.354a.75.75 0 0 1 0 1.06l-1.59 1.591a2 2 0 1 0 2.828 2.829M12.066 9.591a.75.75 0 0 1-1.06 0l-.354-.354a.75.75 0 0 1 0-1.06l1.59-1.591a2 2 0 1 0-2.828-2.829l-1.59 1.591a.75.75 0 0 1-1.061 0l-.354-.353a.75.75 0 0 1 0-1.06L8 2.342A4 4 0 0 1 13.657 8z" }),
|
|
129
|
-
/* @__PURE__ */ jsx2("path", { d: "M9.945 5.702a.75.75 0 0 0-1.061 0L5.702 8.884a.75.75 0 0 0 0 1.06l.353.354a.75.75 0 0 0 1.061 0l3.182-3.182a.75.75 0 0 0 0-1.06z" })
|
|
130
|
-
] })
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
);
|
|
134
|
-
var Link16Icon_default = Link16Icon;
|
|
135
|
-
|
|
136
|
-
// icons/react/Checkmark12Icon.tsx
|
|
137
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
138
|
-
var Checkmark12Icon = ({
|
|
139
|
-
title,
|
|
140
|
-
titleId,
|
|
141
|
-
...props
|
|
142
|
-
}) => /* @__PURE__ */ jsxs3(
|
|
143
|
-
"svg",
|
|
144
|
-
{
|
|
145
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
146
|
-
width: 12,
|
|
147
|
-
height: 12,
|
|
148
|
-
viewBox: "0 0 12 12",
|
|
149
|
-
role: "img",
|
|
150
|
-
"aria-labelledby": titleId,
|
|
151
|
-
...props,
|
|
152
|
-
children: [
|
|
153
|
-
title ? /* @__PURE__ */ jsx3("title", { id: titleId, children: title }) : null,
|
|
154
|
-
/* @__PURE__ */ jsx3(
|
|
155
|
-
"path",
|
|
156
|
-
{
|
|
157
|
-
fill: "currentColor",
|
|
158
|
-
fillRule: "evenodd",
|
|
159
|
-
d: "M10.492 2.651c.28.242.31.665.067.944L5.448 9.463a.667.667 0 0 1-.974.035L1.475 6.516a.667.667 0 0 1 0-.946l.237-.235a.667.667 0 0 1 .94 0l2.24 2.226L9.3 2.501a.667.667 0 0 1 .938-.068z",
|
|
160
|
-
clipRule: "evenodd"
|
|
161
|
-
}
|
|
162
|
-
)
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
);
|
|
166
|
-
var Checkmark12Icon_default = Checkmark12Icon;
|
|
167
|
-
|
|
168
|
-
// icons/react/DirectionRightIcon.tsx
|
|
169
|
-
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
170
|
-
var DirectionRightIcon = ({
|
|
171
|
-
title,
|
|
172
|
-
titleId,
|
|
173
|
-
...props
|
|
174
|
-
}) => /* @__PURE__ */ jsxs4(
|
|
175
|
-
"svg",
|
|
176
|
-
{
|
|
177
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
178
|
-
width: 12,
|
|
179
|
-
height: 12,
|
|
180
|
-
viewBox: "0 0 12 12",
|
|
181
|
-
role: "img",
|
|
182
|
-
"aria-labelledby": titleId,
|
|
183
|
-
...props,
|
|
184
|
-
children: [
|
|
185
|
-
title ? /* @__PURE__ */ jsx4("title", { id: titleId, children: title }) : null,
|
|
186
|
-
/* @__PURE__ */ jsx4(
|
|
187
|
-
"path",
|
|
188
|
-
{
|
|
189
|
-
fill: "currentColor",
|
|
190
|
-
d: "M8.807 6.597a.667.667 0 0 0 0-1.194l-5.842-2.92A.667.667 0 0 0 2 3.079v5.842c0 .496.522.818.965.596z"
|
|
191
|
-
}
|
|
192
|
-
)
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
);
|
|
196
|
-
var DirectionRightIcon_default = DirectionRightIcon;
|
|
197
|
-
|
|
198
|
-
// icons/react/SelectArrows6Icon.tsx
|
|
199
|
-
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
200
|
-
var SelectArrows6Icon = ({
|
|
201
|
-
title,
|
|
202
|
-
titleId,
|
|
203
|
-
...props
|
|
204
|
-
}) => /* @__PURE__ */ jsxs5(
|
|
205
|
-
"svg",
|
|
206
|
-
{
|
|
207
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
208
|
-
width: 6,
|
|
209
|
-
height: 14,
|
|
210
|
-
viewBox: "0 0 6 14",
|
|
211
|
-
role: "img",
|
|
212
|
-
"aria-labelledby": titleId,
|
|
213
|
-
...props,
|
|
214
|
-
children: [
|
|
215
|
-
title ? /* @__PURE__ */ jsx5("title", { id: titleId, children: title }) : null,
|
|
216
|
-
/* @__PURE__ */ jsx5(
|
|
217
|
-
"path",
|
|
218
|
-
{
|
|
219
|
-
fill: "currentColor",
|
|
220
|
-
fillRule: "evenodd",
|
|
221
|
-
d: "M3.322.536a.375.375 0 0 0-.644 0L.341 4.432C.19 4.682.37 5 .662 5h4.676a.375.375 0 0 0 .321-.568zm-.644 12.928a.375.375 0 0 0 .644 0l2.337-3.896A.375.375 0 0 0 5.338 9H.662a.375.375 0 0 0-.321.568z",
|
|
222
|
-
clipRule: "evenodd"
|
|
223
|
-
}
|
|
224
|
-
)
|
|
225
|
-
]
|
|
226
|
-
}
|
|
227
|
-
);
|
|
228
|
-
var SelectArrows6Icon_default = SelectArrows6Icon;
|
|
229
|
-
|
|
230
120
|
// components/src/asciidoc/Section.tsx
|
|
231
121
|
import { Content as Content2, parse as parse2 } from "@oxide/react-asciidoc";
|
|
232
122
|
import cn2 from "classnames";
|
|
233
123
|
import { createElement as createElement2 } from "react";
|
|
234
|
-
import { Fragment, jsx as
|
|
124
|
+
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
235
125
|
var stripAnchors = (str) => str.replace(/<a[^>]*>(.*?)<\/a>/gi, "$1");
|
|
236
126
|
var Section = ({ node }) => {
|
|
237
127
|
const level = node.level;
|
|
238
128
|
let title = "";
|
|
239
129
|
let sectNum = node.num;
|
|
240
130
|
sectNum = sectNum && sectNum[0] === "." ? "" : sectNum;
|
|
241
|
-
title = /* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */
|
|
131
|
+
title = /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
132
|
+
/* @__PURE__ */ jsx2("span", { className: "anchor", id: node.id || "", "aria-hidden": "true" }),
|
|
133
|
+
/* @__PURE__ */ jsxs2("a", { className: "link group", href: `#${node.id}`, children: [
|
|
244
134
|
parse2(stripAnchors(node.title)),
|
|
245
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ jsx2(Link16Icon_default, { className: "ml-2 hidden text-accent-secondary group-hover:inline-block" })
|
|
246
136
|
] })
|
|
247
137
|
] });
|
|
248
138
|
if (level === 0) {
|
|
249
|
-
return /* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */
|
|
139
|
+
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
140
|
+
/* @__PURE__ */ jsx2("h1", { className: cn2("sect0", node.role), "data-sectnum": sectNum, children: title }),
|
|
141
|
+
/* @__PURE__ */ jsx2(Content2, { blocks: node.blocks })
|
|
252
142
|
] });
|
|
253
143
|
} else {
|
|
254
|
-
return /* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ jsxs2("div", { className: cn2(`sect${level}`, node.role), children: [
|
|
255
145
|
createElement2(`h${level + 1}`, { "data-sectnum": sectNum }, title),
|
|
256
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ jsx2("div", { className: "sectionbody", children: /* @__PURE__ */ jsx2(Content2, { blocks: node.blocks }) })
|
|
257
147
|
] });
|
|
258
148
|
}
|
|
259
149
|
};
|
|
@@ -261,8 +151,8 @@ var Section_default = Section;
|
|
|
261
151
|
|
|
262
152
|
// components/src/asciidoc/Table.tsx
|
|
263
153
|
import { Table as InnerTable } from "@oxide/react-asciidoc";
|
|
264
|
-
import { jsx as
|
|
265
|
-
var Table = ({ node }) => /* @__PURE__ */
|
|
154
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
155
|
+
var Table = ({ node }) => /* @__PURE__ */ jsx3("div", { className: "table-wrapper", children: /* @__PURE__ */ jsx3(InnerTable, { node }) });
|
|
266
156
|
var Table_default = Table;
|
|
267
157
|
|
|
268
158
|
// components/src/asciidoc/TableOfContents.tsx
|
|
@@ -270,7 +160,7 @@ import { parse as parse3 } from "@oxide/react-asciidoc";
|
|
|
270
160
|
import * as Accordion from "@radix-ui/react-accordion";
|
|
271
161
|
import cn3 from "classnames";
|
|
272
162
|
import { Fragment as Fragment2, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
273
|
-
import { jsx as
|
|
163
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
274
164
|
function useIntersectionObserver(elements, callback, options) {
|
|
275
165
|
const [observer, setObserver] = useState(null);
|
|
276
166
|
useEffect(() => {
|
|
@@ -399,7 +289,7 @@ function useActiveSectionTracking(initialSections, onSectionChange, debug = fals
|
|
|
399
289
|
return "0px";
|
|
400
290
|
}
|
|
401
291
|
});
|
|
402
|
-
debugNode = /* @__PURE__ */
|
|
292
|
+
debugNode = /* @__PURE__ */ jsx4(
|
|
403
293
|
"div",
|
|
404
294
|
{
|
|
405
295
|
style: {
|
|
@@ -427,13 +317,13 @@ var DesktopOutline = ({
|
|
|
427
317
|
className
|
|
428
318
|
}) => {
|
|
429
319
|
const renderToc = (sections) => {
|
|
430
|
-
return sections.map((item) => /* @__PURE__ */
|
|
431
|
-
/* @__PURE__ */
|
|
320
|
+
return sections.map((item) => /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
321
|
+
/* @__PURE__ */ jsx4(
|
|
432
322
|
"li",
|
|
433
323
|
{
|
|
434
324
|
"data-level": item.level,
|
|
435
325
|
className: cn3("mb-0 list-none text-sans-sm", item.level > 2 && "hidden"),
|
|
436
|
-
children: /* @__PURE__ */
|
|
326
|
+
children: /* @__PURE__ */ jsx4(
|
|
437
327
|
"a",
|
|
438
328
|
{
|
|
439
329
|
href: `#${item.id}`,
|
|
@@ -453,7 +343,7 @@ var DesktopOutline = ({
|
|
|
453
343
|
] }, item.id));
|
|
454
344
|
};
|
|
455
345
|
if (toc && toc.length > 0) {
|
|
456
|
-
return /* @__PURE__ */
|
|
346
|
+
return /* @__PURE__ */ jsx4("ul", { className: cn3("toc", className), children: renderToc(toc) });
|
|
457
347
|
}
|
|
458
348
|
return null;
|
|
459
349
|
};
|
|
@@ -464,13 +354,13 @@ var SmallScreenOutline = ({
|
|
|
464
354
|
}) => {
|
|
465
355
|
const [value, setValue] = useState("");
|
|
466
356
|
const renderToc = (sections) => {
|
|
467
|
-
return sections.map((item) => /* @__PURE__ */
|
|
468
|
-
/* @__PURE__ */
|
|
357
|
+
return sections.map((item) => /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
|
358
|
+
/* @__PURE__ */ jsx4(
|
|
469
359
|
"li",
|
|
470
360
|
{
|
|
471
361
|
"data-level": item.level,
|
|
472
362
|
className: cn3("list-none text-sans-sm", item.level > 2 && "hidden"),
|
|
473
|
-
children: /* @__PURE__ */
|
|
363
|
+
children: /* @__PURE__ */ jsx4(
|
|
474
364
|
"a",
|
|
475
365
|
{
|
|
476
366
|
href: `#${item.id}`,
|
|
@@ -491,7 +381,7 @@ var SmallScreenOutline = ({
|
|
|
491
381
|
] }, item.id));
|
|
492
382
|
};
|
|
493
383
|
if (toc && toc.length > 0) {
|
|
494
|
-
return /* @__PURE__ */
|
|
384
|
+
return /* @__PURE__ */ jsx4(
|
|
495
385
|
Accordion.Root,
|
|
496
386
|
{
|
|
497
387
|
type: "single",
|
|
@@ -502,13 +392,13 @@ var SmallScreenOutline = ({
|
|
|
502
392
|
collapsible: true,
|
|
503
393
|
value,
|
|
504
394
|
onValueChange: setValue,
|
|
505
|
-
children: /* @__PURE__ */
|
|
506
|
-
/* @__PURE__ */
|
|
395
|
+
children: /* @__PURE__ */ jsxs3(Accordion.Item, { value: "toc", children: [
|
|
396
|
+
/* @__PURE__ */ jsx4(Accordion.Header, { children: /* @__PURE__ */ jsxs3(Accordion.Trigger, { className: "flex h-12 w-full items-center justify-between text-sans-md text-default hover:bg-hover px-5 600:px-10 [&>svg]:data-[state=open]:rotate-90", children: [
|
|
507
397
|
"Table of Contents",
|
|
508
398
|
" ",
|
|
509
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ jsx4(DirectionRightIcon_default, { className: "transition-all text-tertiary" })
|
|
510
400
|
] }) }),
|
|
511
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ jsx4(Accordion.Content, { className: "animated-accordion hydrated max-h-[60vh] overflow-y-scroll w-full border-t border-secondary px-5 600:px-10", children: /* @__PURE__ */ jsx4("div", { className: "py-4", children: renderToc(toc) }) })
|
|
512
402
|
] })
|
|
513
403
|
}
|
|
514
404
|
);
|
|
@@ -2096,8 +1986,8 @@ var handleDocument = async (document) => {
|
|
|
2096
1986
|
};
|
|
2097
1987
|
|
|
2098
1988
|
// components/src/asciidoc/index.tsx
|
|
2099
|
-
import { jsx as
|
|
2100
|
-
var MinimalDocument = ({ document }) => /* @__PURE__ */
|
|
1989
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1990
|
+
var MinimalDocument = ({ document }) => /* @__PURE__ */ jsx5("div", { id: "content", className: "asciidoc-body w-full", children: /* @__PURE__ */ jsx5(Content4, { blocks: document.blocks }) });
|
|
2101
1991
|
var AsciiDocBlocks = {
|
|
2102
1992
|
Admonition: Admonition_default,
|
|
2103
1993
|
Table: Table_default,
|
|
@@ -2175,7 +2065,7 @@ var InlineConverter = class {
|
|
|
2175
2065
|
|
|
2176
2066
|
// components/src/ui/badge/Badge.tsx
|
|
2177
2067
|
import cn4 from "classnames";
|
|
2178
|
-
import { jsx as
|
|
2068
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
2179
2069
|
var badgeColors = {
|
|
2180
2070
|
default: {
|
|
2181
2071
|
default: `ring-1 ring-inset bg-accent-secondary text-accent ring-[rgba(var(--base-green-800-rgb),0.15)]`,
|
|
@@ -2200,7 +2090,7 @@ var Badge = ({
|
|
|
2200
2090
|
color = "default",
|
|
2201
2091
|
variant = "default"
|
|
2202
2092
|
}) => {
|
|
2203
|
-
return /* @__PURE__ */
|
|
2093
|
+
return /* @__PURE__ */ jsx6(
|
|
2204
2094
|
"span",
|
|
2205
2095
|
{
|
|
2206
2096
|
className: cn4(
|
|
@@ -2210,7 +2100,7 @@ var Badge = ({
|
|
|
2210
2100
|
badgeColors[variant][color],
|
|
2211
2101
|
className
|
|
2212
2102
|
),
|
|
2213
|
-
children: /* @__PURE__ */
|
|
2103
|
+
children: /* @__PURE__ */ jsx6("span", { children })
|
|
2214
2104
|
}
|
|
2215
2105
|
);
|
|
2216
2106
|
};
|
|
@@ -2218,7 +2108,7 @@ var Badge = ({
|
|
|
2218
2108
|
// components/src/ui/button/Button.tsx
|
|
2219
2109
|
import cn5 from "classnames";
|
|
2220
2110
|
import { forwardRef } from "react";
|
|
2221
|
-
import { jsx as
|
|
2111
|
+
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2222
2112
|
var buttonSizes = ["sm", "icon", "base"];
|
|
2223
2113
|
var variants = ["primary", "secondary", "ghost", "danger"];
|
|
2224
2114
|
var sizeStyle = {
|
|
@@ -2258,7 +2148,7 @@ var Button = forwardRef(
|
|
|
2258
2148
|
...rest
|
|
2259
2149
|
}, ref) => {
|
|
2260
2150
|
const isDisabled = disabled || loading;
|
|
2261
|
-
return /* @__PURE__ */
|
|
2151
|
+
return /* @__PURE__ */ jsxs4(
|
|
2262
2152
|
"button",
|
|
2263
2153
|
{
|
|
2264
2154
|
className: cn5(buttonStyle({ size: size2, variant }), className, {
|
|
@@ -2271,8 +2161,8 @@ var Button = forwardRef(
|
|
|
2271
2161
|
"aria-disabled": isDisabled,
|
|
2272
2162
|
...rest,
|
|
2273
2163
|
children: [
|
|
2274
|
-
loading && /* @__PURE__ */
|
|
2275
|
-
/* @__PURE__ */
|
|
2164
|
+
loading && /* @__PURE__ */ jsx7(Spinner, { className: "absolute", variant }),
|
|
2165
|
+
/* @__PURE__ */ jsx7("span", { className: cn5("flex items-center", innerClassName, { invisible: loading }), children })
|
|
2276
2166
|
]
|
|
2277
2167
|
}
|
|
2278
2168
|
);
|
|
@@ -2282,7 +2172,7 @@ var Button = forwardRef(
|
|
|
2282
2172
|
// components/src/ui/spinner/Spinner.tsx
|
|
2283
2173
|
import cn6 from "classnames";
|
|
2284
2174
|
import { useEffect as useEffect3, useRef as useRef2, useState as useState2 } from "react";
|
|
2285
|
-
import { Fragment as Fragment3, jsx as
|
|
2175
|
+
import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2286
2176
|
var spinnerSizes = ["base", "lg"];
|
|
2287
2177
|
var spinnerVariants = ["primary", "secondary", "ghost", "danger"];
|
|
2288
2178
|
var Spinner = ({
|
|
@@ -2294,7 +2184,7 @@ var Spinner = ({
|
|
|
2294
2184
|
const center = size2 === "lg" ? 18 : 6;
|
|
2295
2185
|
const radius = size2 === "lg" ? 16 : 5;
|
|
2296
2186
|
const strokeWidth = size2 === "lg" ? 3 : 2;
|
|
2297
|
-
return /* @__PURE__ */
|
|
2187
|
+
return /* @__PURE__ */ jsxs5(
|
|
2298
2188
|
"svg",
|
|
2299
2189
|
{
|
|
2300
2190
|
width: frameSize,
|
|
@@ -2305,7 +2195,7 @@ var Spinner = ({
|
|
|
2305
2195
|
"aria-labelledby": "Spinner",
|
|
2306
2196
|
className: cn6("spinner", `spinner-${variant}`, `spinner-${size2}`, className),
|
|
2307
2197
|
children: [
|
|
2308
|
-
/* @__PURE__ */
|
|
2198
|
+
/* @__PURE__ */ jsx8(
|
|
2309
2199
|
"circle",
|
|
2310
2200
|
{
|
|
2311
2201
|
fill: "none",
|
|
@@ -2318,7 +2208,7 @@ var Spinner = ({
|
|
|
2318
2208
|
strokeOpacity: 0.2
|
|
2319
2209
|
}
|
|
2320
2210
|
),
|
|
2321
|
-
/* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ jsx8(
|
|
2322
2212
|
"circle",
|
|
2323
2213
|
{
|
|
2324
2214
|
className: "path",
|
|
@@ -2357,24 +2247,24 @@ var SpinnerLoader = ({ isLoading, children = null, minTime = 500 }) => {
|
|
|
2357
2247
|
if (hideTimeout.current) clearTimeout(hideTimeout.current);
|
|
2358
2248
|
};
|
|
2359
2249
|
}, [isLoading, minTime]);
|
|
2360
|
-
return isVisible ? /* @__PURE__ */
|
|
2250
|
+
return isVisible ? /* @__PURE__ */ jsx8(Spinner, {}) : /* @__PURE__ */ jsx8(Fragment3, { children });
|
|
2361
2251
|
};
|
|
2362
2252
|
|
|
2363
2253
|
// components/src/ui/tabs/Tabs.tsx
|
|
2364
2254
|
import { Content as Content5, List, Root as Root2, Trigger as Trigger2 } from "@radix-ui/react-tabs";
|
|
2365
2255
|
import cn7 from "classnames";
|
|
2366
|
-
import { jsx as
|
|
2256
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
2367
2257
|
var Tabs = {
|
|
2368
|
-
Root: ({ className, ...props }) => /* @__PURE__ */
|
|
2369
|
-
Trigger: ({ children, className, ...props }) => /* @__PURE__ */
|
|
2370
|
-
List: ({ className, ...props }) => /* @__PURE__ */
|
|
2371
|
-
Content: ({ className, ...props }) => /* @__PURE__ */
|
|
2258
|
+
Root: ({ className, ...props }) => /* @__PURE__ */ jsx9(Root2, { ...props, className: cn7("ox-tabs", className) }),
|
|
2259
|
+
Trigger: ({ children, className, ...props }) => /* @__PURE__ */ jsx9(Trigger2, { ...props, className: cn7("ox-tab", className), children: /* @__PURE__ */ jsx9("div", { children }) }),
|
|
2260
|
+
List: ({ className, ...props }) => /* @__PURE__ */ jsx9(List, { ...props, className: cn7("ox-tabs-list", className) }),
|
|
2261
|
+
Content: ({ className, ...props }) => /* @__PURE__ */ jsx9(Content5, { ...props, className: cn7("ox-tabs-panel", className) })
|
|
2372
2262
|
};
|
|
2373
2263
|
|
|
2374
2264
|
// components/src/ui/checkbox/Checkbox.tsx
|
|
2375
2265
|
import cn8 from "classnames";
|
|
2376
|
-
import { jsx as
|
|
2377
|
-
var Check = () => /* @__PURE__ */
|
|
2266
|
+
import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2267
|
+
var Check = () => /* @__PURE__ */ jsx10(Checkmark12Icon_default, { className: "pointer-events-none absolute left-0.5 top-0.5 h-3 w-3 fill-current text-accent" });
|
|
2378
2268
|
var Indeterminate = classed.div`absolute w-2 h-0.5 left-1 top-[7px] bg-accent pointer-events-none`;
|
|
2379
2269
|
var inputStyle = `
|
|
2380
2270
|
appearance-none border border-default bg-default h-4 w-4 rounded-sm absolute left-0 outline-none
|
|
@@ -2388,9 +2278,9 @@ var Checkbox = ({
|
|
|
2388
2278
|
children,
|
|
2389
2279
|
className,
|
|
2390
2280
|
...inputProps
|
|
2391
|
-
}) => /* @__PURE__ */
|
|
2392
|
-
/* @__PURE__ */
|
|
2393
|
-
/* @__PURE__ */
|
|
2281
|
+
}) => /* @__PURE__ */ jsxs6("label", { className: "inline-flex items-center", children: [
|
|
2282
|
+
/* @__PURE__ */ jsxs6("span", { className: "relative h-4 w-4", children: [
|
|
2283
|
+
/* @__PURE__ */ jsx10(
|
|
2394
2284
|
"input",
|
|
2395
2285
|
{
|
|
2396
2286
|
className: cn8(inputStyle, className),
|
|
@@ -2401,17 +2291,17 @@ var Checkbox = ({
|
|
|
2401
2291
|
...inputProps
|
|
2402
2292
|
}
|
|
2403
2293
|
),
|
|
2404
|
-
inputProps.checked && !indeterminate && /* @__PURE__ */
|
|
2405
|
-
indeterminate && /* @__PURE__ */
|
|
2294
|
+
inputProps.checked && !indeterminate && /* @__PURE__ */ jsx10(Check, {}),
|
|
2295
|
+
indeterminate && /* @__PURE__ */ jsx10(Indeterminate, {})
|
|
2406
2296
|
] }),
|
|
2407
|
-
children && /* @__PURE__ */
|
|
2297
|
+
children && /* @__PURE__ */ jsx10("span", { className: "ml-2.5 text-sans-md text-secondary", children })
|
|
2408
2298
|
] });
|
|
2409
2299
|
|
|
2410
2300
|
// components/src/ui/listbox/Listbox.tsx
|
|
2411
2301
|
import { FloatingPortal, flip, offset, size, useFloating } from "@floating-ui/react";
|
|
2412
2302
|
import { Listbox as Select } from "@headlessui/react";
|
|
2413
2303
|
import cn9 from "classnames";
|
|
2414
|
-
import { Fragment as Fragment4, jsx as
|
|
2304
|
+
import { Fragment as Fragment4, jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2415
2305
|
var Listbox = ({
|
|
2416
2306
|
name,
|
|
2417
2307
|
selected,
|
|
@@ -2440,14 +2330,14 @@ var Listbox = ({
|
|
|
2440
2330
|
const selectedItem = selected && items.find((i) => i.value === selected);
|
|
2441
2331
|
const noItems = !isLoading && items.length === 0;
|
|
2442
2332
|
const isDisabled = disabled || noItems;
|
|
2443
|
-
return /* @__PURE__ */
|
|
2333
|
+
return /* @__PURE__ */ jsx11("div", { className: cn9("relative", className), children: /* @__PURE__ */ jsx11(
|
|
2444
2334
|
Select,
|
|
2445
2335
|
{
|
|
2446
2336
|
value: selected,
|
|
2447
2337
|
onChange: (val) => val !== null && onChange(val),
|
|
2448
2338
|
disabled: isDisabled || isLoading,
|
|
2449
|
-
children: ({ open }) => /* @__PURE__ */
|
|
2450
|
-
/* @__PURE__ */
|
|
2339
|
+
children: ({ open }) => /* @__PURE__ */ jsxs7(Fragment4, { children: [
|
|
2340
|
+
/* @__PURE__ */ jsxs7(
|
|
2451
2341
|
Select.Button,
|
|
2452
2342
|
{
|
|
2453
2343
|
name,
|
|
@@ -2463,34 +2353,34 @@ var Listbox = ({
|
|
|
2463
2353
|
),
|
|
2464
2354
|
...props,
|
|
2465
2355
|
children: [
|
|
2466
|
-
/* @__PURE__ */
|
|
2356
|
+
/* @__PURE__ */ jsx11("div", { className: "w-full px-3 text-left", children: selectedItem ? (
|
|
2467
2357
|
// labelString is one line, which is what we need when label is a ReactNode
|
|
2468
2358
|
selectedItem.labelString || selectedItem.label
|
|
2469
|
-
) : /* @__PURE__ */
|
|
2470
|
-
!isDisabled && /* @__PURE__ */
|
|
2471
|
-
/* @__PURE__ */
|
|
2359
|
+
) : /* @__PURE__ */ jsx11("span", { className: "text-quaternary", children: noItems ? "No items" : placeholder }) }),
|
|
2360
|
+
!isDisabled && /* @__PURE__ */ jsx11(SpinnerLoader, { isLoading }),
|
|
2361
|
+
/* @__PURE__ */ jsx11(
|
|
2472
2362
|
"div",
|
|
2473
2363
|
{
|
|
2474
2364
|
className: "ml-3 flex h-[calc(100%-12px)] items-center border-l px-3 border-secondary",
|
|
2475
2365
|
"aria-hidden": true,
|
|
2476
|
-
children: /* @__PURE__ */
|
|
2366
|
+
children: /* @__PURE__ */ jsx11(SelectArrows6Icon_default, { className: "h-[14px] w-2 text-tertiary" })
|
|
2477
2367
|
}
|
|
2478
2368
|
)
|
|
2479
2369
|
]
|
|
2480
2370
|
}
|
|
2481
2371
|
),
|
|
2482
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ jsx11(FloatingPortal, { children: /* @__PURE__ */ jsx11(
|
|
2483
2373
|
Select.Options,
|
|
2484
2374
|
{
|
|
2485
2375
|
ref: refs.setFloating,
|
|
2486
2376
|
style: floatingStyles,
|
|
2487
2377
|
className: "ox-menu pointer-events-auto z-50 overflow-y-auto !outline-none",
|
|
2488
|
-
children: items.map((item) => /* @__PURE__ */
|
|
2378
|
+
children: items.map((item) => /* @__PURE__ */ jsx11(
|
|
2489
2379
|
Select.Option,
|
|
2490
2380
|
{
|
|
2491
2381
|
value: item.value,
|
|
2492
2382
|
className: "relative border-b border-secondary last:border-0",
|
|
2493
|
-
children: ({ active, selected: selected2 }) => /* @__PURE__ */
|
|
2383
|
+
children: ({ active, selected: selected2 }) => /* @__PURE__ */ jsx11(
|
|
2494
2384
|
"div",
|
|
2495
2385
|
{
|
|
2496
2386
|
className: cn9(
|