@uniformdev/design-system 19.134.3-alpha.10 → 19.135.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/dist/esm/index.js CHANGED
@@ -17061,6 +17061,7 @@ var MediaCard = ({
17061
17061
  menuItems,
17062
17062
  sideSection: sideSection2,
17063
17063
  onClick,
17064
+ buttonType,
17064
17065
  ...cardProps
17065
17066
  }) => {
17066
17067
  const onStopPropogation = useCallback7((e) => {
@@ -17068,7 +17069,7 @@ var MediaCard = ({
17068
17069
  }, []);
17069
17070
  const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
17070
17071
  return /* @__PURE__ */ jsxs62(Card, { css: cardBase, ...cardProps, onClick, "data-testid": "card-item", children: [
17071
- /* @__PURE__ */ jsx93("button", { tabIndex: -1, css: coverWrapper, children: cover }),
17072
+ /* @__PURE__ */ jsx93("button", { tabIndex: -1, css: coverWrapper, type: buttonType, children: cover }),
17072
17073
  /* @__PURE__ */ jsx93("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs62(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
17073
17074
  /* @__PURE__ */ jsxs62(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
17074
17075
  /* @__PURE__ */ jsxs62(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
@@ -21881,6 +21882,7 @@ var SegmentedControl = ({
21881
21882
  {
21882
21883
  css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
21883
21884
  ...props,
21885
+ "data-testid": "segmented-control",
21884
21886
  children: options.map((option, index) => {
21885
21887
  var _a;
21886
21888
  if (!option) {
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
2
2
  import * as React$1 from 'react';
3
- import React__default, { RefObject, HTMLAttributes, ReactNode, ImgHTMLAttributes, SVGProps, CSSProperties, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
3
+ import React__default, { RefObject, HTMLAttributes, ReactNode, ImgHTMLAttributes, SVGProps, CSSProperties, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
4
4
  import { GroupBase } from 'react-select';
5
5
  export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionLabel, GetOptionValue, GroupBase, GroupHeadingProps, GroupProps, MenuListProps, MenuPlacement, MultiValue, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionContext, OptionProps, Options, OptionsOrGroups } from 'react-select';
6
6
  import * as _emotion_react from '@emotion/react';
@@ -22454,9 +22454,10 @@ type MediaCardProps = Omit<CardProps, 'menuItems'> & {
22454
22454
  cover?: React.ReactNode;
22455
22455
  menuItems?: React.ReactElement<MenuItemProps>[] | React.ReactNode;
22456
22456
  sideSection?: React.ReactNode;
22457
+ buttonType?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
22457
22458
  onClick?: () => void;
22458
22459
  };
22459
- declare const MediaCard: ({ title, subtitle, infoPopover, cover, menuItems, sideSection, onClick, ...cardProps }: MediaCardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
22460
+ declare const MediaCard: ({ title, subtitle, infoPopover, cover, menuItems, sideSection, onClick, buttonType, ...cardProps }: MediaCardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
22460
22461
 
22461
22462
  type ModalProps = {
22462
22463
  header?: React__default.ReactNode;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
2
2
  import * as React$1 from 'react';
3
- import React__default, { RefObject, HTMLAttributes, ReactNode, ImgHTMLAttributes, SVGProps, CSSProperties, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
3
+ import React__default, { RefObject, HTMLAttributes, ReactNode, ImgHTMLAttributes, SVGProps, CSSProperties, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
4
4
  import { GroupBase } from 'react-select';
5
5
  export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionLabel, GetOptionValue, GroupBase, GroupHeadingProps, GroupProps, MenuListProps, MenuPlacement, MultiValue, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionContext, OptionProps, Options, OptionsOrGroups } from 'react-select';
6
6
  import * as _emotion_react from '@emotion/react';
@@ -22454,9 +22454,10 @@ type MediaCardProps = Omit<CardProps, 'menuItems'> & {
22454
22454
  cover?: React.ReactNode;
22455
22455
  menuItems?: React.ReactElement<MenuItemProps>[] | React.ReactNode;
22456
22456
  sideSection?: React.ReactNode;
22457
+ buttonType?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
22457
22458
  onClick?: () => void;
22458
22459
  };
22459
- declare const MediaCard: ({ title, subtitle, infoPopover, cover, menuItems, sideSection, onClick, ...cardProps }: MediaCardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
22460
+ declare const MediaCard: ({ title, subtitle, infoPopover, cover, menuItems, sideSection, onClick, buttonType, ...cardProps }: MediaCardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
22460
22461
 
22461
22462
  type ModalProps = {
22462
22463
  header?: React__default.ReactNode;
package/dist/index.js CHANGED
@@ -18882,6 +18882,7 @@ var MediaCard = ({
18882
18882
  menuItems,
18883
18883
  sideSection: sideSection2,
18884
18884
  onClick,
18885
+ buttonType,
18885
18886
  ...cardProps
18886
18887
  }) => {
18887
18888
  const onStopPropogation = (0, import_react105.useCallback)((e) => {
@@ -18889,7 +18890,7 @@ var MediaCard = ({
18889
18890
  }, []);
18890
18891
  const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
18891
18892
  return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(Card, { css: cardBase, ...cardProps, onClick, "data-testid": "card-item", children: [
18892
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("button", { tabIndex: -1, css: coverWrapper, children: cover }),
18893
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("button", { tabIndex: -1, css: coverWrapper, type: buttonType, children: cover }),
18893
18894
  /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { css: contentWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
18894
18895
  /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
18895
18896
  /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(HorizontalRhythm, { gap: "xs", align: "center", css: { maxWidth: "100%" }, children: [
@@ -23730,6 +23731,7 @@ var SegmentedControl = ({
23730
23731
  {
23731
23732
  css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
23732
23733
  ...props,
23734
+ "data-testid": "segmented-control",
23733
23735
  children: options.map((option, index) => {
23734
23736
  var _a;
23735
23737
  if (!option) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "19.134.3-alpha.10+ae656e8e4c",
3
+ "version": "19.135.0",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -23,8 +23,8 @@
23
23
  "@storybook/react": "6.5.16",
24
24
  "@types/react": "18.2.40",
25
25
  "@types/react-dom": "18.2.17",
26
- "@uniformdev/canvas": "^19.134.3-alpha.10+ae656e8e4c",
27
- "@uniformdev/richtext": "^19.134.3-alpha.10+ae656e8e4c",
26
+ "@uniformdev/canvas": "^19.135.0",
27
+ "@uniformdev/richtext": "^19.135.0",
28
28
  "autoprefixer": "10.4.16",
29
29
  "hygen": "6.2.11",
30
30
  "postcss": "8.4.38",
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "ae656e8e4c730dbf960ef43b6c5e9a0b8ba13193"
74
+ "gitHead": "741cd50843c92d550dbff2daffb3a6106a7a3f94"
75
75
  }