@orangesk/orange-design-system 2.0.0-beta.46 → 2.0.0-beta.48
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/build/components/BlockAction/style.css +1 -1
- package/build/components/BlockAction/style.css.map +1 -1
- package/build/components/Breadcrumbs/style.css +1 -1
- package/build/components/Breadcrumbs/style.css.map +1 -1
- package/build/components/Carousel/style.css +1 -1
- package/build/components/Carousel/style.css.map +1 -1
- package/build/components/DocumentationSidebar/style.css +1 -1
- package/build/components/DocumentationSidebar/style.css.map +1 -1
- package/build/components/Footer/style.css +1 -1
- package/build/components/Footer/style.css.map +1 -1
- package/build/components/Icon/style.css +1 -1
- package/build/components/Icon/style.css.map +1 -1
- package/build/components/Link/style.css +1 -1
- package/build/components/Link/style.css.map +1 -1
- package/build/components/Loader/style.css +1 -1
- package/build/components/Loader/style.css.map +1 -1
- package/build/components/Megamenu/style.css +1 -1
- package/build/components/Megamenu/style.css.map +1 -1
- package/build/components/Pagination/style.css +1 -1
- package/build/components/Pagination/style.css.map +1 -1
- package/build/components/PromotionCard/style.css +1 -1
- package/build/components/PromotionCard/style.css.map +1 -1
- package/build/components/Section/style.css +1 -1
- package/build/components/Section/style.css.map +1 -1
- package/build/components/SocialButton/style.css +1 -1
- package/build/components/SocialButton/style.css.map +1 -1
- package/build/components/Stepbar/style.css +1 -1
- package/build/components/Stepbar/style.css.map +1 -1
- package/build/components/Table/style.css +1 -1
- package/build/components/Table/style.css.map +1 -1
- package/build/components/Tabs/style.css +1 -1
- package/build/components/Tabs/style.css.map +1 -1
- package/build/components/Tag/style.css +1 -1
- package/build/components/Tag/style.css.map +1 -1
- package/build/components/Tile/style.css +1 -1
- package/build/components/Tile/style.css.map +1 -1
- package/build/components/index.js +1 -1
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +4 -15
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +4 -1
- package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.static.d.ts +11 -0
- package/build/components/types/src/components/Forms/Group/Group.d.ts +1 -1
- package/build/components/types/src/components/Preview/CodeExample.d.ts +1 -0
- package/build/components/types/src/components/Preview/PreviewGenerator.d.ts +1 -0
- package/build/components/types/src/components/Preview/getElementDisplayName.d.ts +1 -0
- package/build/components/types/src/components/Tabs/Tabs.d.ts +0 -4
- package/build/components/types/src/components/Tabs/Tabs.static.d.ts +12 -0
- package/build/components/types/src/components/Tile/Tile.d.ts +3 -11
- package/build/lib/base.css +1 -1
- package/build/lib/base.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/footer.css +1 -1
- package/build/lib/footer.css.map +1 -1
- package/build/lib/megamenu.css +1 -1
- package/build/lib/megamenu.css.map +1 -1
- package/build/lib/scripts.js +1 -1
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/lib/tsconfig.tsbuildinfo +1 -1
- package/build/lib/utilities.css +1 -1
- package/build/lib/utilities.css.map +1 -1
- package/build/search-index.json +6 -6
- package/package.json +24 -24
- package/src/components/BlockAction/styles/style.scss +6 -4
- package/src/components/Breadcrumbs/styles/mixins.scss +15 -8
- package/src/components/Breadcrumbs/styles/style.scss +2 -1
- package/src/components/Carousel/Carousel.static.ts +29 -1
- package/src/components/Carousel/styles/mixins.scss +22 -2
- package/src/components/Carousel/tests/Carousel.static.test.jsx +50 -0
- package/src/components/DocumentationSidebar/DocumentationSidebar.tsx +21 -34
- package/src/components/DocumentationSidebar/styles/style.scss +0 -6
- package/src/components/Footer/styles/mixins.scss +2 -1
- package/src/components/Forms/Autocomplete/Autocomplete.static.ts +190 -14
- package/src/components/Forms/Autocomplete/styles/style.scss +61 -8
- package/src/components/Forms/Autocomplete/tests/Autocomplete.static.test.ts +187 -0
- package/src/components/Forms/Checkbox/styles/style.scss +13 -6
- package/src/components/Forms/DatePicker/styles/style.scss +1 -2
- package/src/components/Forms/Group/Group.tsx +4 -1
- package/src/components/Forms/Group/styles/config.scss +1 -1
- package/src/components/Forms/Group/styles/mixins.scss +17 -0
- package/src/components/Forms/Group/tests/Group.unit.test.jsx +9 -0
- package/src/components/Forms/InputStepper/styles/style.scss +15 -8
- package/src/components/Forms/TextArea/styles/config.scss +1 -0
- package/src/components/Forms/TextArea/styles/mixins.scss +7 -1
- package/src/components/Forms/TextInput/styles/config.scss +3 -1
- package/src/components/Forms/TextInput/styles/mixins.scss +7 -1
- package/src/components/Forms/TextInput/styles/style.scss +17 -12
- package/src/components/Forms/styles/config.scss +3 -2
- package/src/components/Icon/styles/style.scss +2 -1
- package/src/components/Link/styles/mixins.scss +0 -1
- package/src/components/Loader/styles/style.scss +0 -2
- package/src/components/Megamenu/Megamenu.tsx +2 -2
- package/src/components/Megamenu/MegamenuBlog.tsx +2 -2
- package/src/components/Megamenu/styles/mixins.scss +20 -12
- package/src/components/Pagination/styles/mixins.scss +8 -6
- package/src/components/Pagination/styles/style.scss +0 -4
- package/src/components/Preview/CodeExample.tsx +66 -25
- package/src/components/Preview/Preview.tsx +26 -13
- package/src/components/Preview/PreviewGenerator.tsx +72 -34
- package/src/components/Preview/getElementDisplayName.ts +25 -0
- package/src/components/PromotionCard/styles/mixins.scss +2 -1
- package/src/components/Section/styles/mixins.scss +27 -5
- package/src/components/SocialButton/styles/config.scss +2 -2
- package/src/components/Stepbar/styles/config.scss +34 -17
- package/src/components/Stepbar/styles/mixins.scss +5 -3
- package/src/components/Stepbar/styles/style.scss +4 -2
- package/src/components/Table/styles/mixins.scss +6 -3
- package/src/components/Tabs/Tabs.static.ts +157 -30
- package/src/components/Tabs/Tabs.tsx +62 -67
- package/src/components/Tabs/styles/config.scss +18 -25
- package/src/components/Tabs/styles/mixins.scss +93 -28
- package/src/components/Tabs/styles/style.scss +4 -15
- package/src/components/Tabs/tests/Tabs.unit.test.jsx +111 -0
- package/src/components/Tag/styles/config.scss +1 -1
- package/src/components/Tag/styles/style.scss +22 -5
- package/src/components/Tile/Tile.tsx +18 -42
- package/src/components/Tile/styles/mixins.scss +45 -47
- package/src/components/Tile/styles/style.scss +5 -17
- package/src/components/Tile/tests/Tile.unit.test.jsx +9 -78
- package/src/styles/base/globals.scss +2 -0
- package/src/styles/tokens/color-vars.scss +0 -2
- package/src/styles/utilities/color.scss +0 -153
- package/src/styles/utilities/horizontal-scroll.scss +7 -2
- package/src/styles/utilities/text.scss +0 -1
- package/src/components/Tile/CHANGELOG.md +0 -28
- package/src/components/Tile/styles/config.scss +0 -7
|
@@ -56,149 +56,6 @@
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
// Legacy classes - DEPRECATED (add deprecation warnings)
|
|
60
|
-
.color-black {
|
|
61
|
-
@warn "Deprecated: Use .text-default instead of .color-black";
|
|
62
|
-
color: color.$black !important;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.color-orange {
|
|
66
|
-
@warn "Deprecated: Use .text-accent instead of .color-orange";
|
|
67
|
-
color: var(--color-text-accent) !important;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.color-gray {
|
|
71
|
-
@warn "Deprecated: Use .text-secondary instead of .color-gray";
|
|
72
|
-
color: color.$gray-800 !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.color-white {
|
|
76
|
-
@warn "Deprecated: Use .text-inverse instead of .color-white";
|
|
77
|
-
color: color.$white !important;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.color-blue {
|
|
81
|
-
@warn "Deprecated: Use .icon-information instead of .color-blue";
|
|
82
|
-
color: var(--color-icon-information) !important;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.color-danger {
|
|
86
|
-
@warn "Deprecated: Use .icon-negative instead of .color-danger";
|
|
87
|
-
color: var(--color-icon-negative) !important;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.bg-white {
|
|
91
|
-
@warn "Deprecated: Use .background-primary instead of .bg-white";
|
|
92
|
-
background-color: color.$white !important;
|
|
93
|
-
color: var(--color-text-default);
|
|
94
|
-
|
|
95
|
-
.color-blue,
|
|
96
|
-
&.color-blue {
|
|
97
|
-
color: var(--color-icon-information) !important; // enforce blue color
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.bg-black {
|
|
102
|
-
@warn "Deprecated: Use .background-contrast instead of .bg-black";
|
|
103
|
-
background-color: #141414 !important;
|
|
104
|
-
color: var(--color-text-inverse);
|
|
105
|
-
|
|
106
|
-
.color-gray,
|
|
107
|
-
&.color-gray {
|
|
108
|
-
color: color.$gray-500 !important; // enforce brighter gray
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.color-blue,
|
|
112
|
-
&.color-blue {
|
|
113
|
-
color: color.$blue !important; // enforce blue color
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.bg-orange {
|
|
118
|
-
@warn "Deprecated: Use .surface-secondary instead of .bg-orange";
|
|
119
|
-
background-color: var(--color-surface-secondary) !important;
|
|
120
|
-
color: color.$black !important;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.bg-orange-dark {
|
|
124
|
-
@warn "Deprecated: Use .surface-tertiary instead of .bg-orange-dark";
|
|
125
|
-
background-color: var(--color-surface-tertiary) !important;
|
|
126
|
-
color: var(--color-text-inverse) !important;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.bg-gray {
|
|
130
|
-
@warn "Deprecated: Use .surface-subtle instead of .bg-gray";
|
|
131
|
-
background-color: var(--color-surface-subtle) !important;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.bg-gray-lighter {
|
|
135
|
-
@warn "Deprecated: Use .background-secondary instead of .bg-gray-lighter";
|
|
136
|
-
background-color: var(--color-background-secondary) !important;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.bg-blue {
|
|
140
|
-
@warn "Deprecated: Use .fill-accent1 instead of .bg-blue";
|
|
141
|
-
background-color: var(--color-fill-accent1) !important;
|
|
142
|
-
color: color.$black !important;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.bg-green {
|
|
146
|
-
@warn "Deprecated: Use .fill-accent2 instead of .bg-green";
|
|
147
|
-
background-color: var(--color-fill-accent2) !important;
|
|
148
|
-
color: color.$black !important;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.bg-pink {
|
|
152
|
-
@warn "Deprecated: Use .fill-accent3 instead of .bg-pink";
|
|
153
|
-
background-color: var(--color-fill-accent3) !important;
|
|
154
|
-
color: color.$black !important;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.bg-violet {
|
|
158
|
-
@warn "Deprecated: Use .fill-accent4 instead of .bg-violet";
|
|
159
|
-
background-color: var(--color-fill-accent4) !important;
|
|
160
|
-
color: color.$black !important;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.bg-yellow {
|
|
164
|
-
@warn "Deprecated: Use .fill-accent5 instead of .bg-yellow";
|
|
165
|
-
background-color: var(--color-fill-accent5) !important;
|
|
166
|
-
color: color.$black !important;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.bg-yellow-lighter {
|
|
170
|
-
@warn "Deprecated: This class will be removed in future versions";
|
|
171
|
-
background-color: color.$yellow-lighter !important;
|
|
172
|
-
color: color.$black !important;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.bg-red {
|
|
176
|
-
@warn "Deprecated: Use .fill-negative instead of .bg-red";
|
|
177
|
-
background-color: color.$red !important;
|
|
178
|
-
color: color.$black !important;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.bg-accent {
|
|
182
|
-
@warn "Deprecated: Use .background-accent instead of .bg-accent";
|
|
183
|
-
background-color: var(--color-background-accent) !important;
|
|
184
|
-
color: var(--color-text-default) !important;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.bg-accent1-blog {
|
|
188
|
-
@warn "Deprecated: Use .background-accent1-blog instead of .bg-accent1-blog";
|
|
189
|
-
background-color: var(--color-background-accent1-blog) !important;
|
|
190
|
-
color: var(--color-text-default) !important;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.bg-accent2-blog {
|
|
194
|
-
@warn "Deprecated: Use .background-accent2-blog instead of .bg-accent2-blog";
|
|
195
|
-
background-color: var(--color-background-accent2-blog) !important;
|
|
196
|
-
color: var(--color-text-default) !important;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// Legacy selection styles
|
|
200
|
-
.bg-orange,
|
|
201
|
-
.bg-orange-dark,
|
|
202
59
|
.surface-secondary,
|
|
203
60
|
.surface-tertiary {
|
|
204
61
|
&::selection {
|
|
@@ -207,16 +64,6 @@
|
|
|
207
64
|
}
|
|
208
65
|
}
|
|
209
66
|
|
|
210
|
-
.color-gray::selection {
|
|
211
|
-
color: var(--color-text-default);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// Legacy classes - continued
|
|
215
|
-
.bg-none {
|
|
216
|
-
@warn "Deprecated: Use .background-none instead of .bg-none";
|
|
217
|
-
background: none !important;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
67
|
// Utility for removing background
|
|
221
68
|
.background-none {
|
|
222
69
|
background: none !important;
|
|
@@ -15,14 +15,16 @@
|
|
|
15
15
|
|
|
16
16
|
@supports selector(::-webkit-scrollbar) {
|
|
17
17
|
&::-webkit-scrollbar {
|
|
18
|
-
height: convert.to-rem(
|
|
18
|
+
height: convert.to-rem(8px);
|
|
19
19
|
appearance: none;
|
|
20
|
-
background-color:
|
|
20
|
+
background-color: transparent;
|
|
21
21
|
border-radius: 99px;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&::-webkit-scrollbar-track {
|
|
25
|
+
border: convert.to-rem(1px) solid transparent;
|
|
25
26
|
background-color: var(--color-surface-moderate);
|
|
27
|
+
background-clip: content-box;
|
|
26
28
|
border-radius: 99px;
|
|
27
29
|
}
|
|
28
30
|
|
|
@@ -30,12 +32,15 @@
|
|
|
30
32
|
opacity: 1;
|
|
31
33
|
background-color: var(--color-fill-contrast);
|
|
32
34
|
border-radius: 99px;
|
|
35
|
+
border: convert.to-rem(1px) solid transparent;
|
|
36
|
+
background-clip: content-box;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
&:hover::-webkit-scrollbar-thumb,
|
|
36
40
|
&:active::-webkit-scrollbar-thumb,
|
|
37
41
|
&::-webkit-scrollbar-thumb:hover,
|
|
38
42
|
&::-webkit-scrollbar-thumb:active {
|
|
43
|
+
border-width: 0;
|
|
39
44
|
background-color: var(--color-fill-secondary) !important;
|
|
40
45
|
}
|
|
41
46
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Changelog for Tile Component
|
|
2
|
-
|
|
3
|
-
## [Unreleased]
|
|
4
|
-
|
|
5
|
-
### Breaking Changes
|
|
6
|
-
|
|
7
|
-
- **Refactored color prop**: The `color` prop now uses global utility classes instead of component-specific color modifiers:
|
|
8
|
-
- Old: `color="white"` applied `.tile--white` class with custom CSS
|
|
9
|
-
- New: Uses global classes like `surface-primary`, `surface-secondary`, `background-contrast`, etc.
|
|
10
|
-
- Removed `"default"` and `"white"` color options
|
|
11
|
-
- Added support for: `"surface-primary"`, `"surface-secondary"`, `"surface-tertiary"`, `"surface-subtle"`, `"surface-moderate"`, `"surface-contrast"`, `"background-primary"`, `"background-secondary"`, `"background-contrast"`, `"background-accent"`
|
|
12
|
-
|
|
13
|
-
### Migration Guide
|
|
14
|
-
|
|
15
|
-
- Replace `color="white"` with `color="surface-primary"`
|
|
16
|
-
- Replace any custom styling that relied on `.tile--white` with global surface utility classes
|
|
17
|
-
- The new color system provides consistent styling across all components in the design system
|
|
18
|
-
|
|
19
|
-
### Changed
|
|
20
|
-
|
|
21
|
-
- Update `Tile` component documentation and usage examples:
|
|
22
|
-
- Expanded usage examples in `Tile.mdx` and `/app/components/tile/page.mdx` to demonstrate:
|
|
23
|
-
- New color options using global utility classes
|
|
24
|
-
- Background image and icon support
|
|
25
|
-
- Alignment options with `hAlign` and `vAlign` props
|
|
26
|
-
- Block link and action variants
|
|
27
|
-
- Improved documentation for accessibility and prop usage.
|
|
28
|
-
- Added more realistic content and layout examples for `Tile` in various color and background scenarios.
|