@redsift/design-system 11.6.0-muiv5-alpha.5 → 11.6.0-muiv5-alpha.7

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.
Files changed (150) hide show
  1. package/_internal/Alert2.js +182 -39
  2. package/_internal/AppBar.js +240 -29
  3. package/_internal/AppContainer.js +132 -86
  4. package/_internal/AppContent.js +84 -17
  5. package/_internal/Badge2.js +137 -4
  6. package/_internal/BreadcrumbItem.js +85 -3
  7. package/_internal/Breadcrumbs2.js +86 -21
  8. package/_internal/Button2.js +81 -20
  9. package/_internal/ButtonGroup.js +165 -25
  10. package/_internal/ButtonLink.js +74 -18
  11. package/_internal/Card2.js +151 -29
  12. package/_internal/CardActions.js +38 -3
  13. package/_internal/CardBody.js +36 -3
  14. package/_internal/CardHeader.js +77 -3
  15. package/_internal/Checkbox2.js +234 -58
  16. package/_internal/CheckboxGroup.js +182 -4
  17. package/_internal/ConditionalWrapper.js +11 -12
  18. package/_internal/DetailedCard.js +6912 -48
  19. package/_internal/DetailedCardCollapsibleSectionItems.js +58 -3
  20. package/_internal/DetailedCardHeader.js +61 -3
  21. package/_internal/DetailedCardSection.js +166 -3
  22. package/_internal/DetailedCardSectionItem.js +88 -3
  23. package/_internal/Flexbox2.js +85 -22
  24. package/_internal/Grid2.js +87 -24
  25. package/_internal/GridItem.js +34 -3
  26. package/_internal/Heading2.js +107 -3
  27. package/_internal/Icon2.js +206 -5
  28. package/_internal/IconButton.js +71 -3
  29. package/_internal/IconButtonLink.js +65 -18
  30. package/_internal/Item2.js +390 -73
  31. package/_internal/Link2.js +56 -15
  32. package/_internal/LinkButton.js +56 -13
  33. package/_internal/Number2.js +103 -61
  34. package/_internal/NumberField.js +3959 -65
  35. package/_internal/Pill2.js +400 -4
  36. package/_internal/ProgressBar.js +61 -18
  37. package/_internal/Radio2.js +227 -56
  38. package/_internal/RadioGroup.js +170 -4
  39. package/_internal/Shield2.js +220 -4
  40. package/_internal/SideNavigationMenu.js +586 -4
  41. package/_internal/SideNavigationMenuItem.js +299 -4
  42. package/_internal/Skeleton2.js +36 -9
  43. package/_internal/SkeletonCircle.js +52 -3
  44. package/_internal/SkeletonText.js +71 -3
  45. package/_internal/Spinner2.js +319 -29
  46. package/_internal/Switch2.js +310 -56
  47. package/_internal/SwitchGroup.js +182 -4
  48. package/_internal/Text2.js +45 -3
  49. package/_internal/TextArea.js +430 -20
  50. package/_internal/TextField.js +463 -19
  51. package/_internal/alert.js +2 -5
  52. package/_internal/app-bar.js +2 -8
  53. package/_internal/app-container.js +3 -9
  54. package/_internal/app-content.js +2 -5
  55. package/_internal/app-side-panel.js +3 -11
  56. package/_internal/badge.js +2 -6
  57. package/_internal/breadcrumb-item.js +1 -4
  58. package/_internal/breadcrumbs.js +2 -6
  59. package/_internal/button-group.js +2 -5
  60. package/_internal/button-link.js +2 -8
  61. package/_internal/button.js +3 -8
  62. package/_internal/card-actions.js +1 -4
  63. package/_internal/card-body.js +1 -4
  64. package/_internal/card-header.js +1 -8
  65. package/_internal/card.js +2 -11
  66. package/_internal/checkbox-group.js +2 -6
  67. package/_internal/checkbox.js +2 -6
  68. package/_internal/colors.js +87 -91
  69. package/_internal/conditional-wrapper.js +2 -2
  70. package/_internal/detailed-card-collapsible-section-items.js +1 -3
  71. package/_internal/detailed-card-header.js +1 -7
  72. package/_internal/detailed-card-section-item.js +1 -10
  73. package/_internal/detailed-card-section.js +1 -6
  74. package/_internal/detailed-card.js +2 -16
  75. package/_internal/flexbox.js +2 -5
  76. package/_internal/focus-within-group.js +3 -3
  77. package/_internal/fonts.js +4 -6
  78. package/_internal/gradient-border.js +35 -16
  79. package/_internal/grid-item.js +1 -4
  80. package/_internal/grid.js +2 -6
  81. package/_internal/heading.js +2 -6
  82. package/_internal/icon-button-link.js +2 -8
  83. package/_internal/icon-button.js +2 -6
  84. package/_internal/icon.js +2 -6
  85. package/_internal/item.js +2 -8
  86. package/_internal/link-button.js +2 -8
  87. package/_internal/link.js +3 -8
  88. package/_internal/listbox.js +3 -6
  89. package/_internal/number-field.js +2 -9
  90. package/_internal/number.js +2 -7
  91. package/_internal/pill.js +2 -6
  92. package/_internal/progress-bar.js +2 -5
  93. package/_internal/radio-group.js +2 -6
  94. package/_internal/radio.js +2 -6
  95. package/_internal/shared.js +2 -5
  96. package/_internal/shield.js +2 -6
  97. package/_internal/side-navigation-menu-bar.js +3 -9
  98. package/_internal/side-navigation-menu-item.js +2 -8
  99. package/_internal/side-navigation-menu.js +2 -8
  100. package/_internal/skeleton-circle.js +1 -6
  101. package/_internal/skeleton-text.js +2 -6
  102. package/_internal/skeleton.js +1 -7
  103. package/_internal/spinner.js +2 -5
  104. package/_internal/styles.js +235 -17
  105. package/_internal/styles2.js +44 -280
  106. package/_internal/switch-group.js +2 -6
  107. package/_internal/switch.js +2 -6
  108. package/_internal/text-area.js +2 -9
  109. package/_internal/text-field.js +2 -10
  110. package/_internal/text.js +2 -6
  111. package/_internal/theme.js +1 -3
  112. package/_internal/types.js +7 -31
  113. package/_internal/types2.js +18 -29
  114. package/_internal/types3.js +15 -18
  115. package/_internal/useAppSidePanel.js +331 -6
  116. package/_internal/useFocusOnList.js +502 -44
  117. package/_internal/useListboxItem.js +120 -23
  118. package/_internal/useSideNavigationMenuBar.js +371 -7
  119. package/_internal/useTheme.js +10 -8
  120. package/index.d.ts +4667 -0
  121. package/index.js +523 -1674
  122. package/package.json +2 -2
  123. package/_internal/SideNavigationMenuBar.js +0 -9
  124. package/_internal/helpers.js +0 -23
  125. package/_internal/types10.js +0 -20
  126. package/_internal/types11.js +0 -27
  127. package/_internal/types12.js +0 -35
  128. package/_internal/types13.js +0 -143
  129. package/_internal/types14.js +0 -11
  130. package/_internal/types15.js +0 -62
  131. package/_internal/types16.js +0 -56
  132. package/_internal/types17.js +0 -57
  133. package/_internal/types18.js +0 -40
  134. package/_internal/types19.js +0 -101
  135. package/_internal/types20.js +0 -47
  136. package/_internal/types21.js +0 -68
  137. package/_internal/types22.js +0 -52
  138. package/_internal/types23.js +0 -174
  139. package/_internal/types24.js +0 -18
  140. package/_internal/types25.js +0 -12
  141. package/_internal/types26.js +0 -36
  142. package/_internal/types27.js +0 -72
  143. package/_internal/types28.js +0 -73
  144. package/_internal/types29.js +0 -99
  145. package/_internal/types4.js +0 -67
  146. package/_internal/types5.js +0 -11
  147. package/_internal/types6.js +0 -11
  148. package/_internal/types7.js +0 -28
  149. package/_internal/types8.js +0 -72
  150. package/_internal/types9.js +0 -16
@@ -1,8 +1,2 @@
1
- export { S as SkeletonProps, a as StyledSkeletonProps } from './types24.js';
2
1
  export { B as BaseSkeleton, S as Skeleton } from './Skeleton2.js';
3
- import 'react';
4
- import './styles2.js';
5
- import './helpers.js';
6
- import './colors.js';
7
- import './types26.js';
8
- import './types25.js';
2
+ //# sourceMappingURL=skeleton.js.map
@@ -1,5 +1,2 @@
1
- export { S as Spinner, b as SpinnerProps, a as SpinnerSize, c as StyledSpinnerProps } from './Spinner2.js';
2
- import 'react';
3
- import './helpers.js';
4
- import './styles2.js';
5
- import './colors.js';
1
+ export { S as Spinner, a as SpinnerSize } from './Spinner2.js';
2
+ //# sourceMappingURL=spinner.js.map
@@ -1,17 +1,235 @@
1
- import * as styled_components from 'styled-components';
2
- import { L as LayoutProps, S as SpacingProps, I as InternalSpacingProps, f as SizingProps, P as PositioningProps, B as BorderProps, g as FlexLayoutProps, G as GridLayoutProps, h as StylingProps, C as ContainerProps } from './styles2.js';
3
-
4
- declare const baseLayout: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<LayoutProps, any>>;
5
- declare const baseSpacing: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<SpacingProps, any>>;
6
- declare const baseInternalSpacing: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<InternalSpacingProps, any>>;
7
- declare const baseSizing: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<SizingProps, any>>;
8
- declare const basePositioning: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<PositioningProps, any>>;
9
- declare const baseBorder: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<BorderProps, any>>;
10
- declare const baseFlexbox: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<FlexLayoutProps, any>>;
11
- declare const baseGrid: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<GridLayoutProps, any>>;
12
- declare const baseStyling: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<StylingProps, any>>;
13
- declare const baseContainer: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<ContainerProps, any>>;
14
- declare const focusRing: styled_components.FlattenSimpleInterpolation;
15
- declare const srOnly: styled_components.FlattenSimpleInterpolation;
16
-
17
- export { baseSpacing as a, baseLayout as b, baseInternalSpacing as c, baseSizing as d, basePositioning as e, baseBorder as f, baseFlexbox as g, baseGrid as h, baseStyling as i, baseContainer as j, focusRing as k, srOnly as s };
1
+ import styled, { css } from 'styled-components';
2
+ import { i as baseStyling, k as focusRing } from './styles4.js';
3
+
4
+ /**
5
+ * Component variant.
6
+ */
7
+ const ButtonVariant = {
8
+ primary: 'primary',
9
+ secondary: 'secondary',
10
+ unstyled: 'unstyled'
11
+ };
12
+
13
+ /**
14
+ * Component color.
15
+ */
16
+
17
+ /**
18
+ * Component props.
19
+ */
20
+
21
+ /**
22
+ * Component style.
23
+ */
24
+ const StyledButton = styled.button`
25
+ align-items: center;
26
+ background: none;
27
+ border: none;
28
+ border-radius: 4px;
29
+ display: inline-flex;
30
+ font-family: var(--redsift-typography-button-font-family);
31
+ font-size: var(--redsift-typography-button-font-size);
32
+ font-weight: var(--redsift-typography-button-font-weight);
33
+ gap: 8px;
34
+ height: fit-content;
35
+ justify-content: center;
36
+ line-height: var(--redsift-typography-button-line-height);
37
+ text-decoration: none;
38
+ text-transform: var(--redsift-typography-button-text-transform);
39
+ vertical-align: middle;
40
+ -webkit-font-smoothing: antialiased;
41
+ ${baseStyling}
42
+
43
+ ${_ref => {
44
+ let {
45
+ $isLoading
46
+ } = _ref;
47
+ return $isLoading ? css`
48
+ & > span {
49
+ opacity: 0;
50
+ }
51
+
52
+ & > .redsift-shield {
53
+ position: absolute;
54
+ }
55
+ ` : '';
56
+ }}
57
+
58
+ ${_ref2 => {
59
+ let {
60
+ $variant,
61
+ $color,
62
+ $isActive,
63
+ $isDisabled,
64
+ $isGradient,
65
+ $isHovered,
66
+ $theme
67
+ } = _ref2;
68
+ return css`
69
+ padding: ${$variant !== ButtonVariant.secondary || $variant === ButtonVariant.secondary && $isGradient && !$isDisabled ? '9px 16px' : '8px 15px'};
70
+
71
+ ${!$isGradient ? css`
72
+ background-color: var(
73
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}
74
+ );
75
+ &,
76
+ .redsift-icon:not(.colored) {
77
+ color: var(
78
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}
79
+ );
80
+ }
81
+ ` : css`
82
+ background: var(
83
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}
84
+ );
85
+
86
+ ${$variant === ButtonVariant.primary || $isDisabled ? css`
87
+ &,
88
+ .redsift-icon:not(.colored) {
89
+ color: var(
90
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}
91
+ );
92
+ }
93
+ ` : ''}
94
+
95
+ ${$variant !== ButtonVariant.primary && !$isDisabled ? css`
96
+ path {
97
+ fill: url(#${$color}-gradient-${$isActive ? 'active' : $isHovered ? 'hover' : 'default'});
98
+ }
99
+ ` : ''}
100
+
101
+ span {
102
+ background: var(
103
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}
104
+ );
105
+ background-clip: text;
106
+ color: transparent;
107
+ }
108
+ `}
109
+
110
+ ${$variant === ButtonVariant.secondary ? css`
111
+ border: 1px solid
112
+ var(
113
+ --redsift-color-${$theme}-components-buttons-secondary-button-${$color}-text-${$isDisabled ? 'disabled' : $isActive ? 'active' : $isHovered ? 'hover' : 'default'}
114
+ );
115
+ ` : ''}
116
+ `;
117
+ }};
118
+
119
+ &:hover,
120
+ &:focus-visible {
121
+ outline: none;
122
+
123
+ ${_ref3 => {
124
+ let {
125
+ $variant,
126
+ $color,
127
+ $isDisabled,
128
+ $isGradient,
129
+ $theme
130
+ } = _ref3;
131
+ return css`
132
+ cursor: ${$isDisabled ? 'default' : 'pointer'};
133
+
134
+ ${!$isGradient ? css`
135
+ background-color: var(
136
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-${$isDisabled ? 'disabled' : 'hover'}
137
+ );
138
+ &,
139
+ .redsift-icon:not(.colored) {
140
+ color: var(
141
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : 'hover'}
142
+ );
143
+ }
144
+
145
+ ${$variant === ButtonVariant.secondary ? css`
146
+ border: 1px solid
147
+ var(
148
+ --redsift-color-${$theme}-components-buttons-secondary-button-${$color}-text-${$isDisabled ? 'disabled' : 'hover'}
149
+ );
150
+ ` : ''}
151
+ ` : css`
152
+ background: var(
153
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-${$isDisabled ? 'disabled' : 'hover'}
154
+ );
155
+
156
+ ${$variant !== ButtonVariant.primary && !$isDisabled ? css`
157
+ path {
158
+ fill: url(#${$color}-gradient-hover);
159
+ }
160
+ ` : ''}
161
+ `}
162
+ `;
163
+ }};
164
+ }
165
+
166
+ &:active {
167
+ outline: none;
168
+
169
+ ${_ref4 => {
170
+ let {
171
+ $variant,
172
+ $color,
173
+ $isGradient,
174
+ $isHovered,
175
+ $isDisabled,
176
+ $theme
177
+ } = _ref4;
178
+ return css`
179
+ ${!$isGradient ? css`
180
+ background-color: var(
181
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-${$isDisabled ? 'disabled' : $isHovered ? 'hover' : 'active'}
182
+ );
183
+ &,
184
+ .redsift-icon:not(.colored) {
185
+ color: var(
186
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-text-${$isDisabled ? 'disabled' : $isHovered ? 'hover' : 'active'}
187
+ );
188
+ }
189
+
190
+ ${$variant === ButtonVariant.secondary ? css`
191
+ border: 1px solid
192
+ var(
193
+ --redsift-color-${$theme}-components-buttons-secondary-button-${$color}-text-${$isDisabled ? 'disabled' : $isHovered ? 'hover' : 'active'}
194
+ );
195
+ ` : ''}
196
+ ` : css`
197
+ background: var(
198
+ --redsift-color-${$theme}-components-buttons-${$variant}-button-${$color}-background-${$isDisabled ? 'disabled' : $isHovered ? 'hover' : 'active'}
199
+ );
200
+
201
+ ${$variant !== ButtonVariant.primary && !$isDisabled ? css`
202
+ path {
203
+ fill: url(#${$color}-gradient-active);
204
+ }
205
+ ` : ''}
206
+ `}
207
+ `;
208
+ }};
209
+ }
210
+
211
+ ${_ref5 => {
212
+ let {
213
+ $fullWidth
214
+ } = _ref5;
215
+ return $fullWidth ? `
216
+ width: 100%;
217
+ flex-grow: 1;
218
+ ` : '';
219
+ }}
220
+
221
+ .redsift-icon.left {
222
+ margin-right: unset;
223
+ align-items: center;
224
+ }
225
+
226
+ .redsift-icon.right {
227
+ margin-left: unset;
228
+ align-items: center;
229
+ }
230
+
231
+ ${focusRing}
232
+ `;
233
+
234
+ export { ButtonVariant as B, StyledButton as S };
235
+ //# sourceMappingURL=styles.js.map
@@ -1,283 +1,47 @@
1
- import { V as ValueOf } from './helpers.js';
1
+ import styled, { css } from 'styled-components';
2
+ import { S as StyledButton } from './styles.js';
2
3
 
3
- declare const AlignSelf: {
4
- readonly auto: "auto";
5
- readonly normal: "normal";
6
- readonly start: "start";
7
- readonly end: "end";
8
- readonly center: "center";
9
- readonly 'flex-start': "flex-start";
10
- readonly 'flex-end': "flex-end";
11
- readonly 'self-start': "self-start";
12
- readonly 'self-end': "self-end";
13
- readonly baseline: "baseline";
14
- readonly stretch: "stretch";
15
- };
16
- type AlignSelf = ValueOf<typeof AlignSelf>;
17
- declare const JustifySelf: {
18
- readonly auto: "auto";
19
- readonly normal: "normal";
20
- readonly start: "start";
21
- readonly end: "end";
22
- readonly center: "center";
23
- readonly 'flex-start': "flex-start";
24
- readonly 'flex-end': "flex-end";
25
- readonly 'self-start': "self-start";
26
- readonly 'self-end': "self-end";
27
- readonly left: "left";
28
- readonly right: "right";
29
- readonly stretch: "stretch";
30
- };
31
- type JustifySelf = ValueOf<typeof JustifySelf>;
32
- declare const AlignContent: {
33
- readonly 'flex-start': "flex-start";
34
- readonly 'flex-end': "flex-end";
35
- readonly center: "center";
36
- readonly 'space-between': "space-between";
37
- readonly 'space-around': "space-around";
38
- readonly 'space-evenly': "space-evenly";
39
- readonly stretch: "stretch";
40
- readonly start: "start";
41
- readonly end: "end";
42
- readonly baseline: "baseline";
43
- readonly 'first baseline': "first baseline";
44
- readonly 'last baseline': "last baseline";
45
- };
46
- type AlignContent = ValueOf<typeof AlignContent>;
47
- declare const AlignItems: {
48
- readonly stretch: "stretch";
49
- readonly 'flex-start': "flex-start";
50
- readonly 'flex-end': "flex-end";
51
- readonly center: "center";
52
- readonly baseline: "baseline";
53
- readonly 'first baseline': "first baseline";
54
- readonly 'last baseline': "last baseline";
55
- readonly start: "start";
56
- readonly end: "end";
57
- readonly 'self-start': "self-start";
58
- readonly 'self-end': "self-end";
59
- };
60
- type AlignItems = ValueOf<typeof AlignItems>;
61
- declare const FlexDirection: {
62
- readonly row: "row";
63
- readonly 'row-reverse': "row-reverse";
64
- readonly column: "column";
65
- readonly 'column-reverse': "column-reverse";
66
- };
67
- type FlexDirection = ValueOf<typeof FlexDirection>;
68
- declare const FlexWrap: {
69
- readonly nowrap: "nowrap";
70
- readonly wrap: "wrap";
71
- readonly 'wrap-reverse': "wrap-reverse";
72
- };
73
- type FlexWrap = ValueOf<typeof FlexWrap>;
74
- declare const JustifyContent: {
75
- readonly 'flex-start': "flex-start";
76
- readonly 'flex-end': "flex-end";
77
- readonly center: "center";
78
- readonly 'space-between': "space-between";
79
- readonly 'space-around': "space-around";
80
- readonly 'space-evenly': "space-evenly";
81
- readonly start: "start";
82
- readonly end: "end";
83
- readonly left: "left";
84
- readonly right: "right";
85
- readonly baseline: "baseline";
86
- readonly 'first baseline': "first baseline";
87
- readonly 'last baseline': "last baseline";
88
- readonly stretch: "stretch";
89
- };
90
- type JustifyContent = ValueOf<typeof JustifyContent>;
91
- declare const JustifyItems: {
92
- readonly start: "start";
93
- readonly end: "end";
94
- readonly center: "center";
95
- readonly stretch: "stretch";
96
- };
97
- type JustifyItems = ValueOf<typeof JustifyItems>;
98
- interface LayoutProps {
99
- /** When used in a flex layout, specifies how the element will grow or shrink to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex">MDN</a>. */
100
- flex?: string;
101
- /** When used in a flex layout, specifies how the element will grow to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow">MDN</a>. */
102
- flexGrow?: number;
103
- /** When used in a flex layout, specifies how the element will shrink to fit the space available. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink">MDN</a>. */
104
- flexShrink?: number;
105
- /** When used in a flex layout, specifies the initial main size of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex_basis">MDN</a>. */
106
- flexBasis?: string;
107
- /** Overrides the alignItems property of a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-self">MDN</a>. */
108
- alignSelf?: AlignSelf;
109
- /** Specifies how the element is justified inside a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self">MDN</a>. */
110
- justifySelf?: string;
111
- /** The layout order for the element within a flex or grid container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/order">MDN</a>. */
112
- order?: number;
113
- /** When used in a grid layout, specifies the named grid area that the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area">MDN</a>. */
114
- gridArea?: string;
115
- /** When used in a grid layout, specifies the column the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column">MDN</a>. */
116
- gridColumn?: string;
117
- /** When used in a grid layout, specifies the row the element should be placed in within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row">MDN</a>. */
118
- gridRow?: string;
119
- /** When used in a grid layout, specifies the starting column to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start">MDN</a>. */
120
- gridColumnStart?: string;
121
- /** When used in a grid layout, specifies the ending column to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end">MDN</a>. */
122
- gridColumnEnd?: string;
123
- /** When used in a grid layout, specifies the starting row to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start">MDN</a>. */
124
- gridRowStart?: string;
125
- /** When used in a grid layout, specifies the ending row to span within the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end">MDN</a>. */
126
- gridRowEnd?: string;
127
- }
128
- interface SpacingProps {
129
- /** The margin for all four sides of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin">MDN</a>. */
130
- margin?: string;
131
- /** The margin for the bottom side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom">MDN</a>. */
132
- marginBottom?: string;
133
- /** The margin for the left side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left">MDN</a>. */
134
- marginLeft?: string;
135
- /** The margin for the right side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right">MDN</a>. */
136
- marginRight?: string;
137
- /** The margin for the top side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top">MDN</a>. */
138
- marginTop?: string;
139
- }
140
- interface SizingProps {
141
- /** The height of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/height">MDN</a>. */
142
- height?: string | number;
143
- /** The maximum height of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/max-height">MDN</a>. */
144
- maxHeight?: string;
145
- /** The maximum width of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/max-width">MDN</a>. */
146
- maxWidth?: string;
147
- /** The minimum height of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/min-height">MDN</a>. */
148
- minHeight?: string;
149
- /** The minimum width of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/min-width">MDN</a>. */
150
- minWidth?: string;
151
- /** The width of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/width">MDN</a>. */
152
- width?: string | number;
153
- }
154
- interface PositioningProps {
155
- /** Specifies how the element is positioned. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN</a>. */
156
- position?: string;
157
- /** The top position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/top">MDN</a>. */
158
- top?: string;
159
- /** The bottom position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/bottom">MDN</a>. */
160
- bottom?: string;
161
- /** The left position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/left">MDN</a>. Consider using start instead for RTL support. */
162
- left?: string;
163
- /** The right position for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/right">MDN</a>. Consider using start instead for RTL support. */
164
- right?: string;
165
- /** The stacking order for the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/z-index">MDN</a>. */
166
- zIndex?: string;
167
- }
168
- interface BorderProps {
169
- /** The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method. Component properties not set in the background shorthand property value declaration are set to their default values. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background">MDN</a>. */
170
- background?: string;
171
- /** The background-color CSS property sets the background color of an element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-color">MDN</a>. */
172
- backgroundColor?: string;
173
- /** The border shorthand CSS property sets an element's border. It sets the values of border-width, border-style, and border-color. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border">MDN</a>. */
174
- border?: string;
175
- /** The border-top CSS property sets all the properties of an element's top border. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-top">MDN</a>. */
176
- borderTop?: string;
177
- /** The border-top CSS property sets all the properties of an element's bottom border. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom">MDN</a>. */
178
- borderBottom?: string;
179
- /** The border-top CSS property sets all the properties of an element's left border. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-left">MDN</a>. Consider using start instead for RTL support. */
180
- borderLeft?: string;
181
- /** The border-top CSS property sets all the properties of an element's right border. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-right">MDN</a>. Consider using start instead for RTL support. */
182
- borderRight?: string;
183
- /** The border-radius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius">MDN</a>. */
184
- borderRadius?: string;
185
- /** The box-shadow CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow">MDN</a>. */
186
- boxShadow?: string;
187
- }
188
- interface FlexLayoutProps {
189
- /** The distribution of space around child items along the cross axis. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-content">MDN</a>. */
190
- alignContent?: AlignContent;
191
- /** The alignment of children within their container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-items">MDN</a>. */
192
- alignItems?: AlignItems;
193
- /** The direction in which to layout children. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction">MDN</a>. */
194
- flexDirection?: FlexDirection;
195
- /** Whether to wrap items onto multiple lines. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap">MDN</a>. */
196
- flexWrap?: FlexWrap;
197
- /** The space to display between both rows and columns. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/gap">MDN</a>. */
198
- gap?: string;
199
- /** Whether the box is displayed inline or not. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">MDN</a>. */
200
- inline?: boolean;
201
- /** The distribution of space around items along the main axis. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content">MDN</a>. */
202
- justifyContent?: JustifyContent;
203
- }
204
- interface GridLayoutProps {
205
- /** The distribution of space around child items along the cross axis. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-content">MDN</a>. */
206
- alignContent?: AlignContent;
207
- /** The alignment of children within their container. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/align-items">MDN</a>. */
208
- alignItems?: AlignItems;
209
- /** The space to display between both rows and columns. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/gap">MDN</a>. */
210
- gap?: string;
211
- /** Defines the size of implicitly generated columns. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns">MDN</a>. */
212
- gridAutoColumns?: string;
213
- /** Defines the size of implicitly generated rows. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows">MDN</a>. */
214
- gridAutoRows?: string;
215
- /** Defines named grid areas. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas">MDN</a>. */
216
- gridTemplateAreas?: string;
217
- /** Defines the sizes of each column in the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns">MDN</a>. */
218
- gridTemplateColumns?: string;
219
- /** Defines the sizes of each row in the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows">MDN</a>. */
220
- gridTemplateRows?: string;
221
- /** Whether the box is displayed inline or not. */
222
- inline?: boolean;
223
- /** The distribution of space around items along the main axis. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content">MDN</a>. */
224
- justifyContent?: JustifyContent;
225
- /** Defines the default justifySelf for all items in the grid. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items">MDN</a>. */
226
- justifyItems?: JustifyItems;
227
- }
228
- interface StylingProps extends LayoutProps, SpacingProps, SizingProps, PositioningProps {
229
- }
230
- interface InternalSpacingProps {
231
- /** The padding for all four sides of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/padding">MDN</a>. */
232
- padding?: string;
233
- /** The padding for the bottom side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom">MDN</a>. */
234
- paddingBottom?: string;
235
- /** The padding for the left side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left">MDN</a>. */
236
- paddingLeft?: string;
237
- /** The padding for the right side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right">MDN</a>. */
238
- paddingRight?: string;
239
- /** The padding for the top side of the element. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top">MDN</a>. */
240
- paddingTop?: string;
241
- }
242
- interface ContainerProps extends Omit<FlexLayoutProps, 'inline'>, Omit<GridLayoutProps, 'inline'>, SpacingProps, SizingProps, PositioningProps, BorderProps, InternalSpacingProps {
243
- /** Sets whether an element is treated as a block or inline element and the layout used for its children, such as flow layout, grid or flex. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display">MDN</a>. */
244
- display?: 'block' | 'inline' | 'inline-block' | 'flex' | 'inline-flex' | 'grid' | 'inline-grid' | 'inherit';
245
- }
246
- declare const getContainerProps: (props: ContainerProps) => {
247
- zIndex?: string | undefined;
248
- width?: string | number | undefined;
249
- top?: string | undefined;
250
- right?: string | undefined;
251
- position?: string | undefined;
252
- paddingTop?: string | undefined;
253
- paddingRight?: string | undefined;
254
- paddingLeft?: string | undefined;
255
- paddingBottom?: string | undefined;
256
- padding?: string | undefined;
257
- minWidth?: string | undefined;
258
- minHeight?: string | undefined;
259
- maxWidth?: string | undefined;
260
- maxHeight?: string | undefined;
261
- marginTop?: string | undefined;
262
- marginRight?: string | undefined;
263
- marginLeft?: string | undefined;
264
- marginBottom?: string | undefined;
265
- margin?: string | undefined;
266
- left?: string | undefined;
267
- justifyItems?: JustifyItems | undefined;
268
- justifyContent?: JustifyContent | undefined;
269
- height?: string | number | undefined;
270
- gridTemplateRows?: string | undefined;
271
- gridTemplateColumns?: string | undefined;
272
- gridTemplateAreas?: string | undefined;
273
- gridAutoRows?: string | undefined;
274
- gridAutoColumns?: string | undefined;
275
- gap?: string | undefined;
276
- flexWrap?: FlexWrap | undefined;
277
- flexDirection?: FlexDirection | undefined;
278
- bottom?: string | undefined;
279
- alignItems?: AlignItems | undefined;
280
- alignContent?: AlignContent | undefined;
4
+ /**
5
+ * Component variant.
6
+ */
7
+ const IconButtonVariant = {
8
+ primary: 'primary',
9
+ secondary: 'secondary',
10
+ unstyled: 'unstyled'
281
11
  };
282
12
 
283
- export { AlignSelf as A, BorderProps as B, ContainerProps as C, FlexDirection as F, GridLayoutProps as G, InternalSpacingProps as I, JustifySelf as J, LayoutProps as L, PositioningProps as P, SpacingProps as S, AlignContent as a, AlignItems as b, FlexWrap as c, JustifyContent as d, JustifyItems as e, SizingProps as f, FlexLayoutProps as g, StylingProps as h, getContainerProps as i };
13
+ /**
14
+ * Component color.
15
+ */
16
+
17
+ /**
18
+ * Component props.
19
+ */
20
+
21
+ /**
22
+ * Component style.
23
+ */
24
+ const StyledIconButton = styled(StyledButton)`
25
+ ${_ref => {
26
+ let {
27
+ $variant
28
+ } = _ref;
29
+ return css`
30
+ padding: ${$variant === IconButtonVariant.secondary ? '8px' : '9px'};
31
+ `;
32
+ }};
33
+
34
+ ${_ref2 => {
35
+ let {
36
+ $isLoading
37
+ } = _ref2;
38
+ return $isLoading ? css`
39
+ & > .redsift-shield {
40
+ position: relative;
41
+ }
42
+ ` : '';
43
+ }}
44
+ `;
45
+
46
+ export { IconButtonVariant as I, StyledIconButton as S };
47
+ //# sourceMappingURL=styles2.js.map
@@ -1,6 +1,2 @@
1
- export { c as StyledSwitchGroupProps, a as SwitchGroupOrientation, b as SwitchGroupProps, S as SwitchGroupState } from './types27.js';
2
- export { S as SwitchGroup } from './SwitchGroup.js';
3
- import 'react';
4
- import './helpers.js';
5
- import './styles2.js';
6
- import './colors.js';
1
+ export { a as SwitchGroup, S as SwitchGroupOrientation } from './SwitchGroup.js';
2
+ //# sourceMappingURL=switch-group.js.map
@@ -1,6 +1,2 @@
1
- export { a as StyledSwitchProps, b as Switch, S as SwitchProps } from './Switch2.js';
2
- import 'react';
3
- import './types27.js';
4
- import './helpers.js';
5
- import './styles2.js';
6
- import './colors.js';
1
+ export { S as Switch } from './Switch2.js';
2
+ //# sourceMappingURL=switch.js.map
@@ -1,9 +1,2 @@
1
- export { S as StyledTextAreaProps, b as TextArea, a as TextAreaProps, T as TextAreaVariant } from './TextArea.js';
2
- import 'react';
3
- import './types29.js';
4
- import './types17.js';
5
- import './styles2.js';
6
- import './helpers.js';
7
- import './colors.js';
8
- import './types16.js';
9
- import './types20.js';
1
+ export { a as TextArea, T as TextAreaVariant } from './TextArea.js';
2
+ //# sourceMappingURL=text-area.js.map
@@ -1,10 +1,2 @@
1
- export { S as StyledTextFieldProps, a as TextFieldColor, b as TextFieldProps, T as TextFieldVariant } from './types29.js';
2
- export { S as StyledTextField, T as TextField } from './TextField.js';
3
- import 'react';
4
- import './types17.js';
5
- import './styles2.js';
6
- import './helpers.js';
7
- import './colors.js';
8
- import './types16.js';
9
- import './types20.js';
10
- import 'styled-components';
1
+ export { S as StyledTextField, a as TextField, T as TextFieldVariant } from './TextField.js';
2
+ //# sourceMappingURL=text-field.js.map
package/_internal/text.js CHANGED
@@ -1,7 +1,3 @@
1
- export { S as StyledTextProps, a as TextComponent, b as TextProps, T as TextVariant } from './types28.js';
1
+ export { a as TextComponent, T as TextVariant } from './styles5.js';
2
2
  export { T as Text } from './Text2.js';
3
- import 'react';
4
- import './helpers.js';
5
- import './styles2.js';
6
- import './colors.js';
7
- import './fonts.js';
3
+ //# sourceMappingURL=text.js.map