@oxide/design-system 1.4.4--canary.b28fbb9.0 → 1.4.5--canary.e348504.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/index.js +174 -168
- package/components/dist/index.js.map +1 -1
- package/icons/index.ts +1 -1
- package/icons/react/{Racks24Icon.tsx → Servers24Icon.tsx} +6 -2
- package/icons/react/index.ts +1 -1
- package/icons/sprite.svg +1 -1
- package/package.json +1 -1
- /package/icons/svg/{racks-24.svg → servers-24.svg} +0 -0
package/components/dist/index.js
CHANGED
|
@@ -56762,7 +56762,7 @@ var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
|
56762
56762
|
// icons/react/Security24Icon.tsx
|
|
56763
56763
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
56764
56764
|
|
|
56765
|
-
// icons/react/
|
|
56765
|
+
// icons/react/Servers24Icon.tsx
|
|
56766
56766
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
56767
56767
|
|
|
56768
56768
|
// icons/react/Settings24Icon.tsx
|
|
@@ -56795,114 +56795,117 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
|
56795
56795
|
// icons/react/Wireless24Icon.tsx
|
|
56796
56796
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
56797
56797
|
|
|
56798
|
-
// icons/react/
|
|
56798
|
+
// icons/react/Question24Icon.tsx
|
|
56799
56799
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
56800
56800
|
|
|
56801
|
-
// icons/react/
|
|
56801
|
+
// icons/react/Access16Icon.tsx
|
|
56802
56802
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
56803
56803
|
|
|
56804
|
-
// icons/react/
|
|
56804
|
+
// icons/react/Action16Icon.tsx
|
|
56805
56805
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
56806
56806
|
|
|
56807
|
-
// icons/react/
|
|
56807
|
+
// icons/react/AddRoundel16Icon.tsx
|
|
56808
56808
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
56809
56809
|
|
|
56810
|
-
// icons/react/
|
|
56810
|
+
// icons/react/Calendar16Icon.tsx
|
|
56811
56811
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
56812
56812
|
|
|
56813
|
-
// icons/react/
|
|
56813
|
+
// icons/react/Chat16Icon.tsx
|
|
56814
56814
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
56815
56815
|
|
|
56816
|
-
// icons/react/
|
|
56816
|
+
// icons/react/Clipboard16Icon.tsx
|
|
56817
56817
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
56818
56818
|
|
|
56819
|
-
// icons/react/
|
|
56819
|
+
// icons/react/Cloud16Icon.tsx
|
|
56820
56820
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
56821
56821
|
|
|
56822
|
-
// icons/react/
|
|
56822
|
+
// icons/react/Close16Icon.tsx
|
|
56823
56823
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
56824
56824
|
|
|
56825
|
-
// icons/react/
|
|
56825
|
+
// icons/react/Compability16Icon.tsx
|
|
56826
56826
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
56827
56827
|
|
|
56828
|
-
// icons/react/
|
|
56828
|
+
// icons/react/Contrast16Icon.tsx
|
|
56829
56829
|
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
56830
56830
|
|
|
56831
|
-
// icons/react/
|
|
56831
|
+
// icons/react/Cpu16Icon.tsx
|
|
56832
56832
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
56833
56833
|
|
|
56834
|
-
// icons/react/
|
|
56834
|
+
// icons/react/Delete16Icon.tsx
|
|
56835
56835
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
56836
56836
|
|
|
56837
|
-
// icons/react/
|
|
56837
|
+
// icons/react/Dislike16Icon.tsx
|
|
56838
56838
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
56839
56839
|
|
|
56840
|
-
// icons/react/
|
|
56840
|
+
// icons/react/Document16Icon.tsx
|
|
56841
56841
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
56842
56842
|
|
|
56843
|
-
// icons/react/
|
|
56843
|
+
// icons/react/Dots16Icon.tsx
|
|
56844
56844
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
56845
56845
|
|
|
56846
|
-
// icons/react/
|
|
56846
|
+
// icons/react/DownloadRoundel16Icon.tsx
|
|
56847
56847
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
56848
56848
|
|
|
56849
|
-
// icons/react/
|
|
56849
|
+
// icons/react/Edit16Icon.tsx
|
|
56850
56850
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
56851
56851
|
|
|
56852
|
-
// icons/react/
|
|
56852
|
+
// icons/react/Email16Icon.tsx
|
|
56853
56853
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
56854
56854
|
|
|
56855
|
-
// icons/react/
|
|
56855
|
+
// icons/react/Error16Icon.tsx
|
|
56856
56856
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
56857
56857
|
|
|
56858
|
-
// icons/react/
|
|
56858
|
+
// icons/react/Filter16Icon.tsx
|
|
56859
56859
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
56860
56860
|
|
|
56861
|
-
// icons/react/
|
|
56861
|
+
// icons/react/Firewall16Icon.tsx
|
|
56862
56862
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
56863
56863
|
|
|
56864
|
-
// icons/react/
|
|
56864
|
+
// icons/react/Folder16Icon.tsx
|
|
56865
56865
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
56866
56866
|
|
|
56867
|
-
// icons/react/
|
|
56867
|
+
// icons/react/Gateway16Icon.tsx
|
|
56868
56868
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
56869
56869
|
|
|
56870
|
-
// icons/react/
|
|
56870
|
+
// icons/react/Heart16Icon.tsx
|
|
56871
56871
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
56872
56872
|
|
|
56873
|
-
// icons/react/
|
|
56873
|
+
// icons/react/Hide16Icon.tsx
|
|
56874
56874
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
56875
56875
|
|
|
56876
|
-
// icons/react/
|
|
56876
|
+
// icons/react/Hourglass16Icon.tsx
|
|
56877
56877
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
56878
56878
|
|
|
56879
|
-
// icons/react/
|
|
56879
|
+
// icons/react/Images16Icon.tsx
|
|
56880
56880
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
56881
56881
|
|
|
56882
|
-
// icons/react/
|
|
56882
|
+
// icons/react/Info16Icon.tsx
|
|
56883
56883
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
56884
56884
|
|
|
56885
|
-
// icons/react/
|
|
56885
|
+
// icons/react/Instances16Icon.tsx
|
|
56886
56886
|
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
56887
56887
|
|
|
56888
|
-
// icons/react/
|
|
56888
|
+
// icons/react/Integration16Icon.tsx
|
|
56889
56889
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
56890
56890
|
|
|
56891
|
-
// icons/react/
|
|
56891
|
+
// icons/react/IpGlobal16Icon.tsx
|
|
56892
56892
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
56893
56893
|
|
|
56894
|
-
// icons/react/
|
|
56894
|
+
// icons/react/IpLocal16Icon.tsx
|
|
56895
56895
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
56896
56896
|
|
|
56897
|
-
// icons/react/
|
|
56897
|
+
// icons/react/Issues16Icon.tsx
|
|
56898
56898
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
56899
56899
|
|
|
56900
|
-
// icons/react/
|
|
56900
|
+
// icons/react/Key16Icon.tsx
|
|
56901
56901
|
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
56902
56902
|
|
|
56903
|
-
// icons/react/
|
|
56903
|
+
// icons/react/Like16Icon.tsx
|
|
56904
56904
|
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
56905
|
-
|
|
56905
|
+
|
|
56906
|
+
// icons/react/Link16Icon.tsx
|
|
56907
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
56908
|
+
var Link16Icon = ({ title, titleId, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
56906
56909
|
"svg",
|
|
56907
56910
|
{
|
|
56908
56911
|
width: 16,
|
|
@@ -56913,10 +56916,10 @@ var Link16Icon = ({ title, titleId, ...props }) => /* @__PURE__ */ (0, import_js
|
|
|
56913
56916
|
"aria-labelledby": titleId,
|
|
56914
56917
|
...props,
|
|
56915
56918
|
children: [
|
|
56916
|
-
title ? /* @__PURE__ */ (0,
|
|
56917
|
-
/* @__PURE__ */ (0,
|
|
56918
|
-
/* @__PURE__ */ (0,
|
|
56919
|
-
/* @__PURE__ */ (0,
|
|
56919
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("title", { id: titleId, children: title }) : null,
|
|
56920
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("g", { fill: "currentColor", children: [
|
|
56921
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("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.829ZM12.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 8l-1.591 1.591Z" }),
|
|
56922
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("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.06l-.353-.354Z" })
|
|
56920
56923
|
] })
|
|
56921
56924
|
]
|
|
56922
56925
|
}
|
|
@@ -56924,117 +56927,120 @@ var Link16Icon = ({ title, titleId, ...props }) => /* @__PURE__ */ (0, import_js
|
|
|
56924
56927
|
var Link16Icon_default = Link16Icon;
|
|
56925
56928
|
|
|
56926
56929
|
// icons/react/LoadBalancer16Icon.tsx
|
|
56927
|
-
var
|
|
56930
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
56928
56931
|
|
|
56929
56932
|
// icons/react/Logs16Icon.tsx
|
|
56930
|
-
var
|
|
56933
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
56931
56934
|
|
|
56932
56935
|
// icons/react/Metrics16Icon.tsx
|
|
56933
|
-
var
|
|
56936
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
56934
56937
|
|
|
56935
56938
|
// icons/react/Monitoring16Icon.tsx
|
|
56936
|
-
var
|
|
56939
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
56937
56940
|
|
|
56938
56941
|
// icons/react/Networking16Icon.tsx
|
|
56939
|
-
var
|
|
56942
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
56940
56943
|
|
|
56941
56944
|
// icons/react/NewWindow16Icon.tsx
|
|
56942
|
-
var
|
|
56945
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
56943
56946
|
|
|
56944
56947
|
// icons/react/Notifications16Icon.tsx
|
|
56945
|
-
var
|
|
56948
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
56946
56949
|
|
|
56947
56950
|
// icons/react/Organization16Icon.tsx
|
|
56948
|
-
var
|
|
56951
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
56949
56952
|
|
|
56950
56953
|
// icons/react/Overview16Icon.tsx
|
|
56951
|
-
var
|
|
56954
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
56952
56955
|
|
|
56953
56956
|
// icons/react/Person16Icon.tsx
|
|
56954
|
-
var
|
|
56957
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
56955
56958
|
|
|
56956
56959
|
// icons/react/PersonGroup16Icon.tsx
|
|
56957
|
-
var
|
|
56960
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
56958
56961
|
|
|
56959
56962
|
// icons/react/Profile16Icon.tsx
|
|
56960
|
-
var
|
|
56963
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
56961
56964
|
|
|
56962
56965
|
// icons/react/Refresh16Icon.tsx
|
|
56963
|
-
var
|
|
56966
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
56964
56967
|
|
|
56965
56968
|
// icons/react/Ram16Icon.tsx
|
|
56966
|
-
var
|
|
56969
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
56967
56970
|
|
|
56968
56971
|
// icons/react/Repair16Icon.tsx
|
|
56969
|
-
var
|
|
56972
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
56970
56973
|
|
|
56971
56974
|
// icons/react/Resize16Icon.tsx
|
|
56972
|
-
var
|
|
56975
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
56973
56976
|
|
|
56974
56977
|
// icons/react/Router16Icon.tsx
|
|
56975
|
-
var
|
|
56978
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
56976
56979
|
|
|
56977
56980
|
// icons/react/Sort16Icon.tsx
|
|
56978
|
-
var
|
|
56981
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
56979
56982
|
|
|
56980
56983
|
// icons/react/Search16Icon.tsx
|
|
56981
|
-
var
|
|
56984
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
56982
56985
|
|
|
56983
56986
|
// icons/react/Security16Icon.tsx
|
|
56984
|
-
var
|
|
56987
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
56985
56988
|
|
|
56986
56989
|
// icons/react/Servers16Icon.tsx
|
|
56987
|
-
var
|
|
56990
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
56988
56991
|
|
|
56989
56992
|
// icons/react/Settings16Icon.tsx
|
|
56990
|
-
var
|
|
56993
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
56991
56994
|
|
|
56992
56995
|
// icons/react/Show16Icon.tsx
|
|
56993
|
-
var
|
|
56996
|
+
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
56994
56997
|
|
|
56995
56998
|
// icons/react/SignOut16Icon.tsx
|
|
56996
|
-
var
|
|
56999
|
+
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
56997
57000
|
|
|
56998
57001
|
// icons/react/Snapshots16Icon.tsx
|
|
56999
|
-
var
|
|
57002
|
+
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
57000
57003
|
|
|
57001
57004
|
// icons/react/SoftwareUpdate16Icon.tsx
|
|
57002
|
-
var
|
|
57005
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
57003
57006
|
|
|
57004
57007
|
// icons/react/Ssd16Icon.tsx
|
|
57005
|
-
var
|
|
57008
|
+
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
57006
57009
|
|
|
57007
57010
|
// icons/react/Storage16Icon.tsx
|
|
57008
|
-
var
|
|
57011
|
+
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
57009
57012
|
|
|
57010
57013
|
// icons/react/Subnet16Icon.tsx
|
|
57011
|
-
var
|
|
57014
|
+
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
57012
57015
|
|
|
57013
57016
|
// icons/react/Tags16Icon.tsx
|
|
57014
|
-
var
|
|
57017
|
+
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
57015
57018
|
|
|
57016
57019
|
// icons/react/Terminal16Icon.tsx
|
|
57017
|
-
var
|
|
57020
|
+
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
57018
57021
|
|
|
57019
57022
|
// icons/react/Time16Icon.tsx
|
|
57020
|
-
var
|
|
57023
|
+
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
57021
57024
|
|
|
57022
57025
|
// icons/react/Transmit16Icon.tsx
|
|
57023
|
-
var
|
|
57026
|
+
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
57027
|
+
|
|
57028
|
+
// icons/react/Question16Icon.tsx
|
|
57029
|
+
var import_jsx_runtime130 = require("react/jsx-runtime");
|
|
57024
57030
|
|
|
57025
57031
|
// icons/react/Add12Icon.tsx
|
|
57026
|
-
var
|
|
57032
|
+
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
57027
57033
|
|
|
57028
57034
|
// icons/react/AddRoundel12Icon.tsx
|
|
57029
|
-
var
|
|
57035
|
+
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
57030
57036
|
|
|
57031
57037
|
// icons/react/Checkmark12Icon.tsx
|
|
57032
|
-
var
|
|
57038
|
+
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
57033
57039
|
var Checkmark12Icon = ({
|
|
57034
57040
|
title,
|
|
57035
57041
|
titleId,
|
|
57036
57042
|
...props
|
|
57037
|
-
}) => /* @__PURE__ */ (0,
|
|
57043
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
|
|
57038
57044
|
"svg",
|
|
57039
57045
|
{
|
|
57040
57046
|
width: 12,
|
|
@@ -57045,8 +57051,8 @@ var Checkmark12Icon = ({
|
|
|
57045
57051
|
"aria-labelledby": titleId,
|
|
57046
57052
|
...props,
|
|
57047
57053
|
children: [
|
|
57048
|
-
title ? /* @__PURE__ */ (0,
|
|
57049
|
-
/* @__PURE__ */ (0,
|
|
57054
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("title", { id: titleId, children: title }) : null,
|
|
57055
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
57050
57056
|
"path",
|
|
57051
57057
|
{
|
|
57052
57058
|
fillRule: "evenodd",
|
|
@@ -57061,90 +57067,90 @@ var Checkmark12Icon = ({
|
|
|
57061
57067
|
var Checkmark12Icon_default = Checkmark12Icon;
|
|
57062
57068
|
|
|
57063
57069
|
// icons/react/Close12Icon.tsx
|
|
57064
|
-
var
|
|
57070
|
+
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
57065
57071
|
|
|
57066
57072
|
// icons/react/DirectionRightIcon.tsx
|
|
57067
|
-
var
|
|
57073
|
+
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
57068
57074
|
|
|
57069
57075
|
// icons/react/DirectionUpIcon.tsx
|
|
57070
|
-
var
|
|
57076
|
+
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
57071
57077
|
|
|
57072
57078
|
// icons/react/DirectionDownIcon.tsx
|
|
57073
|
-
var
|
|
57079
|
+
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
57074
57080
|
|
|
57075
57081
|
// icons/react/DirectionLeftIcon.tsx
|
|
57076
|
-
var
|
|
57082
|
+
var import_jsx_runtime138 = require("react/jsx-runtime");
|
|
57077
57083
|
|
|
57078
57084
|
// icons/react/Clipboard12Icon.tsx
|
|
57079
|
-
var
|
|
57085
|
+
var import_jsx_runtime139 = require("react/jsx-runtime");
|
|
57080
57086
|
|
|
57081
57087
|
// icons/react/Copy12Icon.tsx
|
|
57082
|
-
var
|
|
57088
|
+
var import_jsx_runtime140 = require("react/jsx-runtime");
|
|
57083
57089
|
|
|
57084
57090
|
// icons/react/Disabled12Icon.tsx
|
|
57085
|
-
var
|
|
57091
|
+
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
57086
57092
|
|
|
57087
57093
|
// icons/react/Error12Icon.tsx
|
|
57088
|
-
var
|
|
57094
|
+
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
57089
57095
|
|
|
57090
57096
|
// icons/react/Info12Icon.tsx
|
|
57091
|
-
var
|
|
57097
|
+
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
57092
57098
|
|
|
57093
57099
|
// icons/react/Filter12Icon.tsx
|
|
57094
|
-
var
|
|
57100
|
+
var import_jsx_runtime144 = require("react/jsx-runtime");
|
|
57095
57101
|
|
|
57096
57102
|
// icons/react/Key12Icon.tsx
|
|
57097
|
-
var
|
|
57103
|
+
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
57098
57104
|
|
|
57099
57105
|
// icons/react/Loader12Icon.tsx
|
|
57100
|
-
var
|
|
57106
|
+
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
57101
57107
|
|
|
57102
57108
|
// icons/react/MenuOpen12Icon.tsx
|
|
57103
|
-
var
|
|
57109
|
+
var import_jsx_runtime147 = require("react/jsx-runtime");
|
|
57104
57110
|
|
|
57105
57111
|
// icons/react/MenuClose12Icon.tsx
|
|
57106
|
-
var
|
|
57112
|
+
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
57107
57113
|
|
|
57108
57114
|
// icons/react/More12Icon.tsx
|
|
57109
|
-
var
|
|
57115
|
+
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
57110
57116
|
|
|
57111
57117
|
// icons/react/NextArrow12Icon.tsx
|
|
57112
|
-
var
|
|
57118
|
+
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
57113
57119
|
|
|
57114
57120
|
// icons/react/PrevArrow12Icon.tsx
|
|
57115
|
-
var
|
|
57121
|
+
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
57116
57122
|
|
|
57117
57123
|
// icons/react/OpenLink12Icon.tsx
|
|
57118
|
-
var
|
|
57124
|
+
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
57119
57125
|
|
|
57120
57126
|
// icons/react/Repair12Icon.tsx
|
|
57121
|
-
var
|
|
57127
|
+
var import_jsx_runtime153 = require("react/jsx-runtime");
|
|
57122
57128
|
|
|
57123
57129
|
// icons/react/Security12Icon.tsx
|
|
57124
|
-
var
|
|
57130
|
+
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
57125
57131
|
|
|
57126
57132
|
// icons/react/Success12Icon.tsx
|
|
57127
|
-
var
|
|
57133
|
+
var import_jsx_runtime155 = require("react/jsx-runtime");
|
|
57128
57134
|
|
|
57129
57135
|
// icons/react/Unauthorized12Icon.tsx
|
|
57130
|
-
var
|
|
57136
|
+
var import_jsx_runtime156 = require("react/jsx-runtime");
|
|
57131
57137
|
|
|
57132
57138
|
// icons/react/Warning12Icon.tsx
|
|
57133
|
-
var
|
|
57139
|
+
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
57134
57140
|
|
|
57135
57141
|
// icons/react/Question12Icon.tsx
|
|
57136
|
-
var
|
|
57142
|
+
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
57137
57143
|
|
|
57138
57144
|
// icons/react/Hide12Icon.tsx
|
|
57139
|
-
var
|
|
57145
|
+
var import_jsx_runtime159 = require("react/jsx-runtime");
|
|
57140
57146
|
|
|
57141
57147
|
// icons/react/SelectArrows6Icon.tsx
|
|
57142
|
-
var
|
|
57148
|
+
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
57143
57149
|
var SelectArrows6Icon = ({
|
|
57144
57150
|
title,
|
|
57145
57151
|
titleId,
|
|
57146
57152
|
...props
|
|
57147
|
-
}) => /* @__PURE__ */ (0,
|
|
57153
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)(
|
|
57148
57154
|
"svg",
|
|
57149
57155
|
{
|
|
57150
57156
|
width: 6,
|
|
@@ -57155,8 +57161,8 @@ var SelectArrows6Icon = ({
|
|
|
57155
57161
|
"aria-labelledby": titleId,
|
|
57156
57162
|
...props,
|
|
57157
57163
|
children: [
|
|
57158
|
-
title ? /* @__PURE__ */ (0,
|
|
57159
|
-
/* @__PURE__ */ (0,
|
|
57164
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("title", { id: titleId, children: title }) : null,
|
|
57165
|
+
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
|
|
57160
57166
|
"path",
|
|
57161
57167
|
{
|
|
57162
57168
|
fillRule: "evenodd",
|
|
@@ -57171,13 +57177,13 @@ var SelectArrows6Icon = ({
|
|
|
57171
57177
|
var SelectArrows6Icon_default = SelectArrows6Icon;
|
|
57172
57178
|
|
|
57173
57179
|
// icons/react/Close8Icon.tsx
|
|
57174
|
-
var
|
|
57180
|
+
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
57175
57181
|
|
|
57176
57182
|
// components/src/asciidoc/Section.tsx
|
|
57177
57183
|
var import_react_asciidoc3 = require("@oxide/react-asciidoc");
|
|
57178
57184
|
var import_classnames2 = __toESM(require_classnames());
|
|
57179
57185
|
var import_react2 = require("react");
|
|
57180
|
-
var
|
|
57186
|
+
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
57181
57187
|
var Section = ({ node }) => {
|
|
57182
57188
|
const docAttrs = node.getDocument().getAttributes();
|
|
57183
57189
|
const level = node.getLevel();
|
|
@@ -57205,22 +57211,22 @@ var Section = ({ node }) => {
|
|
|
57205
57211
|
} else {
|
|
57206
57212
|
title = node.getTitle() || "";
|
|
57207
57213
|
}
|
|
57208
|
-
title = /* @__PURE__ */ (0,
|
|
57209
|
-
/* @__PURE__ */ (0,
|
|
57210
|
-
/* @__PURE__ */ (0,
|
|
57214
|
+
title = /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(import_jsx_runtime162.Fragment, { children: [
|
|
57215
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("a", { className: "anchor", id: node.getId() || "", "aria-hidden": true }),
|
|
57216
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("a", { className: "link group", href: `#${node.getId()}`, children: [
|
|
57211
57217
|
html_react_parser_default(title),
|
|
57212
|
-
/* @__PURE__ */ (0,
|
|
57218
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Link16Icon_default, { className: "text-accent-secondary hidden group-hover:inline-block ml-2" })
|
|
57213
57219
|
] })
|
|
57214
57220
|
] });
|
|
57215
57221
|
if (level === 0) {
|
|
57216
|
-
return /* @__PURE__ */ (0,
|
|
57217
|
-
/* @__PURE__ */ (0,
|
|
57218
|
-
/* @__PURE__ */ (0,
|
|
57222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(import_jsx_runtime162.Fragment, { children: [
|
|
57223
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("h1", { className: (0, import_classnames2.default)("sect0", (0, import_react_asciidoc3.getRole)(node)), "data-sectnum": sectNum, children: title }),
|
|
57224
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_asciidoc3.Content, { blocks: node.getBlocks() })
|
|
57219
57225
|
] });
|
|
57220
57226
|
} else {
|
|
57221
|
-
return /* @__PURE__ */ (0,
|
|
57227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { className: (0, import_classnames2.default)(`sect${level}`, (0, import_react_asciidoc3.getRole)(node)), children: [
|
|
57222
57228
|
(0, import_react2.createElement)(`h${level + 1}`, { "data-sectnum": sectNum }, title),
|
|
57223
|
-
/* @__PURE__ */ (0,
|
|
57229
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { className: "sectionbody", children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_asciidoc3.Content, { blocks: node.getBlocks() }) })
|
|
57224
57230
|
] });
|
|
57225
57231
|
}
|
|
57226
57232
|
};
|
|
@@ -57228,8 +57234,8 @@ var Section_default = Section;
|
|
|
57228
57234
|
|
|
57229
57235
|
// components/src/asciidoc/Table.tsx
|
|
57230
57236
|
var import_react_asciidoc4 = require("@oxide/react-asciidoc");
|
|
57231
|
-
var
|
|
57232
|
-
var Table = ({ node }) => /* @__PURE__ */ (0,
|
|
57237
|
+
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
57238
|
+
var Table = ({ node }) => /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "table-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_react_asciidoc4.Table, { node }) });
|
|
57233
57239
|
var Table_default = Table;
|
|
57234
57240
|
|
|
57235
57241
|
// components/src/asciidoc/index.ts
|
|
@@ -57242,7 +57248,7 @@ var AsciiDocBlocks = {
|
|
|
57242
57248
|
|
|
57243
57249
|
// components/src/ui/badge/Badge.tsx
|
|
57244
57250
|
var import_classnames3 = __toESM(require_classnames());
|
|
57245
|
-
var
|
|
57251
|
+
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
57246
57252
|
var badgeColors = {
|
|
57247
57253
|
default: {
|
|
57248
57254
|
default: `ring-1 ring-inset bg-accent-secondary text-accent ring-[rgba(var(--base-green-800-rgb),0.15)]`,
|
|
@@ -57267,7 +57273,7 @@ var Badge = ({
|
|
|
57267
57273
|
color = "default",
|
|
57268
57274
|
variant = "default"
|
|
57269
57275
|
}) => {
|
|
57270
|
-
return /* @__PURE__ */ (0,
|
|
57276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
|
|
57271
57277
|
"span",
|
|
57272
57278
|
{
|
|
57273
57279
|
className: (0, import_classnames3.default)(
|
|
@@ -57277,7 +57283,7 @@ var Badge = ({
|
|
|
57277
57283
|
badgeColors[variant][color],
|
|
57278
57284
|
className
|
|
57279
57285
|
),
|
|
57280
|
-
children: /* @__PURE__ */ (0,
|
|
57286
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("span", { children })
|
|
57281
57287
|
}
|
|
57282
57288
|
);
|
|
57283
57289
|
};
|
|
@@ -57285,7 +57291,7 @@ var Badge = ({
|
|
|
57285
57291
|
// components/src/ui/button/Button.tsx
|
|
57286
57292
|
var import_classnames4 = __toESM(require_classnames());
|
|
57287
57293
|
var import_react3 = require("react");
|
|
57288
|
-
var
|
|
57294
|
+
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
57289
57295
|
var buttonSizes = ["sm", "icon", "base"];
|
|
57290
57296
|
var variants = ["primary", "secondary", "ghost", "danger"];
|
|
57291
57297
|
var sizeStyle = {
|
|
@@ -57325,7 +57331,7 @@ var Button = (0, import_react3.forwardRef)(
|
|
|
57325
57331
|
...rest
|
|
57326
57332
|
}, ref) => {
|
|
57327
57333
|
const isDisabled = disabled || loading;
|
|
57328
|
-
return /* @__PURE__ */ (0,
|
|
57334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)(
|
|
57329
57335
|
"button",
|
|
57330
57336
|
{
|
|
57331
57337
|
className: (0, import_classnames4.default)(buttonStyle({ size: size2, variant }), className, {
|
|
@@ -57338,8 +57344,8 @@ var Button = (0, import_react3.forwardRef)(
|
|
|
57338
57344
|
"aria-disabled": isDisabled,
|
|
57339
57345
|
...rest,
|
|
57340
57346
|
children: [
|
|
57341
|
-
loading && /* @__PURE__ */ (0,
|
|
57342
|
-
/* @__PURE__ */ (0,
|
|
57347
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(Spinner, { className: "absolute", variant }),
|
|
57348
|
+
/* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: (0, import_classnames4.default)("flex items-center", innerClassName, { invisible: loading }), children })
|
|
57343
57349
|
]
|
|
57344
57350
|
}
|
|
57345
57351
|
);
|
|
@@ -57349,7 +57355,7 @@ var Button = (0, import_react3.forwardRef)(
|
|
|
57349
57355
|
// components/src/ui/spinner/Spinner.tsx
|
|
57350
57356
|
var import_classnames5 = __toESM(require_classnames());
|
|
57351
57357
|
var import_react4 = require("react");
|
|
57352
|
-
var
|
|
57358
|
+
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
57353
57359
|
var spinnerSizes = ["base", "lg"];
|
|
57354
57360
|
var spinnerVariants = ["primary", "secondary", "ghost", "danger"];
|
|
57355
57361
|
var Spinner = ({
|
|
@@ -57361,7 +57367,7 @@ var Spinner = ({
|
|
|
57361
57367
|
const center = size2 === "lg" ? 18 : 6;
|
|
57362
57368
|
const radius = size2 === "lg" ? 16 : 5;
|
|
57363
57369
|
const strokeWidth = size2 === "lg" ? 3 : 2;
|
|
57364
|
-
return /* @__PURE__ */ (0,
|
|
57370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
|
|
57365
57371
|
"svg",
|
|
57366
57372
|
{
|
|
57367
57373
|
width: frameSize,
|
|
@@ -57372,7 +57378,7 @@ var Spinner = ({
|
|
|
57372
57378
|
"aria-labelledby": "Spinner",
|
|
57373
57379
|
className: (0, import_classnames5.default)("spinner", `spinner-${variant}`, `spinner-${size2}`, className),
|
|
57374
57380
|
children: [
|
|
57375
|
-
/* @__PURE__ */ (0,
|
|
57381
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
57376
57382
|
"circle",
|
|
57377
57383
|
{
|
|
57378
57384
|
fill: "none",
|
|
@@ -57385,7 +57391,7 @@ var Spinner = ({
|
|
|
57385
57391
|
strokeOpacity: 0.2
|
|
57386
57392
|
}
|
|
57387
57393
|
),
|
|
57388
|
-
/* @__PURE__ */ (0,
|
|
57394
|
+
/* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
57389
57395
|
"circle",
|
|
57390
57396
|
{
|
|
57391
57397
|
className: "path",
|
|
@@ -57426,24 +57432,24 @@ var SpinnerLoader = ({ isLoading, children = null, minTime = 500 }) => {
|
|
|
57426
57432
|
clearTimeout(hideTimeout.current);
|
|
57427
57433
|
};
|
|
57428
57434
|
}, [isLoading, minTime]);
|
|
57429
|
-
return isVisible ? /* @__PURE__ */ (0,
|
|
57435
|
+
return isVisible ? /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Spinner, {}) : /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_jsx_runtime166.Fragment, { children });
|
|
57430
57436
|
};
|
|
57431
57437
|
|
|
57432
57438
|
// components/src/ui/tabs/Tabs.tsx
|
|
57433
57439
|
var import_react_tabs = require("@radix-ui/react-tabs");
|
|
57434
57440
|
var import_classnames6 = __toESM(require_classnames());
|
|
57435
|
-
var
|
|
57441
|
+
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
57436
57442
|
var Tabs = {
|
|
57437
|
-
Root: ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
57438
|
-
Trigger: ({ children, className, ...props }) => /* @__PURE__ */ (0,
|
|
57439
|
-
List: ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
57440
|
-
Content: ({ className, ...props }) => /* @__PURE__ */ (0,
|
|
57443
|
+
Root: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_tabs.Root, { ...props, className: (0, import_classnames6.default)("ox-tabs", className) }),
|
|
57444
|
+
Trigger: ({ children, className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_tabs.Trigger, { ...props, className: (0, import_classnames6.default)("ox-tab", className), children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { children }) }),
|
|
57445
|
+
List: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_tabs.List, { ...props, className: (0, import_classnames6.default)("ox-tabs-list", className) }),
|
|
57446
|
+
Content: ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_tabs.Content, { ...props, className: (0, import_classnames6.default)("ox-tabs-panel", className) })
|
|
57441
57447
|
};
|
|
57442
57448
|
|
|
57443
57449
|
// components/src/ui/checkbox/Checkbox.tsx
|
|
57444
57450
|
var import_classnames7 = __toESM(require_classnames());
|
|
57445
|
-
var
|
|
57446
|
-
var Check = () => /* @__PURE__ */ (0,
|
|
57451
|
+
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
57452
|
+
var Check = () => /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Checkmark12Icon_default, { className: "pointer-events-none absolute left-0.5 top-0.5 h-3 w-3 fill-current text-accent" });
|
|
57447
57453
|
var Indeterminate = classed.div`absolute w-2 h-0.5 left-1 top-[7px] bg-accent pointer-events-none`;
|
|
57448
57454
|
var inputStyle = `
|
|
57449
57455
|
appearance-none border border-default bg-default h-4 w-4 rounded-sm absolute left-0 outline-none
|
|
@@ -57457,9 +57463,9 @@ var Checkbox = ({
|
|
|
57457
57463
|
children,
|
|
57458
57464
|
className,
|
|
57459
57465
|
...inputProps
|
|
57460
|
-
}) => /* @__PURE__ */ (0,
|
|
57461
|
-
/* @__PURE__ */ (0,
|
|
57462
|
-
/* @__PURE__ */ (0,
|
|
57466
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("label", { className: "inline-flex items-center", children: [
|
|
57467
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("span", { className: "relative h-4 w-4", children: [
|
|
57468
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
57463
57469
|
"input",
|
|
57464
57470
|
{
|
|
57465
57471
|
className: (0, import_classnames7.default)(inputStyle, className),
|
|
@@ -57468,28 +57474,28 @@ var Checkbox = ({
|
|
|
57468
57474
|
...inputProps
|
|
57469
57475
|
}
|
|
57470
57476
|
),
|
|
57471
|
-
inputProps.checked && !indeterminate && /* @__PURE__ */ (0,
|
|
57472
|
-
indeterminate && /* @__PURE__ */ (0,
|
|
57477
|
+
inputProps.checked && !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Check, {}),
|
|
57478
|
+
indeterminate && /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Indeterminate, {})
|
|
57473
57479
|
] }),
|
|
57474
|
-
children && /* @__PURE__ */ (0,
|
|
57480
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "ml-2.5 text-sans-md text-secondary", children })
|
|
57475
57481
|
] });
|
|
57476
57482
|
|
|
57477
57483
|
// components/src/ui/empty-message/EmptyMessage.tsx
|
|
57478
57484
|
var import_classnames8 = __toESM(require_classnames());
|
|
57479
57485
|
var import_react_router_dom = require("react-router-dom");
|
|
57480
|
-
var
|
|
57486
|
+
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
57481
57487
|
var buttonStyleProps = { variant: "ghost", size: "sm", color: "secondary" };
|
|
57482
57488
|
function EmptyMessage(props) {
|
|
57483
57489
|
let button = null;
|
|
57484
57490
|
if (props.buttonText && "buttonTo" in props) {
|
|
57485
|
-
button = /* @__PURE__ */ (0,
|
|
57491
|
+
button = /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(import_react_router_dom.Link, { className: (0, import_classnames8.default)("mt-6", buttonStyle(buttonStyleProps)), to: props.buttonTo, children: props.buttonText });
|
|
57486
57492
|
} else if (props.buttonText && "onClick" in props) {
|
|
57487
|
-
button = /* @__PURE__ */ (0,
|
|
57493
|
+
button = /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(Button, { ...buttonStyleProps, className: "mt-6", onClick: props.onClick, children: props.buttonText });
|
|
57488
57494
|
}
|
|
57489
|
-
return /* @__PURE__ */ (0,
|
|
57490
|
-
props.icon && /* @__PURE__ */ (0,
|
|
57491
|
-
/* @__PURE__ */ (0,
|
|
57492
|
-
props.body && /* @__PURE__ */ (0,
|
|
57495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "m-4 flex max-w-[14rem] flex-col items-center text-center", children: [
|
|
57496
|
+
props.icon && /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "mb-4 rounded p-1 leading-[0] text-accent bg-accent-secondary", children: props.icon }),
|
|
57497
|
+
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)("h3", { className: "text-sans-semi-lg", children: props.title }),
|
|
57498
|
+
props.body && /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("p", { className: "mt-1 text-sans-md text-secondary", children: props.body }),
|
|
57493
57499
|
button
|
|
57494
57500
|
] });
|
|
57495
57501
|
}
|
|
@@ -57498,7 +57504,7 @@ function EmptyMessage(props) {
|
|
|
57498
57504
|
var import_react7 = require("@floating-ui/react");
|
|
57499
57505
|
var import_react8 = require("@headlessui/react");
|
|
57500
57506
|
var import_classnames9 = __toESM(require_classnames());
|
|
57501
|
-
var
|
|
57507
|
+
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
57502
57508
|
var Listbox = ({
|
|
57503
57509
|
name,
|
|
57504
57510
|
selected,
|
|
@@ -57527,14 +57533,14 @@ var Listbox = ({
|
|
|
57527
57533
|
const selectedItem = selected && items.find((i) => i.value === selected);
|
|
57528
57534
|
const noItems = !isLoading && items.length === 0;
|
|
57529
57535
|
const isDisabled = disabled || noItems;
|
|
57530
|
-
return /* @__PURE__ */ (0,
|
|
57536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: (0, import_classnames9.default)("relative", className), children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
|
|
57531
57537
|
import_react8.Listbox,
|
|
57532
57538
|
{
|
|
57533
57539
|
value: selected,
|
|
57534
57540
|
onChange: (val) => val !== null && onChange(val),
|
|
57535
57541
|
disabled: isDisabled || isLoading,
|
|
57536
|
-
children: ({ open }) => /* @__PURE__ */ (0,
|
|
57537
|
-
/* @__PURE__ */ (0,
|
|
57542
|
+
children: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(import_jsx_runtime170.Fragment, { children: [
|
|
57543
|
+
/* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(
|
|
57538
57544
|
import_react8.Listbox.Button,
|
|
57539
57545
|
{
|
|
57540
57546
|
name,
|
|
@@ -57550,34 +57556,34 @@ var Listbox = ({
|
|
|
57550
57556
|
),
|
|
57551
57557
|
...props,
|
|
57552
57558
|
children: [
|
|
57553
|
-
/* @__PURE__ */ (0,
|
|
57559
|
+
/* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: "w-full px-3 text-left", children: selectedItem ? (
|
|
57554
57560
|
// labelString is one line, which is what we need when label is a ReactNode
|
|
57555
57561
|
selectedItem.labelString || selectedItem.label
|
|
57556
|
-
) : /* @__PURE__ */ (0,
|
|
57557
|
-
!isDisabled && /* @__PURE__ */ (0,
|
|
57558
|
-
/* @__PURE__ */ (0,
|
|
57562
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: "text-quaternary", children: noItems ? "No items" : placeholder }) }),
|
|
57563
|
+
!isDisabled && /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(SpinnerLoader, { isLoading }),
|
|
57564
|
+
/* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
|
|
57559
57565
|
"div",
|
|
57560
57566
|
{
|
|
57561
57567
|
className: "ml-3 flex h-[calc(100%-12px)] items-center border-l px-3 border-secondary",
|
|
57562
57568
|
"aria-hidden": true,
|
|
57563
|
-
children: /* @__PURE__ */ (0,
|
|
57569
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(SelectArrows6Icon_default, { className: "h-[14px] w-2 text-tertiary" })
|
|
57564
57570
|
}
|
|
57565
57571
|
)
|
|
57566
57572
|
]
|
|
57567
57573
|
}
|
|
57568
57574
|
),
|
|
57569
|
-
/* @__PURE__ */ (0,
|
|
57575
|
+
/* @__PURE__ */ (0, import_jsx_runtime170.jsx)(import_react7.FloatingPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
|
|
57570
57576
|
import_react8.Listbox.Options,
|
|
57571
57577
|
{
|
|
57572
57578
|
ref: refs.setFloating,
|
|
57573
57579
|
style: floatingStyles,
|
|
57574
57580
|
className: "ox-menu pointer-events-auto z-50 overflow-y-auto !outline-none",
|
|
57575
|
-
children: items.map((item) => /* @__PURE__ */ (0,
|
|
57581
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
|
|
57576
57582
|
import_react8.Listbox.Option,
|
|
57577
57583
|
{
|
|
57578
57584
|
value: item.value,
|
|
57579
57585
|
className: "relative border-b border-secondary last:border-0",
|
|
57580
|
-
children: ({ active, selected: selected2 }) => /* @__PURE__ */ (0,
|
|
57586
|
+
children: ({ active, selected: selected2 }) => /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
|
|
57581
57587
|
"div",
|
|
57582
57588
|
{
|
|
57583
57589
|
className: (0, import_classnames9.default)(
|