@trops/dash-core 0.1.577 → 0.1.578

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
@@ -37841,47 +37841,53 @@ var ColorHarmonyPicker = function ColorHarmonyPicker(_ref8) {
37841
37841
  })
37842
37842
  })]
37843
37843
  }), /*#__PURE__*/jsxs("div", {
37844
- className: "flex flex-col gap-2",
37845
- children: [/*#__PURE__*/jsx("span", {
37846
- className: "text-xs opacity-50",
37847
- children: "Base Color"
37848
- }), /*#__PURE__*/jsx(InlineHexPicker, {
37849
- selectedHex: isHexColor$1(selectedColor) ? selectedColor : null,
37850
- onPick: function onPick(hex) {
37851
- return setSelectedColor(hex);
37852
- }
37853
- })]
37854
- }), /*#__PURE__*/jsx(HslNudgePanel, {
37855
- dH: dH,
37856
- dS: dS,
37857
- dL: dL,
37858
- onChange: function onChange(_ref9) {
37859
- var h = _ref9.dH,
37860
- s = _ref9.dS,
37861
- l = _ref9.dL;
37862
- setDH(h);
37863
- setDS(s);
37864
- setDL(l);
37865
- }
37866
- }), /*#__PURE__*/jsxs("div", {
37867
- className: "flex flex-col gap-2",
37868
- children: [/*#__PURE__*/jsx("span", {
37869
- className: "text-xs opacity-50",
37870
- children: "Generated Palette"
37844
+ className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
37845
+ children: [/*#__PURE__*/jsxs("div", {
37846
+ className: "flex flex-col gap-2",
37847
+ children: [/*#__PURE__*/jsx("span", {
37848
+ className: "text-xs opacity-50",
37849
+ children: "Base Color"
37850
+ }), /*#__PURE__*/jsx(InlineHexPicker, {
37851
+ selectedHex: isHexColor$1(selectedColor) ? selectedColor : null,
37852
+ onPick: function onPick(hex) {
37853
+ return setSelectedColor(hex);
37854
+ }
37855
+ })]
37871
37856
  }), /*#__PURE__*/jsxs("div", {
37872
- className: "flex flex-row gap-2",
37873
- children: [/*#__PURE__*/jsx(PaletteSwatch, {
37874
- value: previewTheme.primary,
37875
- label: "Primary"
37876
- }), /*#__PURE__*/jsx(PaletteSwatch, {
37877
- value: previewTheme.secondary,
37878
- label: "Secondary"
37879
- }), /*#__PURE__*/jsx(PaletteSwatch, {
37880
- value: previewTheme.tertiary,
37881
- label: "Tertiary"
37882
- }), /*#__PURE__*/jsx(PaletteSwatch, {
37883
- value: previewTheme.neutral,
37884
- label: "Neutral"
37857
+ className: "flex flex-col gap-4",
37858
+ children: [/*#__PURE__*/jsx(HslNudgePanel, {
37859
+ dH: dH,
37860
+ dS: dS,
37861
+ dL: dL,
37862
+ onChange: function onChange(_ref9) {
37863
+ var h = _ref9.dH,
37864
+ s = _ref9.dS,
37865
+ l = _ref9.dL;
37866
+ setDH(h);
37867
+ setDS(s);
37868
+ setDL(l);
37869
+ }
37870
+ }), /*#__PURE__*/jsxs("div", {
37871
+ className: "flex flex-col gap-2",
37872
+ children: [/*#__PURE__*/jsx("span", {
37873
+ className: "text-xs opacity-50",
37874
+ children: "Generated Palette"
37875
+ }), /*#__PURE__*/jsxs("div", {
37876
+ className: "flex flex-row gap-2",
37877
+ children: [/*#__PURE__*/jsx(PaletteSwatch, {
37878
+ value: previewTheme.primary,
37879
+ label: "Primary"
37880
+ }), /*#__PURE__*/jsx(PaletteSwatch, {
37881
+ value: previewTheme.secondary,
37882
+ label: "Secondary"
37883
+ }), /*#__PURE__*/jsx(PaletteSwatch, {
37884
+ value: previewTheme.tertiary,
37885
+ label: "Tertiary"
37886
+ }), /*#__PURE__*/jsx(PaletteSwatch, {
37887
+ value: previewTheme.neutral,
37888
+ label: "Neutral"
37889
+ })]
37890
+ })]
37885
37891
  })]
37886
37892
  })]
37887
37893
  }), !inline && /*#__PURE__*/jsx(Button, {
@@ -38056,37 +38062,40 @@ var RandomPreview = function RandomPreview(_ref1) {
38056
38062
  children: [/*#__PURE__*/jsx("span", {
38057
38063
  className: "text-sm font-semibold opacity-50",
38058
38064
  children: "Random Theme"
38059
- }), /*#__PURE__*/jsx(HslNudgePanel, {
38060
- dH: dH,
38061
- dS: dS,
38062
- dL: dL,
38063
- onChange: function onChange(_ref10) {
38064
- var h = _ref10.dH,
38065
- s = _ref10.dS,
38066
- l = _ref10.dL;
38067
- setDH(h);
38068
- setDS(s);
38069
- setDL(l);
38070
- }
38071
38065
  }), /*#__PURE__*/jsxs("div", {
38072
- className: "flex flex-col gap-2",
38073
- children: [/*#__PURE__*/jsx("span", {
38074
- className: "text-xs opacity-50",
38075
- children: "Generated Palette"
38076
- }), previewTheme && /*#__PURE__*/jsxs("div", {
38077
- className: "flex flex-row gap-2",
38078
- children: [/*#__PURE__*/jsx(PaletteSwatch, {
38079
- value: previewTheme.primary,
38080
- label: "Primary"
38081
- }), /*#__PURE__*/jsx(PaletteSwatch, {
38082
- value: previewTheme.secondary,
38083
- label: "Secondary"
38084
- }), /*#__PURE__*/jsx(PaletteSwatch, {
38085
- value: previewTheme.tertiary,
38086
- label: "Tertiary"
38087
- }), /*#__PURE__*/jsx(PaletteSwatch, {
38088
- value: previewTheme.neutral,
38089
- label: "Neutral"
38066
+ className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
38067
+ children: [/*#__PURE__*/jsx(HslNudgePanel, {
38068
+ dH: dH,
38069
+ dS: dS,
38070
+ dL: dL,
38071
+ onChange: function onChange(_ref10) {
38072
+ var h = _ref10.dH,
38073
+ s = _ref10.dS,
38074
+ l = _ref10.dL;
38075
+ setDH(h);
38076
+ setDS(s);
38077
+ setDL(l);
38078
+ }
38079
+ }), /*#__PURE__*/jsxs("div", {
38080
+ className: "flex flex-col gap-2",
38081
+ children: [/*#__PURE__*/jsx("span", {
38082
+ className: "text-xs opacity-50",
38083
+ children: "Generated Palette"
38084
+ }), previewTheme && /*#__PURE__*/jsxs("div", {
38085
+ className: "flex flex-row gap-2",
38086
+ children: [/*#__PURE__*/jsx(PaletteSwatch, {
38087
+ value: previewTheme.primary,
38088
+ label: "Primary"
38089
+ }), /*#__PURE__*/jsx(PaletteSwatch, {
38090
+ value: previewTheme.secondary,
38091
+ label: "Secondary"
38092
+ }), /*#__PURE__*/jsx(PaletteSwatch, {
38093
+ value: previewTheme.tertiary,
38094
+ label: "Tertiary"
38095
+ }), /*#__PURE__*/jsx(PaletteSwatch, {
38096
+ value: previewTheme.neutral,
38097
+ label: "Neutral"
38098
+ })]
38090
38099
  })]
38091
38100
  })]
38092
38101
  }), /*#__PURE__*/jsx(Button, {