@trops/dash-core 0.1.143 → 0.1.144

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/dist/index.esm.js CHANGED
@@ -33901,33 +33901,35 @@ var DashboardsSection = function DashboardsSection(_ref) {
33901
33901
  inputClassName: "py-1.5 text-xs"
33902
33902
  })
33903
33903
  })
33904
- }), /*#__PURE__*/jsx("div", {
33905
- className: "flex bg-white/5 rounded-md p-0.5",
33906
- children: [{
33907
- key: "grouped",
33908
- label: "Grouped"
33909
- }, {
33910
- key: "alphabetical",
33911
- label: "A-Z"
33912
- }, {
33913
- key: "marketplace",
33914
- label: "Marketplace"
33915
- }].map(function (tab) {
33916
- var currentTab = installMode === "marketplace" ? "marketplace" : viewMode;
33917
- return /*#__PURE__*/jsx("button", {
33918
- type: "button",
33919
- onClick: function onClick() {
33920
- if (tab.key === "marketplace") {
33921
- setInstallMode("marketplace");
33922
- setSelectedId(null);
33923
- } else {
33924
- setInstallMode(null);
33925
- setViewMode(tab.key);
33926
- }
33927
- },
33928
- className: "flex-1 px-2 py-0.5 rounded text-[11px] transition-colors ".concat(currentTab === tab.key ? "bg-white/10 font-medium opacity-90" : "opacity-50 hover:opacity-70"),
33929
- children: tab.label
33930
- }, tab.key);
33904
+ }), /*#__PURE__*/jsx(Tabs3, {
33905
+ value: installMode === "marketplace" ? "marketplace" : viewMode,
33906
+ onValueChange: function onValueChange(val) {
33907
+ if (val === "marketplace") {
33908
+ setInstallMode("marketplace");
33909
+ setSelectedId(null);
33910
+ } else {
33911
+ setInstallMode(null);
33912
+ setViewMode(val);
33913
+ }
33914
+ },
33915
+ backgroundColor: "bg-transparent",
33916
+ spacing: "p-0",
33917
+ children: /*#__PURE__*/jsxs(Tabs3.List, {
33918
+ className: "w-full flex",
33919
+ spacing: "p-0.5",
33920
+ children: [/*#__PURE__*/jsx(Tabs3.Trigger, {
33921
+ value: "grouped",
33922
+ className: "flex-1",
33923
+ children: "Grouped"
33924
+ }), /*#__PURE__*/jsx(Tabs3.Trigger, {
33925
+ value: "alphabetical",
33926
+ className: "flex-1",
33927
+ children: "A-Z"
33928
+ }), /*#__PURE__*/jsx(Tabs3.Trigger, {
33929
+ value: "marketplace",
33930
+ className: "flex-1",
33931
+ children: "Marketplace"
33932
+ })]
33931
33933
  })
33932
33934
  })]
33933
33935
  }), /*#__PURE__*/jsx("div", {
@@ -39952,26 +39954,27 @@ var WidgetsSection = function WidgetsSection(_ref) {
39952
39954
  onChange: setSearchQuery,
39953
39955
  placeholder: "Search widgets...",
39954
39956
  inputClassName: "py-1.5 text-xs"
39955
- }), /*#__PURE__*/jsx("div", {
39956
- className: "flex bg-white/5 rounded-md p-0.5",
39957
- children: [{
39958
- key: "all",
39959
- label: "All"
39960
- }, {
39961
- key: "builtin",
39962
- label: "Built-in"
39963
- }, {
39964
- key: "installed",
39965
- label: "Installed"
39966
- }].map(function (tab) {
39967
- return /*#__PURE__*/jsx("button", {
39968
- type: "button",
39969
- onClick: function onClick() {
39970
- return setFilterSource(tab.key);
39971
- },
39972
- className: "flex-1 px-2 py-0.5 rounded text-[11px] transition-colors ".concat(filterSource === tab.key ? "bg-white/10 font-medium opacity-90" : "opacity-50 hover:opacity-70"),
39973
- children: tab.label
39974
- }, tab.key);
39957
+ }), /*#__PURE__*/jsx(Tabs3, {
39958
+ value: filterSource,
39959
+ onValueChange: setFilterSource,
39960
+ backgroundColor: "bg-transparent",
39961
+ spacing: "p-0",
39962
+ children: /*#__PURE__*/jsxs(Tabs3.List, {
39963
+ className: "w-full flex",
39964
+ spacing: "p-0.5",
39965
+ children: [/*#__PURE__*/jsx(Tabs3.Trigger, {
39966
+ value: "all",
39967
+ className: "flex-1",
39968
+ children: "All"
39969
+ }), /*#__PURE__*/jsx(Tabs3.Trigger, {
39970
+ value: "builtin",
39971
+ className: "flex-1",
39972
+ children: "Built-in"
39973
+ }), /*#__PURE__*/jsx(Tabs3.Trigger, {
39974
+ value: "installed",
39975
+ className: "flex-1",
39976
+ children: "Installed"
39977
+ })]
39975
39978
  })
39976
39979
  }), /*#__PURE__*/jsxs("div", {
39977
39980
  className: "grid grid-cols-2 gap-1.5",