@uniformdev/design-system 19.186.2-alpha.14 → 19.186.4-alpha.29

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
@@ -50,6 +50,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
50
50
  --purple-rain-600: #6340a9;
51
51
 
52
52
  /* raspberry spectrum*/
53
+ --raspberry-beret-50: #fefafc;
53
54
  --raspberry-beret-100: #ffbee1;
54
55
  --raspberry-beret-200: #ff94ce;
55
56
  --raspberry-beret-300: #ff6aba;
@@ -11824,6 +11825,9 @@ var avatarImageStyles = css19`
11824
11825
  height: 100%;
11825
11826
  object-fit: cover;
11826
11827
  `;
11828
+ var avatarSize2xsStyles = css19`
11829
+ width: 1rem;
11830
+ `;
11827
11831
  var avatarSizeXsStyles = css19`
11828
11832
  width: 1.5rem;
11829
11833
  `;
@@ -11837,20 +11841,26 @@ var avatarSizeLgStyles = css19`
11837
11841
  width: 3rem;
11838
11842
  `;
11839
11843
  var avatarSizeXlStyles = css19`
11840
- width: 3.5rem;
11844
+ width: 4rem;
11845
+ `;
11846
+ var avatarSize2xlStyles = css19`
11847
+ width: 5rem;
11841
11848
  `;
11842
11849
 
11843
11850
  // src/components/Avatar/Avatar.tsx
11844
11851
  import { jsx as jsx20, jsxs as jsxs8 } from "@emotion/react/jsx-runtime";
11845
11852
  var avatarSizeStylesMap = {
11853
+ "2xs": avatarSize2xsStyles,
11846
11854
  xs: avatarSizeXsStyles,
11847
11855
  sm: avatarSizeSmStyles,
11848
11856
  md: avatarSizeMdStyles,
11849
11857
  lg: avatarSizeLgStyles,
11850
- xl: avatarSizeXlStyles
11858
+ xl: avatarSizeXlStyles,
11859
+ "2xl": avatarSize2xlStyles
11851
11860
  };
11852
- var Avatar = ({ src, label = "", children, size = "md", ...props }) => {
11853
- return /* @__PURE__ */ jsx20(Tooltip, { title: label, children: /* @__PURE__ */ jsxs8("div", { css: [avatarStyles, avatarSizeStylesMap[size]], ...props, children: [
11861
+ var Avatar = ({ src, label = "", children, size = "md", as = "div", ...props }) => {
11862
+ const Element = as;
11863
+ return /* @__PURE__ */ jsx20(Tooltip, { title: label, children: /* @__PURE__ */ jsxs8(Element, { css: [avatarStyles, avatarSizeStylesMap[size]], ...props, children: [
11854
11864
  !src ? null : /* @__PURE__ */ jsx20("img", { role: "presentation", src, css: avatarImageStyles }),
11855
11865
  children
11856
11866
  ] }) });
@@ -12357,7 +12367,7 @@ var menuItem = (textTheme, forceActive) => css26`
12357
12367
  align-items: center;
12358
12368
  border-radius: var(--rounded-base);
12359
12369
  background: none;
12360
- color: ${textTheme === "base" ? "var(--typography-base)" : "var(--brand-secondary-5)"};
12370
+ color: ${textTheme === "base" ? "var(--typography-base)" : textTheme === "accent-alt" ? "var(--accent-alt-dark)" : "var(--brand-secondary-5)"};
12361
12371
  display: flex;
12362
12372
  padding: var(--spacing-3);
12363
12373
  font-weight: var(--fw-regular);
@@ -16409,6 +16419,7 @@ var DrawerContentInner = css59`
16409
16419
  height: 100%;
16410
16420
  overflow-y: auto;
16411
16421
  ${scrollbarStyles}
16422
+ border-radius: var(--rounded-base);
16412
16423
  `;
16413
16424
  var DrawerContentBtnGroup = css59`
16414
16425
  display: flex;
@@ -18170,10 +18181,10 @@ var loader = css77`
18170
18181
  display: inline-flex;
18171
18182
  justify-content: center;
18172
18183
  `;
18173
- function loadingDot(size) {
18184
+ function loadingDot(size, backgroundColor) {
18174
18185
  const dotSize = size === "lg" ? 8 : 4;
18175
18186
  return css77`
18176
- background-color: var(--gray-700);
18187
+ background-color: ${backgroundColor};
18177
18188
  display: block;
18178
18189
  border-radius: var(--rounded-full);
18179
18190
  animation: ${bounceFade(size)} 0.75s infinite ease-in-out;
@@ -18198,11 +18209,13 @@ function loadingDot(size) {
18198
18209
 
18199
18210
  // src/components/LoadingIndicator/LoadingIndicator.tsx
18200
18211
  import { jsx as jsx98, jsxs as jsxs63 } from "@emotion/react/jsx-runtime";
18201
- var LoadingIndicator = ({
18202
- size = "lg",
18203
- ...props
18204
- }) => {
18205
- const dotStyle = loadingDot(size);
18212
+ var cssColorMap = {
18213
+ gray: "var(--gray-700)",
18214
+ "accent-alt": "var(--accent-alt-dark)"
18215
+ };
18216
+ var LoadingIndicator = ({ size = "lg", color = "gray", ...props }) => {
18217
+ const cssColor = cssColorMap[color];
18218
+ const dotStyle = loadingDot(size, cssColor);
18206
18219
  return /* @__PURE__ */ jsxs63("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
18207
18220
  /* @__PURE__ */ jsx98("span", { css: dotStyle }),
18208
18221
  /* @__PURE__ */ jsx98("span", { css: dotStyle }),
@@ -22952,7 +22965,7 @@ var editorContainer = css101`
22952
22965
  }
22953
22966
 
22954
22967
  &[style*='height:'] {
22955
- min-height: 50px;
22968
+ min-height: calc(3rem + (2 * var(--spacing-sm)));
22956
22969
  max-height: unset;
22957
22970
  }
22958
22971
  `;
@@ -22972,7 +22985,7 @@ var editorPlaceholder = css101`
22972
22985
  left: calc(var(--spacing-sm) + 1px);
22973
22986
  pointer-events: none;
22974
22987
  position: absolute;
22975
- top: var(--spacing-sm);
22988
+ top: calc(1rem + var(--spacing-sm));
22976
22989
  user-select: none;
22977
22990
  `;
22978
22991
  var editorInput = css101`
package/dist/index.d.mts CHANGED
@@ -20211,17 +20211,22 @@ type AnimationFileProps = LottieComponentProps & {
20211
20211
  */
20212
20212
  declare const AnimationFile: ({ label, loop, autoplay, width, height, ...props }: AnimationFileProps) => _emotion_react_jsx_runtime.JSX.Element;
20213
20213
 
20214
- type AvatarSizeProp = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
20214
+ type AvatarSizeProp = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
20215
20215
  type AvatarProps = {
20216
20216
  src?: string;
20217
20217
  label?: string;
20218
20218
  size?: AvatarSizeProp;
20219
- } & React.HTMLAttributes<HTMLDivElement>;
20219
+ /**
20220
+ * The HTML element to render the component as.
20221
+ * @default 'div'
20222
+ */
20223
+ as?: 'div' | 'button';
20224
+ } & React.HTMLAttributes<HTMLDivElement | HTMLButtonElement>;
20220
20225
  /**
20221
20226
  * @description A component to render rounded avatars of a user or an app.
20222
20227
  * @example <Avatar>AB</Avatar>
20223
20228
  */
20224
- declare const Avatar: ({ src, label, children, size, ...props }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
20229
+ declare const Avatar: ({ src, label, children, size, as, ...props }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
20225
20230
 
20226
20231
  type AvatarGroupProps = {
20227
20232
  /**
@@ -22565,13 +22570,15 @@ type ScrollableListItemProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> &
22565
22570
  */
22566
22571
  declare const ScrollableListItem: ({ buttonText, icon, active, disableShadow, ...props }: ScrollableListItemProps) => _emotion_react_jsx_runtime.JSX.Element;
22567
22572
 
22573
+ type LoadingIndicatorProps = {
22574
+ color?: 'gray' | 'accent-alt';
22575
+ size?: 'lg' | 'sm';
22576
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
22568
22577
  /**
22569
22578
  * Loading Indicator
22570
22579
  * @example <LoadingIndicator />
22571
22580
  */
22572
- declare const LoadingIndicator: ({ size, ...props }: HTMLAttributes<HTMLDivElement> & {
22573
- size?: "lg" | "sm";
22574
- }) => _emotion_react_jsx_runtime.JSX.Element;
22581
+ declare const LoadingIndicator: ({ size, color, ...props }: LoadingIndicatorProps) => _emotion_react_jsx_runtime.JSX.Element;
22575
22582
 
22576
22583
  interface LoadingOverlayProps {
22577
22584
  /** sets whether to display the loading overlay components */
@@ -22696,7 +22703,7 @@ type MenuGroupProps = {
22696
22703
  };
22697
22704
  declare const MenuGroup: ({ title, children }: MenuGroupProps) => _emotion_react_jsx_runtime.JSX.Element;
22698
22705
 
22699
- type MenuItemTextThemeProps = 'base' | 'red';
22706
+ type MenuItemTextThemeProps = 'base' | 'red' | 'accent-alt';
22700
22707
  type MenuItemProps = MenuItemProps$1 & {
22701
22708
  /**
22702
22709
  * Sets child elements within the component.
package/dist/index.d.ts CHANGED
@@ -20211,17 +20211,22 @@ type AnimationFileProps = LottieComponentProps & {
20211
20211
  */
20212
20212
  declare const AnimationFile: ({ label, loop, autoplay, width, height, ...props }: AnimationFileProps) => _emotion_react_jsx_runtime.JSX.Element;
20213
20213
 
20214
- type AvatarSizeProp = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
20214
+ type AvatarSizeProp = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
20215
20215
  type AvatarProps = {
20216
20216
  src?: string;
20217
20217
  label?: string;
20218
20218
  size?: AvatarSizeProp;
20219
- } & React.HTMLAttributes<HTMLDivElement>;
20219
+ /**
20220
+ * The HTML element to render the component as.
20221
+ * @default 'div'
20222
+ */
20223
+ as?: 'div' | 'button';
20224
+ } & React.HTMLAttributes<HTMLDivElement | HTMLButtonElement>;
20220
20225
  /**
20221
20226
  * @description A component to render rounded avatars of a user or an app.
20222
20227
  * @example <Avatar>AB</Avatar>
20223
20228
  */
20224
- declare const Avatar: ({ src, label, children, size, ...props }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
20229
+ declare const Avatar: ({ src, label, children, size, as, ...props }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
20225
20230
 
20226
20231
  type AvatarGroupProps = {
20227
20232
  /**
@@ -22565,13 +22570,15 @@ type ScrollableListItemProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> &
22565
22570
  */
22566
22571
  declare const ScrollableListItem: ({ buttonText, icon, active, disableShadow, ...props }: ScrollableListItemProps) => _emotion_react_jsx_runtime.JSX.Element;
22567
22572
 
22573
+ type LoadingIndicatorProps = {
22574
+ color?: 'gray' | 'accent-alt';
22575
+ size?: 'lg' | 'sm';
22576
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
22568
22577
  /**
22569
22578
  * Loading Indicator
22570
22579
  * @example <LoadingIndicator />
22571
22580
  */
22572
- declare const LoadingIndicator: ({ size, ...props }: HTMLAttributes<HTMLDivElement> & {
22573
- size?: "lg" | "sm";
22574
- }) => _emotion_react_jsx_runtime.JSX.Element;
22581
+ declare const LoadingIndicator: ({ size, color, ...props }: LoadingIndicatorProps) => _emotion_react_jsx_runtime.JSX.Element;
22575
22582
 
22576
22583
  interface LoadingOverlayProps {
22577
22584
  /** sets whether to display the loading overlay components */
@@ -22696,7 +22703,7 @@ type MenuGroupProps = {
22696
22703
  };
22697
22704
  declare const MenuGroup: ({ title, children }: MenuGroupProps) => _emotion_react_jsx_runtime.JSX.Element;
22698
22705
 
22699
- type MenuItemTextThemeProps = 'base' | 'red';
22706
+ type MenuItemTextThemeProps = 'base' | 'red' | 'accent-alt';
22700
22707
  type MenuItemProps = MenuItemProps$1 & {
22701
22708
  /**
22702
22709
  * Sets child elements within the component.
package/dist/index.js CHANGED
@@ -1676,6 +1676,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
1676
1676
  --purple-rain-600: #6340a9;
1677
1677
 
1678
1678
  /* raspberry spectrum*/
1679
+ --raspberry-beret-50: #fefafc;
1679
1680
  --raspberry-beret-100: #ffbee1;
1680
1681
  --raspberry-beret-200: #ff94ce;
1681
1682
  --raspberry-beret-300: #ff6aba;
@@ -13510,6 +13511,9 @@ var avatarImageStyles = import_react27.css`
13510
13511
  height: 100%;
13511
13512
  object-fit: cover;
13512
13513
  `;
13514
+ var avatarSize2xsStyles = import_react27.css`
13515
+ width: 1rem;
13516
+ `;
13513
13517
  var avatarSizeXsStyles = import_react27.css`
13514
13518
  width: 1.5rem;
13515
13519
  `;
@@ -13523,20 +13527,26 @@ var avatarSizeLgStyles = import_react27.css`
13523
13527
  width: 3rem;
13524
13528
  `;
13525
13529
  var avatarSizeXlStyles = import_react27.css`
13526
- width: 3.5rem;
13530
+ width: 4rem;
13531
+ `;
13532
+ var avatarSize2xlStyles = import_react27.css`
13533
+ width: 5rem;
13527
13534
  `;
13528
13535
 
13529
13536
  // src/components/Avatar/Avatar.tsx
13530
13537
  var import_jsx_runtime19 = require("@emotion/react/jsx-runtime");
13531
13538
  var avatarSizeStylesMap = {
13539
+ "2xs": avatarSize2xsStyles,
13532
13540
  xs: avatarSizeXsStyles,
13533
13541
  sm: avatarSizeSmStyles,
13534
13542
  md: avatarSizeMdStyles,
13535
13543
  lg: avatarSizeLgStyles,
13536
- xl: avatarSizeXlStyles
13544
+ xl: avatarSizeXlStyles,
13545
+ "2xl": avatarSize2xlStyles
13537
13546
  };
13538
- var Avatar = ({ src, label = "", children, size = "md", ...props }) => {
13539
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Tooltip, { title: label, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { css: [avatarStyles, avatarSizeStylesMap[size]], ...props, children: [
13547
+ var Avatar = ({ src, label = "", children, size = "md", as = "div", ...props }) => {
13548
+ const Element = as;
13549
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Tooltip, { title: label, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Element, { css: [avatarStyles, avatarSizeStylesMap[size]], ...props, children: [
13540
13550
  !src ? null : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("img", { role: "presentation", src, css: avatarImageStyles }),
13541
13551
  children
13542
13552
  ] }) });
@@ -14065,7 +14075,7 @@ var menuItem = (textTheme, forceActive) => import_react34.css`
14065
14075
  align-items: center;
14066
14076
  border-radius: var(--rounded-base);
14067
14077
  background: none;
14068
- color: ${textTheme === "base" ? "var(--typography-base)" : "var(--brand-secondary-5)"};
14078
+ color: ${textTheme === "base" ? "var(--typography-base)" : textTheme === "accent-alt" ? "var(--accent-alt-dark)" : "var(--brand-secondary-5)"};
14069
14079
  display: flex;
14070
14080
  padding: var(--spacing-3);
14071
14081
  font-weight: var(--fw-regular);
@@ -18203,6 +18213,7 @@ var DrawerContentInner = import_react85.css`
18203
18213
  height: 100%;
18204
18214
  overflow-y: auto;
18205
18215
  ${scrollbarStyles}
18216
+ border-radius: var(--rounded-base);
18206
18217
  `;
18207
18218
  var DrawerContentBtnGroup = import_react85.css`
18208
18219
  display: flex;
@@ -20018,10 +20029,10 @@ var loader = import_react111.css`
20018
20029
  display: inline-flex;
20019
20030
  justify-content: center;
20020
20031
  `;
20021
- function loadingDot(size) {
20032
+ function loadingDot(size, backgroundColor) {
20022
20033
  const dotSize = size === "lg" ? 8 : 4;
20023
20034
  return import_react111.css`
20024
- background-color: var(--gray-700);
20035
+ background-color: ${backgroundColor};
20025
20036
  display: block;
20026
20037
  border-radius: var(--rounded-full);
20027
20038
  animation: ${bounceFade(size)} 0.75s infinite ease-in-out;
@@ -20046,11 +20057,13 @@ function loadingDot(size) {
20046
20057
 
20047
20058
  // src/components/LoadingIndicator/LoadingIndicator.tsx
20048
20059
  var import_jsx_runtime98 = require("@emotion/react/jsx-runtime");
20049
- var LoadingIndicator = ({
20050
- size = "lg",
20051
- ...props
20052
- }) => {
20053
- const dotStyle = loadingDot(size);
20060
+ var cssColorMap = {
20061
+ gray: "var(--gray-700)",
20062
+ "accent-alt": "var(--accent-alt-dark)"
20063
+ };
20064
+ var LoadingIndicator = ({ size = "lg", color = "gray", ...props }) => {
20065
+ const cssColor = cssColorMap[color];
20066
+ const dotStyle = loadingDot(size, cssColor);
20054
20067
  return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { role: "alert", css: loader, "data-testid": "loading-indicator", ...props, children: [
20055
20068
  /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { css: dotStyle }),
20056
20069
  /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { css: dotStyle }),
@@ -24794,7 +24807,7 @@ var editorContainer = import_react158.css`
24794
24807
  }
24795
24808
 
24796
24809
  &[style*='height:'] {
24797
- min-height: 50px;
24810
+ min-height: calc(3rem + (2 * var(--spacing-sm)));
24798
24811
  max-height: unset;
24799
24812
  }
24800
24813
  `;
@@ -24814,7 +24827,7 @@ var editorPlaceholder = import_react158.css`
24814
24827
  left: calc(var(--spacing-sm) + 1px);
24815
24828
  pointer-events: none;
24816
24829
  position: absolute;
24817
- top: var(--spacing-sm);
24830
+ top: calc(1rem + var(--spacing-sm));
24818
24831
  user-select: none;
24819
24832
  `;
24820
24833
  var editorInput = import_react158.css`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "19.186.2-alpha.14+2868049c36",
3
+ "version": "19.186.4-alpha.29+03de47b2a8",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "@storybook/react": "8.0.10",
25
25
  "@types/react": "18.3.3",
26
26
  "@types/react-dom": "18.3.0",
27
- "@uniformdev/canvas": "^19.186.2-alpha.14+2868049c36",
28
- "@uniformdev/richtext": "^19.186.2-alpha.14+2868049c36",
27
+ "@uniformdev/canvas": "^19.186.4-alpha.29+03de47b2a8",
28
+ "@uniformdev/richtext": "^19.186.4-alpha.29+03de47b2a8",
29
29
  "autoprefixer": "10.4.16",
30
30
  "hygen": "6.2.11",
31
31
  "postcss": "8.4.38",
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "2868049c365d370abc91762e89dc845c61c02b78"
80
+ "gitHead": "03de47b2a82e853fe3a989a5a60f352c74ed2777"
81
81
  }