@uniformdev/design-system 19.214.1-alpha.10 → 19.214.1-alpha.17
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 +120 -30
- package/dist/index.d.mts +32 -5
- package/dist/index.d.ts +32 -5
- package/dist/index.js +127 -30
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -67,11 +67,9 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
67
67
|
|
|
68
68
|
--action-destructive-default: var(--brand-secondary-5);
|
|
69
69
|
--action-destructive-hover: #e07571;
|
|
70
|
-
--action-destructive-active:
|
|
70
|
+
--action-destructive-active: rgba(210, 50, 45, 0.05); /* #d2322d */
|
|
71
71
|
--action-destructive-disabled: #f87171;
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
73
|
/* tertiary action */
|
|
76
74
|
--tertiary-action-default: var(--gray-700);
|
|
77
75
|
--tertiary-action-hover: var(--gray-600);
|
|
@@ -1061,7 +1059,7 @@ var buttonTertiary = css8`
|
|
|
1061
1059
|
}
|
|
1062
1060
|
|
|
1063
1061
|
${buttonRippleEffect({
|
|
1064
|
-
hoverColor: "
|
|
1062
|
+
hoverColor: "var(--tertiary-action-default)",
|
|
1065
1063
|
activeColor: "var(--tertiary-action-active)"
|
|
1066
1064
|
})}
|
|
1067
1065
|
`;
|
|
@@ -1099,6 +1097,62 @@ var buttonGhostUnimportant = css8`
|
|
|
1099
1097
|
|
|
1100
1098
|
${buttonRippleEffect({ hoverColor: "var(--brand-secondary-2)", activeColor: "var(--gray-100)" })}
|
|
1101
1099
|
`;
|
|
1100
|
+
var buttonSoftPrimary = css8`
|
|
1101
|
+
--local-action-default: 219, 100%, 46%;
|
|
1102
|
+
background-color: hsla(var(--local-action-default), 0.05);
|
|
1103
|
+
color: var(--primary-action-default);
|
|
1104
|
+
transition: outline var(--duration-fast) var(--timing-ease-out);
|
|
1105
|
+
|
|
1106
|
+
&:hover {
|
|
1107
|
+
outline: 1px solid var(--primary-action-hover);
|
|
1108
|
+
}
|
|
1109
|
+
`;
|
|
1110
|
+
var buttonSoftTertiary = css8`
|
|
1111
|
+
--local-action-default: 215, 28%, 17%;
|
|
1112
|
+
background-color: hsla(var(--local-action-default), 0.05);
|
|
1113
|
+
color: var(--gray-800);
|
|
1114
|
+
transition: outline var(--duration-fast) var(--timing-ease-out);
|
|
1115
|
+
outline: 1px solid transparent;
|
|
1116
|
+
|
|
1117
|
+
&:hover,
|
|
1118
|
+
&:focus {
|
|
1119
|
+
outline: 1px solid var(--gray-700);
|
|
1120
|
+
}
|
|
1121
|
+
`;
|
|
1122
|
+
var buttonSoftAlt = css8`
|
|
1123
|
+
--local-action-default: 328, 100%, 40%;
|
|
1124
|
+
background-color: hsla(var(--local-action-default), 0.05);
|
|
1125
|
+
color: var(--accent-alt-dark);
|
|
1126
|
+
transition: outline var(--duration-fast) var(--timing-ease-out);
|
|
1127
|
+
outline: 1px solid transparent;
|
|
1128
|
+
|
|
1129
|
+
&:hover {
|
|
1130
|
+
outline: 1px solid var(--accent-alt-dark);
|
|
1131
|
+
}
|
|
1132
|
+
`;
|
|
1133
|
+
var buttonSoftDestructive = css8`
|
|
1134
|
+
background-color: var(--action-destructive-active);
|
|
1135
|
+
color: var(--action-destructive-default);
|
|
1136
|
+
transition: outline var(--duration-fast) var(--timing-ease-out);
|
|
1137
|
+
outline: 1px solid transparent;
|
|
1138
|
+
|
|
1139
|
+
&:hover,
|
|
1140
|
+
&:focus {
|
|
1141
|
+
outline: 1px solid var(--action-destructive-hover);
|
|
1142
|
+
}
|
|
1143
|
+
`;
|
|
1144
|
+
var buttonSoftAccentPrimary = css8`
|
|
1145
|
+
--local-action-default: 260, 45%, 46%;
|
|
1146
|
+
background-color: hsla(var(--local-action-default), 0.05);
|
|
1147
|
+
color: var(--accent-dark-active);
|
|
1148
|
+
transition: outline var(--duration-fast) var(--timing-ease-out);
|
|
1149
|
+
outline: 1px solid transparent;
|
|
1150
|
+
|
|
1151
|
+
&:hover,
|
|
1152
|
+
&:focus {
|
|
1153
|
+
outline: 1px solid var(--accent-dark-hover);
|
|
1154
|
+
}
|
|
1155
|
+
`;
|
|
1102
1156
|
|
|
1103
1157
|
// src/components/Input/styles/Inputs.styles.ts
|
|
1104
1158
|
import { css as css11 } from "@emotion/react";
|
|
@@ -1479,6 +1533,54 @@ function Tooltip({
|
|
|
1479
1533
|
] });
|
|
1480
1534
|
}
|
|
1481
1535
|
|
|
1536
|
+
// src/components/Button/hooks/useButtonStyles.ts
|
|
1537
|
+
var useButtonStyles = ({ size, ...props }) => {
|
|
1538
|
+
const btnSize = {
|
|
1539
|
+
zero: "padding: 0",
|
|
1540
|
+
xs: "padding: 0.375rem 0.625rem; font-size: var(--fs-xs); line-height: 1.5;",
|
|
1541
|
+
sm: "padding: var(--spacing-sm) 0.75rem; font-size: var(--fs-sm);",
|
|
1542
|
+
md: "padding: var(--spacing-sm) var(--spacing-base); font-size: var(--fs-sm);",
|
|
1543
|
+
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
1544
|
+
xl: "padding: 0.75rem var(--spacing-md)"
|
|
1545
|
+
};
|
|
1546
|
+
if ("variant" in props && props.variant === "soft") {
|
|
1547
|
+
const buttonSoftTheme = {
|
|
1548
|
+
primary: buttonSoftPrimary,
|
|
1549
|
+
tertiary: buttonSoftTertiary,
|
|
1550
|
+
alt: buttonSoftAlt,
|
|
1551
|
+
destructive: buttonSoftDestructive,
|
|
1552
|
+
"accent-primary": buttonSoftAccentPrimary
|
|
1553
|
+
};
|
|
1554
|
+
if (props.theme in buttonSoftTheme) {
|
|
1555
|
+
const theme2 = props.theme;
|
|
1556
|
+
return {
|
|
1557
|
+
buttonTheme: buttonSoftTheme[theme2],
|
|
1558
|
+
btnSize: btnSize[size]
|
|
1559
|
+
};
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
const theme = props.theme;
|
|
1563
|
+
const buttonTheme2 = {
|
|
1564
|
+
primary: buttonPrimary,
|
|
1565
|
+
primaryInvert: buttonPrimaryInvert,
|
|
1566
|
+
"accent-alt-dark": buttonAccentAltDark,
|
|
1567
|
+
"accent-alt-dark-outline": buttonAccentAltDarkOutline,
|
|
1568
|
+
destructive: buttonDestructive,
|
|
1569
|
+
secondary: buttonSecondary,
|
|
1570
|
+
secondaryInvert: buttonSecondaryInvert,
|
|
1571
|
+
ghost: buttonGhost,
|
|
1572
|
+
ghostDestructive: buttonGhostDestructive,
|
|
1573
|
+
unimportant: buttonUnimportant,
|
|
1574
|
+
ghostUnimportant: buttonGhostUnimportant,
|
|
1575
|
+
tertiary: buttonTertiary,
|
|
1576
|
+
tertiaryOutline: buttonTertiaryOutline
|
|
1577
|
+
};
|
|
1578
|
+
return {
|
|
1579
|
+
buttonTheme: buttonTheme2[theme],
|
|
1580
|
+
btnSize: btnSize[size]
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
|
|
1482
1584
|
// src/components/Button/Button.tsx
|
|
1483
1585
|
import { Fragment as Fragment2, jsx as jsx12 } from "@emotion/react/jsx-runtime";
|
|
1484
1586
|
var Button = React3.forwardRef(
|
|
@@ -1493,36 +1595,18 @@ var Button = React3.forwardRef(
|
|
|
1493
1595
|
disabled: disabled2,
|
|
1494
1596
|
...props
|
|
1495
1597
|
}, ref) => {
|
|
1496
|
-
const buttonTheme2 = {
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
"
|
|
1500
|
-
|
|
1501
|
-
destructive: buttonDestructive,
|
|
1502
|
-
secondary: buttonSecondary,
|
|
1503
|
-
secondaryInvert: buttonSecondaryInvert,
|
|
1504
|
-
ghost: buttonGhost,
|
|
1505
|
-
ghostDestructive: buttonGhostDestructive,
|
|
1506
|
-
unimportant: buttonUnimportant,
|
|
1507
|
-
ghostUnimportant: buttonGhostUnimportant,
|
|
1508
|
-
tertiary: buttonTertiary,
|
|
1509
|
-
tertiaryOutline: buttonTertiaryOutline
|
|
1510
|
-
};
|
|
1511
|
-
const btnSize = {
|
|
1512
|
-
zero: "padding: 0",
|
|
1513
|
-
xs: "padding: 0.375rem 0.625rem; font-size: var(--fs-xs); line-height: 1.5;",
|
|
1514
|
-
sm: "padding: var(--spacing-sm) 0.75rem; font-size: var(--fs-sm);",
|
|
1515
|
-
md: "padding: var(--spacing-sm) var(--spacing-base); font-size: var(--fs-sm);",
|
|
1516
|
-
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
1517
|
-
xl: "padding: 0.75rem var(--spacing-md)"
|
|
1518
|
-
};
|
|
1598
|
+
const { btnSize, buttonTheme: buttonTheme2 } = useButtonStyles({
|
|
1599
|
+
theme: buttonType,
|
|
1600
|
+
size,
|
|
1601
|
+
..."variant" in props ? { variant: props.variant } : {}
|
|
1602
|
+
});
|
|
1519
1603
|
const clickHandler = onClick != null ? onClick : shortcut == null ? void 0 : shortcut.handler;
|
|
1520
1604
|
const disabledValue = disabled2 != null ? disabled2 : shortcut == null ? void 0 : shortcut.disabled;
|
|
1521
1605
|
const buttonContent = /* @__PURE__ */ jsx12(
|
|
1522
1606
|
BaseButton,
|
|
1523
1607
|
{
|
|
1524
1608
|
ref,
|
|
1525
|
-
css: [button, buttonTheme2
|
|
1609
|
+
css: [button, buttonTheme2, btnSize],
|
|
1526
1610
|
...props,
|
|
1527
1611
|
onClick: clickHandler,
|
|
1528
1612
|
disabled: disabledValue,
|
|
@@ -18815,7 +18899,7 @@ var ObjectListItemContentWrapper = css80`
|
|
|
18815
18899
|
flex-grow: 1;
|
|
18816
18900
|
|
|
18817
18901
|
${cq("34rem")} {
|
|
18818
|
-
grid-template-columns: auto 1fr auto;
|
|
18902
|
+
grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
|
|
18819
18903
|
}
|
|
18820
18904
|
`;
|
|
18821
18905
|
var ObjectListItemRightSlot = css80`
|
|
@@ -18916,7 +19000,7 @@ var ObjectListItem2 = (props) => {
|
|
|
18916
19000
|
/* @__PURE__ */ jsx105(HorizontalRhythm, { gap: "sm", align: "center", children: dragHandle }),
|
|
18917
19001
|
/* @__PURE__ */ jsxs70("div", { css: ObjectListItemContentWrapper, children: [
|
|
18918
19002
|
/* @__PURE__ */ jsx105(HorizontalRhythm, { gap: "sm", align: "center", children: cover }),
|
|
18919
|
-
/* @__PURE__ */ jsxs70(VerticalRhythm, { gap: "0", children: [
|
|
19003
|
+
/* @__PURE__ */ jsxs70(VerticalRhythm, { gap: "0", justify: renderAs === "multi" ? "flex-start" : "center", children: [
|
|
18920
19004
|
/* @__PURE__ */ jsx105(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: header2 }),
|
|
18921
19005
|
renderAs === "multi" ? props.children : null
|
|
18922
19006
|
] }),
|
|
@@ -24117,6 +24201,11 @@ export {
|
|
|
24117
24201
|
buttonRippleEffect,
|
|
24118
24202
|
buttonSecondary,
|
|
24119
24203
|
buttonSecondaryInvert,
|
|
24204
|
+
buttonSoftAccentPrimary,
|
|
24205
|
+
buttonSoftAlt,
|
|
24206
|
+
buttonSoftDestructive,
|
|
24207
|
+
buttonSoftPrimary,
|
|
24208
|
+
buttonSoftTertiary,
|
|
24120
24209
|
buttonTertiary,
|
|
24121
24210
|
buttonTertiaryOutline,
|
|
24122
24211
|
buttonUnimportant,
|
|
@@ -24181,6 +24270,7 @@ export {
|
|
|
24181
24270
|
uniformLocaleDisabledIcon,
|
|
24182
24271
|
uniformLocaleIcon,
|
|
24183
24272
|
useBreakpoint,
|
|
24273
|
+
useButtonStyles,
|
|
24184
24274
|
useCloseCurrentDrawer,
|
|
24185
24275
|
useCurrentDrawer,
|
|
24186
24276
|
useCurrentTab,
|
package/dist/index.d.mts
CHANGED
|
@@ -121,6 +121,11 @@ declare const buttonGhostDestructive: _emotion_react.SerializedStyles;
|
|
|
121
121
|
declare const buttonTertiary: _emotion_react.SerializedStyles;
|
|
122
122
|
declare const buttonTertiaryOutline: _emotion_react.SerializedStyles;
|
|
123
123
|
declare const buttonGhostUnimportant: _emotion_react.SerializedStyles;
|
|
124
|
+
declare const buttonSoftPrimary: _emotion_react.SerializedStyles;
|
|
125
|
+
declare const buttonSoftTertiary: _emotion_react.SerializedStyles;
|
|
126
|
+
declare const buttonSoftAlt: _emotion_react.SerializedStyles;
|
|
127
|
+
declare const buttonSoftDestructive: _emotion_react.SerializedStyles;
|
|
128
|
+
declare const buttonSoftAccentPrimary: _emotion_react.SerializedStyles;
|
|
124
129
|
|
|
125
130
|
declare const labelText: _emotion_react.SerializedStyles;
|
|
126
131
|
declare const input: (whiteSpaceWrap: "wrap" | "nowrap") => _emotion_react.SerializedStyles;
|
|
@@ -20370,10 +20375,27 @@ type TooltipProps = TooltipOptions & {
|
|
|
20370
20375
|
} & Pick<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
20371
20376
|
declare function Tooltip({ children, title, placement, visible, withoutPortal, ...props }: TooltipProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
20372
20377
|
|
|
20373
|
-
/** Button themes that are available to use with our brand */
|
|
20374
|
-
type ButtonThemeProps$1 = 'primary' | 'secondary' | 'accent-alt-dark' | 'accent-alt-dark-outline' | 'destructive' | 'tertiary' | 'tertiaryOutline' | 'unimportant' | 'ghost' | 'ghostDestructive' | 'primaryInvert' | 'secondaryInvert' | 'ghostUnimportant';
|
|
20375
20378
|
/** Button sizes that are available to use with our brand */
|
|
20376
20379
|
type ButtonSizeProps$1 = 'zero' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
20380
|
+
/** Button themes that are available to use with our brand */
|
|
20381
|
+
type ButtonThemeProps$1 = 'primary' | 'secondary' | 'accent-alt-dark' | 'accent-alt-dark-outline' | 'destructive' | 'tertiary' | 'tertiaryOutline' | 'unimportant' | 'ghost' | 'ghostDestructive' | 'primaryInvert' | 'secondaryInvert' | 'ghostUnimportant';
|
|
20382
|
+
/** @deprecated - Beta Button themes for the soft variant */
|
|
20383
|
+
type ButtonSoftThemeProps = 'primary' | 'tertiary' | 'alt' | 'destructive' | 'accent-primary';
|
|
20384
|
+
type ButtonStylesProps = ButtonDefaultStylesProps | ButtonSoftStylesProps;
|
|
20385
|
+
type ButtonDefaultStylesProps = {
|
|
20386
|
+
theme: ButtonThemeProps$1;
|
|
20387
|
+
size: ButtonSizeProps$1;
|
|
20388
|
+
};
|
|
20389
|
+
type ButtonSoftStylesProps = {
|
|
20390
|
+
theme: ButtonSoftThemeProps;
|
|
20391
|
+
size: ButtonSizeProps$1;
|
|
20392
|
+
variant?: 'soft' | undefined;
|
|
20393
|
+
};
|
|
20394
|
+
declare const useButtonStyles: ({ size, ...props }: ButtonStylesProps) => {
|
|
20395
|
+
buttonTheme: SerializedStyles;
|
|
20396
|
+
btnSize: string;
|
|
20397
|
+
};
|
|
20398
|
+
|
|
20377
20399
|
type ButtonProps = ButtonProps$1 & {
|
|
20378
20400
|
/** sets the theme of the button
|
|
20379
20401
|
* @default "primary"
|
|
@@ -20401,11 +20423,16 @@ type ButtonProps = ButtonProps$1 & {
|
|
|
20401
20423
|
*/
|
|
20402
20424
|
shortcut?: ShortcutReference;
|
|
20403
20425
|
};
|
|
20426
|
+
/** @deprecated - Beta Button component using the soft variant */
|
|
20427
|
+
type ButtonWithVariantProps = Omit<ButtonProps, 'buttonType'> & {
|
|
20428
|
+
variant?: 'soft';
|
|
20429
|
+
buttonType?: ButtonSoftThemeProps;
|
|
20430
|
+
};
|
|
20404
20431
|
/**
|
|
20405
20432
|
* Uniform Button Component
|
|
20406
20433
|
* @example <Button buttonType="secondary" size="md" onClick={() => alert('hello world!')}>Click me</Button>
|
|
20407
20434
|
*/
|
|
20408
|
-
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
20435
|
+
declare const Button: React$1.ForwardRefExoticComponent<(Omit<ButtonProps, "ref"> | Omit<ButtonWithVariantProps, "ref">) & React$1.RefAttributes<HTMLButtonElement>>;
|
|
20409
20436
|
|
|
20410
20437
|
declare const allSupportedIcons: {
|
|
20411
20438
|
'rectangle-rounded': (props: _react_icons_all_files.IconBaseProps) => React.JSX.Element;
|
|
@@ -22912,7 +22939,7 @@ type ObjectItemLoadingSkeletonProps = {
|
|
|
22912
22939
|
declare const ObjectItemLoadingSkeleton: ({ showCover, renderAs, }: ObjectItemLoadingSkeletonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
22913
22940
|
|
|
22914
22941
|
/** @deprecated - Beta Object list item component */
|
|
22915
|
-
type ObjectListItemProps = ObjectListItemSingleProps | (ObjectListItemMultiProps & HTMLAttributes<HTMLDivElement>);
|
|
22942
|
+
type ObjectListItemProps = (ObjectListItemSingleProps & HTMLAttributes<HTMLDivElement>) | (ObjectListItemMultiProps & HTMLAttributes<HTMLDivElement>);
|
|
22916
22943
|
type ObjectListItemSingleProps = Omit<ObjectItemProps, 'cover' | 'children'> & {
|
|
22917
22944
|
cover?: ReactNode;
|
|
22918
22945
|
dragHandle?: ReactNode;
|
|
@@ -23944,4 +23971,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
23944
23971
|
};
|
|
23945
23972
|
declare const StatusBullet: ({ status, hideText, size, message, compact, ...props }: StatusBulletProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
23946
23973
|
|
|
23947
|
-
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterBgColors, type CounterIconColors, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, DragHandle, type DraggableHandleProps, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputCreatableComboBox, type InputCreatableComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, KeyValueInput, type KeyValueInputProps, type KeyValueItem, Label, LabelLeadingIcon, type LabelLeadingIconProps, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, type ModalProps, MultilineChip, type MultilineChipProps, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, ObjectGridItemLoadingSkeleton, type ObjectGridItemProps, type ObjectGridItemTitleProps, ObjectItemLoadingSkeleton, type ObjectItemLoadingSkeletonProps, ObjectListItem, ObjectListItemContainer, ObjectListItemCover, type ObjectListItemCoverProps, ObjectListItemHeading, type ObjectListItemHeadingProps, type ObjectListItemProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, type SerializedLinkNode, type ShortcutReference, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, convertComboBoxGroupsToSelectableGroups, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getComboBoxSelectedSelectableGroups, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spin, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, uniformAiIcon, uniformComponentIcon, uniformComponentPatternIcon, uniformCompositionPatternIcon, uniformConditionalValuesIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, uniformLocaleDisabledIcon, uniformLocaleIcon, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|
|
23974
|
+
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonSoftThemeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterBgColors, type CounterIconColors, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, DragHandle, type DraggableHandleProps, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputCreatableComboBox, type InputCreatableComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, KeyValueInput, type KeyValueInputProps, type KeyValueItem, Label, LabelLeadingIcon, type LabelLeadingIconProps, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, type ModalProps, MultilineChip, type MultilineChipProps, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, ObjectGridItemLoadingSkeleton, type ObjectGridItemProps, type ObjectGridItemTitleProps, ObjectItemLoadingSkeleton, type ObjectItemLoadingSkeletonProps, ObjectListItem, ObjectListItemContainer, ObjectListItemCover, type ObjectListItemCoverProps, ObjectListItemHeading, type ObjectListItemHeadingProps, type ObjectListItemProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, type SerializedLinkNode, type ShortcutReference, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonSoftAccentPrimary, buttonSoftAlt, buttonSoftDestructive, buttonSoftPrimary, buttonSoftTertiary, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, convertComboBoxGroupsToSelectableGroups, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getComboBoxSelectedSelectableGroups, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spin, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, uniformAiIcon, uniformComponentIcon, uniformComponentPatternIcon, uniformCompositionPatternIcon, uniformConditionalValuesIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, uniformLocaleDisabledIcon, uniformLocaleIcon, useBreakpoint, useButtonStyles, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|
package/dist/index.d.ts
CHANGED
|
@@ -121,6 +121,11 @@ declare const buttonGhostDestructive: _emotion_react.SerializedStyles;
|
|
|
121
121
|
declare const buttonTertiary: _emotion_react.SerializedStyles;
|
|
122
122
|
declare const buttonTertiaryOutline: _emotion_react.SerializedStyles;
|
|
123
123
|
declare const buttonGhostUnimportant: _emotion_react.SerializedStyles;
|
|
124
|
+
declare const buttonSoftPrimary: _emotion_react.SerializedStyles;
|
|
125
|
+
declare const buttonSoftTertiary: _emotion_react.SerializedStyles;
|
|
126
|
+
declare const buttonSoftAlt: _emotion_react.SerializedStyles;
|
|
127
|
+
declare const buttonSoftDestructive: _emotion_react.SerializedStyles;
|
|
128
|
+
declare const buttonSoftAccentPrimary: _emotion_react.SerializedStyles;
|
|
124
129
|
|
|
125
130
|
declare const labelText: _emotion_react.SerializedStyles;
|
|
126
131
|
declare const input: (whiteSpaceWrap: "wrap" | "nowrap") => _emotion_react.SerializedStyles;
|
|
@@ -20370,10 +20375,27 @@ type TooltipProps = TooltipOptions & {
|
|
|
20370
20375
|
} & Pick<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
20371
20376
|
declare function Tooltip({ children, title, placement, visible, withoutPortal, ...props }: TooltipProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
20372
20377
|
|
|
20373
|
-
/** Button themes that are available to use with our brand */
|
|
20374
|
-
type ButtonThemeProps$1 = 'primary' | 'secondary' | 'accent-alt-dark' | 'accent-alt-dark-outline' | 'destructive' | 'tertiary' | 'tertiaryOutline' | 'unimportant' | 'ghost' | 'ghostDestructive' | 'primaryInvert' | 'secondaryInvert' | 'ghostUnimportant';
|
|
20375
20378
|
/** Button sizes that are available to use with our brand */
|
|
20376
20379
|
type ButtonSizeProps$1 = 'zero' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
20380
|
+
/** Button themes that are available to use with our brand */
|
|
20381
|
+
type ButtonThemeProps$1 = 'primary' | 'secondary' | 'accent-alt-dark' | 'accent-alt-dark-outline' | 'destructive' | 'tertiary' | 'tertiaryOutline' | 'unimportant' | 'ghost' | 'ghostDestructive' | 'primaryInvert' | 'secondaryInvert' | 'ghostUnimportant';
|
|
20382
|
+
/** @deprecated - Beta Button themes for the soft variant */
|
|
20383
|
+
type ButtonSoftThemeProps = 'primary' | 'tertiary' | 'alt' | 'destructive' | 'accent-primary';
|
|
20384
|
+
type ButtonStylesProps = ButtonDefaultStylesProps | ButtonSoftStylesProps;
|
|
20385
|
+
type ButtonDefaultStylesProps = {
|
|
20386
|
+
theme: ButtonThemeProps$1;
|
|
20387
|
+
size: ButtonSizeProps$1;
|
|
20388
|
+
};
|
|
20389
|
+
type ButtonSoftStylesProps = {
|
|
20390
|
+
theme: ButtonSoftThemeProps;
|
|
20391
|
+
size: ButtonSizeProps$1;
|
|
20392
|
+
variant?: 'soft' | undefined;
|
|
20393
|
+
};
|
|
20394
|
+
declare const useButtonStyles: ({ size, ...props }: ButtonStylesProps) => {
|
|
20395
|
+
buttonTheme: SerializedStyles;
|
|
20396
|
+
btnSize: string;
|
|
20397
|
+
};
|
|
20398
|
+
|
|
20377
20399
|
type ButtonProps = ButtonProps$1 & {
|
|
20378
20400
|
/** sets the theme of the button
|
|
20379
20401
|
* @default "primary"
|
|
@@ -20401,11 +20423,16 @@ type ButtonProps = ButtonProps$1 & {
|
|
|
20401
20423
|
*/
|
|
20402
20424
|
shortcut?: ShortcutReference;
|
|
20403
20425
|
};
|
|
20426
|
+
/** @deprecated - Beta Button component using the soft variant */
|
|
20427
|
+
type ButtonWithVariantProps = Omit<ButtonProps, 'buttonType'> & {
|
|
20428
|
+
variant?: 'soft';
|
|
20429
|
+
buttonType?: ButtonSoftThemeProps;
|
|
20430
|
+
};
|
|
20404
20431
|
/**
|
|
20405
20432
|
* Uniform Button Component
|
|
20406
20433
|
* @example <Button buttonType="secondary" size="md" onClick={() => alert('hello world!')}>Click me</Button>
|
|
20407
20434
|
*/
|
|
20408
|
-
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
20435
|
+
declare const Button: React$1.ForwardRefExoticComponent<(Omit<ButtonProps, "ref"> | Omit<ButtonWithVariantProps, "ref">) & React$1.RefAttributes<HTMLButtonElement>>;
|
|
20409
20436
|
|
|
20410
20437
|
declare const allSupportedIcons: {
|
|
20411
20438
|
'rectangle-rounded': (props: _react_icons_all_files.IconBaseProps) => React.JSX.Element;
|
|
@@ -22912,7 +22939,7 @@ type ObjectItemLoadingSkeletonProps = {
|
|
|
22912
22939
|
declare const ObjectItemLoadingSkeleton: ({ showCover, renderAs, }: ObjectItemLoadingSkeletonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
22913
22940
|
|
|
22914
22941
|
/** @deprecated - Beta Object list item component */
|
|
22915
|
-
type ObjectListItemProps = ObjectListItemSingleProps | (ObjectListItemMultiProps & HTMLAttributes<HTMLDivElement>);
|
|
22942
|
+
type ObjectListItemProps = (ObjectListItemSingleProps & HTMLAttributes<HTMLDivElement>) | (ObjectListItemMultiProps & HTMLAttributes<HTMLDivElement>);
|
|
22916
22943
|
type ObjectListItemSingleProps = Omit<ObjectItemProps, 'cover' | 'children'> & {
|
|
22917
22944
|
cover?: ReactNode;
|
|
22918
22945
|
dragHandle?: ReactNode;
|
|
@@ -23944,4 +23971,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
23944
23971
|
};
|
|
23945
23972
|
declare const StatusBullet: ({ status, hideText, size, message, compact, ...props }: StatusBulletProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
23946
23973
|
|
|
23947
|
-
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterBgColors, type CounterIconColors, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, DragHandle, type DraggableHandleProps, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputCreatableComboBox, type InputCreatableComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, KeyValueInput, type KeyValueInputProps, type KeyValueItem, Label, LabelLeadingIcon, type LabelLeadingIconProps, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, type ModalProps, MultilineChip, type MultilineChipProps, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, ObjectGridItemLoadingSkeleton, type ObjectGridItemProps, type ObjectGridItemTitleProps, ObjectItemLoadingSkeleton, type ObjectItemLoadingSkeletonProps, ObjectListItem, ObjectListItemContainer, ObjectListItemCover, type ObjectListItemCoverProps, ObjectListItemHeading, type ObjectListItemHeadingProps, type ObjectListItemProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, type SerializedLinkNode, type ShortcutReference, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, convertComboBoxGroupsToSelectableGroups, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getComboBoxSelectedSelectableGroups, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spin, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, uniformAiIcon, uniformComponentIcon, uniformComponentPatternIcon, uniformCompositionPatternIcon, uniformConditionalValuesIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, uniformLocaleDisabledIcon, uniformLocaleIcon, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|
|
23974
|
+
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonSoftThemeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterBgColors, type CounterIconColors, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, DragHandle, type DraggableHandleProps, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputCreatableComboBox, type InputCreatableComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, KeyValueInput, type KeyValueInputProps, type KeyValueItem, Label, LabelLeadingIcon, type LabelLeadingIconProps, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, type ModalProps, MultilineChip, type MultilineChipProps, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, ObjectGridItemLoadingSkeleton, type ObjectGridItemProps, type ObjectGridItemTitleProps, ObjectItemLoadingSkeleton, type ObjectItemLoadingSkeletonProps, ObjectListItem, ObjectListItemContainer, ObjectListItemCover, type ObjectListItemCoverProps, ObjectListItemHeading, type ObjectListItemHeadingProps, type ObjectListItemProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, type SerializedLinkNode, type ShortcutReference, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonSoftAccentPrimary, buttonSoftAlt, buttonSoftDestructive, buttonSoftPrimary, buttonSoftTertiary, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, convertComboBoxGroupsToSelectableGroups, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getComboBoxSelectedSelectableGroups, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spin, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, uniformAiIcon, uniformComponentIcon, uniformComponentPatternIcon, uniformCompositionPatternIcon, uniformConditionalValuesIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, uniformLocaleDisabledIcon, uniformLocaleIcon, useBreakpoint, useButtonStyles, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|
package/dist/index.js
CHANGED
|
@@ -1543,6 +1543,11 @@ __export(src_exports, {
|
|
|
1543
1543
|
buttonRippleEffect: () => buttonRippleEffect,
|
|
1544
1544
|
buttonSecondary: () => buttonSecondary,
|
|
1545
1545
|
buttonSecondaryInvert: () => buttonSecondaryInvert,
|
|
1546
|
+
buttonSoftAccentPrimary: () => buttonSoftAccentPrimary,
|
|
1547
|
+
buttonSoftAlt: () => buttonSoftAlt,
|
|
1548
|
+
buttonSoftDestructive: () => buttonSoftDestructive,
|
|
1549
|
+
buttonSoftPrimary: () => buttonSoftPrimary,
|
|
1550
|
+
buttonSoftTertiary: () => buttonSoftTertiary,
|
|
1546
1551
|
buttonTertiary: () => buttonTertiary,
|
|
1547
1552
|
buttonTertiaryOutline: () => buttonTertiaryOutline,
|
|
1548
1553
|
buttonUnimportant: () => buttonUnimportant,
|
|
@@ -1607,6 +1612,7 @@ __export(src_exports, {
|
|
|
1607
1612
|
uniformLocaleDisabledIcon: () => uniformLocaleDisabledIcon,
|
|
1608
1613
|
uniformLocaleIcon: () => uniformLocaleIcon,
|
|
1609
1614
|
useBreakpoint: () => useBreakpoint,
|
|
1615
|
+
useButtonStyles: () => useButtonStyles,
|
|
1610
1616
|
useCloseCurrentDrawer: () => useCloseCurrentDrawer,
|
|
1611
1617
|
useCurrentDrawer: () => useCurrentDrawer,
|
|
1612
1618
|
useCurrentTab: () => useCurrentTab,
|
|
@@ -1695,11 +1701,9 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
1695
1701
|
|
|
1696
1702
|
--action-destructive-default: var(--brand-secondary-5);
|
|
1697
1703
|
--action-destructive-hover: #e07571;
|
|
1698
|
-
--action-destructive-active:
|
|
1704
|
+
--action-destructive-active: rgba(210, 50, 45, 0.05); /* #d2322d */
|
|
1699
1705
|
--action-destructive-disabled: #f87171;
|
|
1700
1706
|
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
1707
|
/* tertiary action */
|
|
1704
1708
|
--tertiary-action-default: var(--gray-700);
|
|
1705
1709
|
--tertiary-action-hover: var(--gray-600);
|
|
@@ -2720,7 +2724,7 @@ var buttonTertiary = import_react10.css`
|
|
|
2720
2724
|
}
|
|
2721
2725
|
|
|
2722
2726
|
${buttonRippleEffect({
|
|
2723
|
-
hoverColor: "
|
|
2727
|
+
hoverColor: "var(--tertiary-action-default)",
|
|
2724
2728
|
activeColor: "var(--tertiary-action-active)"
|
|
2725
2729
|
})}
|
|
2726
2730
|
`;
|
|
@@ -2758,6 +2762,62 @@ var buttonGhostUnimportant = import_react10.css`
|
|
|
2758
2762
|
|
|
2759
2763
|
${buttonRippleEffect({ hoverColor: "var(--brand-secondary-2)", activeColor: "var(--gray-100)" })}
|
|
2760
2764
|
`;
|
|
2765
|
+
var buttonSoftPrimary = import_react10.css`
|
|
2766
|
+
--local-action-default: 219, 100%, 46%;
|
|
2767
|
+
background-color: hsla(var(--local-action-default), 0.05);
|
|
2768
|
+
color: var(--primary-action-default);
|
|
2769
|
+
transition: outline var(--duration-fast) var(--timing-ease-out);
|
|
2770
|
+
|
|
2771
|
+
&:hover {
|
|
2772
|
+
outline: 1px solid var(--primary-action-hover);
|
|
2773
|
+
}
|
|
2774
|
+
`;
|
|
2775
|
+
var buttonSoftTertiary = import_react10.css`
|
|
2776
|
+
--local-action-default: 215, 28%, 17%;
|
|
2777
|
+
background-color: hsla(var(--local-action-default), 0.05);
|
|
2778
|
+
color: var(--gray-800);
|
|
2779
|
+
transition: outline var(--duration-fast) var(--timing-ease-out);
|
|
2780
|
+
outline: 1px solid transparent;
|
|
2781
|
+
|
|
2782
|
+
&:hover,
|
|
2783
|
+
&:focus {
|
|
2784
|
+
outline: 1px solid var(--gray-700);
|
|
2785
|
+
}
|
|
2786
|
+
`;
|
|
2787
|
+
var buttonSoftAlt = import_react10.css`
|
|
2788
|
+
--local-action-default: 328, 100%, 40%;
|
|
2789
|
+
background-color: hsla(var(--local-action-default), 0.05);
|
|
2790
|
+
color: var(--accent-alt-dark);
|
|
2791
|
+
transition: outline var(--duration-fast) var(--timing-ease-out);
|
|
2792
|
+
outline: 1px solid transparent;
|
|
2793
|
+
|
|
2794
|
+
&:hover {
|
|
2795
|
+
outline: 1px solid var(--accent-alt-dark);
|
|
2796
|
+
}
|
|
2797
|
+
`;
|
|
2798
|
+
var buttonSoftDestructive = import_react10.css`
|
|
2799
|
+
background-color: var(--action-destructive-active);
|
|
2800
|
+
color: var(--action-destructive-default);
|
|
2801
|
+
transition: outline var(--duration-fast) var(--timing-ease-out);
|
|
2802
|
+
outline: 1px solid transparent;
|
|
2803
|
+
|
|
2804
|
+
&:hover,
|
|
2805
|
+
&:focus {
|
|
2806
|
+
outline: 1px solid var(--action-destructive-hover);
|
|
2807
|
+
}
|
|
2808
|
+
`;
|
|
2809
|
+
var buttonSoftAccentPrimary = import_react10.css`
|
|
2810
|
+
--local-action-default: 260, 45%, 46%;
|
|
2811
|
+
background-color: hsla(var(--local-action-default), 0.05);
|
|
2812
|
+
color: var(--accent-dark-active);
|
|
2813
|
+
transition: outline var(--duration-fast) var(--timing-ease-out);
|
|
2814
|
+
outline: 1px solid transparent;
|
|
2815
|
+
|
|
2816
|
+
&:hover,
|
|
2817
|
+
&:focus {
|
|
2818
|
+
outline: 1px solid var(--accent-dark-hover);
|
|
2819
|
+
}
|
|
2820
|
+
`;
|
|
2761
2821
|
|
|
2762
2822
|
// src/components/Input/styles/Inputs.styles.ts
|
|
2763
2823
|
init_emotion_jsx_shim();
|
|
@@ -3144,6 +3204,55 @@ function Tooltip({
|
|
|
3144
3204
|
] });
|
|
3145
3205
|
}
|
|
3146
3206
|
|
|
3207
|
+
// src/components/Button/hooks/useButtonStyles.ts
|
|
3208
|
+
init_emotion_jsx_shim();
|
|
3209
|
+
var useButtonStyles = ({ size, ...props }) => {
|
|
3210
|
+
const btnSize = {
|
|
3211
|
+
zero: "padding: 0",
|
|
3212
|
+
xs: "padding: 0.375rem 0.625rem; font-size: var(--fs-xs); line-height: 1.5;",
|
|
3213
|
+
sm: "padding: var(--spacing-sm) 0.75rem; font-size: var(--fs-sm);",
|
|
3214
|
+
md: "padding: var(--spacing-sm) var(--spacing-base); font-size: var(--fs-sm);",
|
|
3215
|
+
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
3216
|
+
xl: "padding: 0.75rem var(--spacing-md)"
|
|
3217
|
+
};
|
|
3218
|
+
if ("variant" in props && props.variant === "soft") {
|
|
3219
|
+
const buttonSoftTheme = {
|
|
3220
|
+
primary: buttonSoftPrimary,
|
|
3221
|
+
tertiary: buttonSoftTertiary,
|
|
3222
|
+
alt: buttonSoftAlt,
|
|
3223
|
+
destructive: buttonSoftDestructive,
|
|
3224
|
+
"accent-primary": buttonSoftAccentPrimary
|
|
3225
|
+
};
|
|
3226
|
+
if (props.theme in buttonSoftTheme) {
|
|
3227
|
+
const theme2 = props.theme;
|
|
3228
|
+
return {
|
|
3229
|
+
buttonTheme: buttonSoftTheme[theme2],
|
|
3230
|
+
btnSize: btnSize[size]
|
|
3231
|
+
};
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
const theme = props.theme;
|
|
3235
|
+
const buttonTheme2 = {
|
|
3236
|
+
primary: buttonPrimary,
|
|
3237
|
+
primaryInvert: buttonPrimaryInvert,
|
|
3238
|
+
"accent-alt-dark": buttonAccentAltDark,
|
|
3239
|
+
"accent-alt-dark-outline": buttonAccentAltDarkOutline,
|
|
3240
|
+
destructive: buttonDestructive,
|
|
3241
|
+
secondary: buttonSecondary,
|
|
3242
|
+
secondaryInvert: buttonSecondaryInvert,
|
|
3243
|
+
ghost: buttonGhost,
|
|
3244
|
+
ghostDestructive: buttonGhostDestructive,
|
|
3245
|
+
unimportant: buttonUnimportant,
|
|
3246
|
+
ghostUnimportant: buttonGhostUnimportant,
|
|
3247
|
+
tertiary: buttonTertiary,
|
|
3248
|
+
tertiaryOutline: buttonTertiaryOutline
|
|
3249
|
+
};
|
|
3250
|
+
return {
|
|
3251
|
+
buttonTheme: buttonTheme2[theme],
|
|
3252
|
+
btnSize: btnSize[size]
|
|
3253
|
+
};
|
|
3254
|
+
};
|
|
3255
|
+
|
|
3147
3256
|
// src/components/Button/Button.tsx
|
|
3148
3257
|
var import_jsx_runtime11 = require("@emotion/react/jsx-runtime");
|
|
3149
3258
|
var Button = React3.forwardRef(
|
|
@@ -3158,36 +3267,18 @@ var Button = React3.forwardRef(
|
|
|
3158
3267
|
disabled: disabled2,
|
|
3159
3268
|
...props
|
|
3160
3269
|
}, ref) => {
|
|
3161
|
-
const buttonTheme2 = {
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
"
|
|
3165
|
-
|
|
3166
|
-
destructive: buttonDestructive,
|
|
3167
|
-
secondary: buttonSecondary,
|
|
3168
|
-
secondaryInvert: buttonSecondaryInvert,
|
|
3169
|
-
ghost: buttonGhost,
|
|
3170
|
-
ghostDestructive: buttonGhostDestructive,
|
|
3171
|
-
unimportant: buttonUnimportant,
|
|
3172
|
-
ghostUnimportant: buttonGhostUnimportant,
|
|
3173
|
-
tertiary: buttonTertiary,
|
|
3174
|
-
tertiaryOutline: buttonTertiaryOutline
|
|
3175
|
-
};
|
|
3176
|
-
const btnSize = {
|
|
3177
|
-
zero: "padding: 0",
|
|
3178
|
-
xs: "padding: 0.375rem 0.625rem; font-size: var(--fs-xs); line-height: 1.5;",
|
|
3179
|
-
sm: "padding: var(--spacing-sm) 0.75rem; font-size: var(--fs-sm);",
|
|
3180
|
-
md: "padding: var(--spacing-sm) var(--spacing-base); font-size: var(--fs-sm);",
|
|
3181
|
-
lg: "padding: var(--spacing-sm) var(--spacing-base)",
|
|
3182
|
-
xl: "padding: 0.75rem var(--spacing-md)"
|
|
3183
|
-
};
|
|
3270
|
+
const { btnSize, buttonTheme: buttonTheme2 } = useButtonStyles({
|
|
3271
|
+
theme: buttonType,
|
|
3272
|
+
size,
|
|
3273
|
+
..."variant" in props ? { variant: props.variant } : {}
|
|
3274
|
+
});
|
|
3184
3275
|
const clickHandler = onClick != null ? onClick : shortcut == null ? void 0 : shortcut.handler;
|
|
3185
3276
|
const disabledValue = disabled2 != null ? disabled2 : shortcut == null ? void 0 : shortcut.disabled;
|
|
3186
3277
|
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3187
3278
|
import_react16.Button,
|
|
3188
3279
|
{
|
|
3189
3280
|
ref,
|
|
3190
|
-
css: [button, buttonTheme2
|
|
3281
|
+
css: [button, buttonTheme2, btnSize],
|
|
3191
3282
|
...props,
|
|
3192
3283
|
onClick: clickHandler,
|
|
3193
3284
|
disabled: disabledValue,
|
|
@@ -20671,7 +20762,7 @@ var ObjectListItemContentWrapper = import_react122.css`
|
|
|
20671
20762
|
flex-grow: 1;
|
|
20672
20763
|
|
|
20673
20764
|
${cq("34rem")} {
|
|
20674
|
-
grid-template-columns: auto 1fr auto;
|
|
20765
|
+
grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
|
|
20675
20766
|
}
|
|
20676
20767
|
`;
|
|
20677
20768
|
var ObjectListItemRightSlot = import_react122.css`
|
|
@@ -20773,7 +20864,7 @@ var ObjectListItem2 = (props) => {
|
|
|
20773
20864
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(HorizontalRhythm, { gap: "sm", align: "center", children: dragHandle }),
|
|
20774
20865
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { css: ObjectListItemContentWrapper, children: [
|
|
20775
20866
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(HorizontalRhythm, { gap: "sm", align: "center", children: cover }),
|
|
20776
|
-
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(VerticalRhythm, { gap: "0", children: [
|
|
20867
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(VerticalRhythm, { gap: "0", justify: renderAs === "multi" ? "flex-start" : "center", children: [
|
|
20777
20868
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(HorizontalRhythm, { gap: "xs", align: renderAs === "multi" ? "flex-start" : "center", children: header2 }),
|
|
20778
20869
|
renderAs === "multi" ? props.children : null
|
|
20779
20870
|
] }),
|
|
@@ -25953,6 +26044,11 @@ var StatusBullet = ({
|
|
|
25953
26044
|
buttonRippleEffect,
|
|
25954
26045
|
buttonSecondary,
|
|
25955
26046
|
buttonSecondaryInvert,
|
|
26047
|
+
buttonSoftAccentPrimary,
|
|
26048
|
+
buttonSoftAlt,
|
|
26049
|
+
buttonSoftDestructive,
|
|
26050
|
+
buttonSoftPrimary,
|
|
26051
|
+
buttonSoftTertiary,
|
|
25956
26052
|
buttonTertiary,
|
|
25957
26053
|
buttonTertiaryOutline,
|
|
25958
26054
|
buttonUnimportant,
|
|
@@ -26017,6 +26113,7 @@ var StatusBullet = ({
|
|
|
26017
26113
|
uniformLocaleDisabledIcon,
|
|
26018
26114
|
uniformLocaleIcon,
|
|
26019
26115
|
useBreakpoint,
|
|
26116
|
+
useButtonStyles,
|
|
26020
26117
|
useCloseCurrentDrawer,
|
|
26021
26118
|
useCurrentDrawer,
|
|
26022
26119
|
useCurrentTab,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.214.1-alpha.
|
|
3
|
+
"version": "19.214.1-alpha.17+15e689c12c",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@storybook/theming": "^8.3.3",
|
|
27
27
|
"@types/react": "18.3.11",
|
|
28
28
|
"@types/react-dom": "18.3.1",
|
|
29
|
-
"@uniformdev/canvas": "^19.214.1-alpha.
|
|
30
|
-
"@uniformdev/richtext": "^19.214.1-alpha.
|
|
29
|
+
"@uniformdev/canvas": "^19.214.1-alpha.17+15e689c12c",
|
|
30
|
+
"@uniformdev/richtext": "^19.214.1-alpha.17+15e689c12c",
|
|
31
31
|
"autoprefixer": "10.4.16",
|
|
32
32
|
"hygen": "6.2.11",
|
|
33
33
|
"postcss": "8.4.47",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "15e689c12ce848ce17d170f9be8c6f3d2c29ffe1"
|
|
82
82
|
}
|