@local-civics/mgmt-ui 0.1.162 → 0.1.164

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.js CHANGED
@@ -532,8 +532,8 @@ const useStyles$n = core.createStyles((theme) => ({
532
532
  }));
533
533
  const SplitButton$4 = (props) => {
534
534
  const { classes, theme } = useStyles$n();
535
- const menuIconColor = theme.colors[theme.primaryColor][theme.colorScheme === "dark" ? 5 : 6];
536
- return /* @__PURE__ */ React__namespace.createElement(core.Group, { noWrap: true, spacing: 0 }, /* @__PURE__ */ React__namespace.createElement(
535
+ theme.colors[theme.primaryColor][theme.colorScheme === "dark" ? 5 : 6];
536
+ return /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "sm" }, /* @__PURE__ */ React__namespace.createElement(
537
537
  core.Button,
538
538
  {
539
539
  component: reactRouterDom.Link,
@@ -542,30 +542,21 @@ const SplitButton$4 = (props) => {
542
542
  variant: "gradient"
543
543
  },
544
544
  "Preview"
545
- ), /* @__PURE__ */ React__namespace.createElement(core.Menu, { transition: "pop", position: "bottom-end" }, /* @__PURE__ */ React__namespace.createElement(core.Menu.Target, null, /* @__PURE__ */ React__namespace.createElement(
546
- core.ActionIcon,
547
- {
548
- variant: "gradient",
549
- color: theme.primaryColor,
550
- size: 36,
551
- className: classes.menuControl
552
- },
553
- /* @__PURE__ */ React__namespace.createElement(icons.IconChevronDown, { size: 16, stroke: 1.5 })
554
- )), /* @__PURE__ */ React__namespace.createElement(core.Menu.Dropdown, null, /* @__PURE__ */ React__namespace.createElement(
555
- core.Menu.Item,
545
+ ), /* @__PURE__ */ React__namespace.createElement(
546
+ core.Button,
556
547
  {
557
- icon: /* @__PURE__ */ React__namespace.createElement(icons.IconClipboardCopy, { size: 16, stroke: 1.5, color: menuIconColor }),
548
+ leftIcon: /* @__PURE__ */ React__namespace.createElement(icons.IconClipboardCopy, { size: 14 }),
558
549
  onClick: props.onCopyLinkClick
559
550
  },
560
- "Copy link"
551
+ "Copy class link"
561
552
  ), /* @__PURE__ */ React__namespace.createElement(
562
- core.Menu.Item,
553
+ core.Button,
563
554
  {
564
- icon: /* @__PURE__ */ React__namespace.createElement(icons.IconTableExport, { size: 16, stroke: 1.5, color: menuIconColor }),
555
+ leftIcon: /* @__PURE__ */ React__namespace.createElement(icons.IconTableExport, { size: 14 }),
565
556
  onClick: props.onExportDataClick
566
557
  },
567
558
  "Export data (.csv)"
568
- ))));
559
+ ));
569
560
  };
570
561
 
571
562
  const useStyles$m = core.createStyles((theme) => ({
@@ -1802,7 +1793,7 @@ const useStyles$e = core.createStyles((theme) => ({
1802
1793
  }));
1803
1794
  const SplitButton$2 = (props) => {
1804
1795
  const { classes, theme } = useStyles$e();
1805
- const menuIconColor = theme.colors[theme.primaryColor][theme.colorScheme === "dark" ? 5 : 6];
1796
+ theme.colors[theme.primaryColor][theme.colorScheme === "dark" ? 5 : 6];
1806
1797
  return /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "sm" }, /* @__PURE__ */ React__namespace.createElement(
1807
1798
  core.Button,
1808
1799
  {
@@ -1811,7 +1802,7 @@ const SplitButton$2 = (props) => {
1811
1802
  onClick: props.onCopyLinkClick
1812
1803
  },
1813
1804
  "Assign"
1814
- ), /* @__PURE__ */ React__namespace.createElement(core.Group, { noWrap: true, spacing: 0 }, /* @__PURE__ */ React__namespace.createElement(
1805
+ ), /* @__PURE__ */ React__namespace.createElement(
1815
1806
  core.Button,
1816
1807
  {
1817
1808
  component: reactRouterDom.Link,
@@ -1820,23 +1811,14 @@ const SplitButton$2 = (props) => {
1820
1811
  variant: "gradient"
1821
1812
  },
1822
1813
  "Preview"
1823
- ), /* @__PURE__ */ React__namespace.createElement(core.Menu, { transition: "pop", position: "bottom-end" }, /* @__PURE__ */ React__namespace.createElement(core.Menu.Target, null, /* @__PURE__ */ React__namespace.createElement(
1824
- core.ActionIcon,
1825
- {
1826
- variant: "gradient",
1827
- color: theme.primaryColor,
1828
- size: 36,
1829
- className: classes.menuControl
1830
- },
1831
- /* @__PURE__ */ React__namespace.createElement(icons.IconChevronDown, { size: 16, stroke: 1.5 })
1832
- )), /* @__PURE__ */ React__namespace.createElement(core.Menu.Dropdown, null, !props.noExport && /* @__PURE__ */ React__namespace.createElement(
1833
- core.Menu.Item,
1814
+ ), /* @__PURE__ */ React__namespace.createElement(
1815
+ core.Button,
1834
1816
  {
1835
- icon: /* @__PURE__ */ React__namespace.createElement(icons.IconTableExport, { size: 16, stroke: 1.5, color: menuIconColor }),
1817
+ leftIcon: /* @__PURE__ */ React__namespace.createElement(icons.IconTableExport, { size: 14 }),
1836
1818
  onClick: props.onExportDataClick
1837
1819
  },
1838
1820
  "Export data (.csv)"
1839
- )))));
1821
+ ));
1840
1822
  };
1841
1823
 
1842
1824
  function Stack$2(props) {
@@ -3253,8 +3235,8 @@ const useStyles$1 = core.createStyles((theme) => ({
3253
3235
  }));
3254
3236
  const SplitButton = (props) => {
3255
3237
  const { classes, theme } = useStyles$1();
3256
- const menuIconColor = theme.colors[theme.primaryColor][theme.colorScheme === "dark" ? 5 : 6];
3257
- return /* @__PURE__ */ React__namespace.createElement(core.Group, { noWrap: true, spacing: 0 }, /* @__PURE__ */ React__namespace.createElement(
3238
+ theme.colors[theme.primaryColor][theme.colorScheme === "dark" ? 5 : 6];
3239
+ return /* @__PURE__ */ React__namespace.createElement(core.Stack, { spacing: "sm" }, /* @__PURE__ */ React__namespace.createElement(
3258
3240
  core.Button,
3259
3241
  {
3260
3242
  component: reactRouterDom.Link,
@@ -3263,30 +3245,21 @@ const SplitButton = (props) => {
3263
3245
  variant: "gradient"
3264
3246
  },
3265
3247
  "Preview"
3266
- ), /* @__PURE__ */ React__namespace.createElement(core.Menu, { transition: "pop", position: "bottom-end" }, /* @__PURE__ */ React__namespace.createElement(core.Menu.Target, null, /* @__PURE__ */ React__namespace.createElement(
3267
- core.ActionIcon,
3268
- {
3269
- variant: "gradient",
3270
- color: theme.primaryColor,
3271
- size: 36,
3272
- className: classes.menuControl
3273
- },
3274
- /* @__PURE__ */ React__namespace.createElement(icons.IconChevronDown, { size: 16, stroke: 1.5 })
3275
- )), /* @__PURE__ */ React__namespace.createElement(core.Menu.Dropdown, null, /* @__PURE__ */ React__namespace.createElement(
3276
- core.Menu.Item,
3248
+ ), /* @__PURE__ */ React__namespace.createElement(
3249
+ core.Button,
3277
3250
  {
3278
- icon: /* @__PURE__ */ React__namespace.createElement(icons.IconClipboardCopy, { size: 16, stroke: 1.5, color: menuIconColor }),
3251
+ leftIcon: /* @__PURE__ */ React__namespace.createElement(icons.IconClipboardCopy, { size: 14 }),
3279
3252
  onClick: props.onCopyLinkClick
3280
3253
  },
3281
- "Copy link"
3254
+ "Copy class link"
3282
3255
  ), /* @__PURE__ */ React__namespace.createElement(
3283
- core.Menu.Item,
3256
+ core.Button,
3284
3257
  {
3285
- icon: /* @__PURE__ */ React__namespace.createElement(icons.IconTableExport, { size: 16, stroke: 1.5, color: menuIconColor }),
3258
+ leftIcon: /* @__PURE__ */ React__namespace.createElement(icons.IconTableExport, { size: 14 }),
3286
3259
  onClick: props.onExportDataClick
3287
3260
  },
3288
3261
  "Export data (.csv)"
3289
- ))));
3262
+ ));
3290
3263
  };
3291
3264
 
3292
3265
  function Stack(props) {