@kaizen/components 1.77.4 → 1.78.1
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/cjs/src/Calendar/CalendarRange/CalendarRange.cjs +12 -13
- package/dist/cjs/src/Calendar/CalendarRange/CalendarRange.module.scss.cjs +2 -3
- package/dist/cjs/src/Calendar/CalendarSingle/CalendarSingle.cjs +8 -8
- package/dist/cjs/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.cjs +11 -12
- package/dist/cjs/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss.cjs +0 -1
- package/dist/cjs/src/Calendar/baseCalendarClassNames.cjs +11 -13
- package/dist/cjs/src/Calendar/baseCalendarClassNames.module.scss.cjs +1 -2
- package/dist/cjs/src/Calendar/utils/setFocusInCalendar.cjs +7 -6
- package/dist/cjs/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs +1 -1
- package/dist/esm/src/Calendar/CalendarRange/CalendarRange.mjs +12 -13
- package/dist/esm/src/Calendar/CalendarRange/CalendarRange.module.scss.mjs +2 -3
- package/dist/esm/src/Calendar/CalendarSingle/CalendarSingle.mjs +8 -8
- package/dist/esm/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.mjs +11 -12
- package/dist/esm/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss.mjs +0 -1
- package/dist/esm/src/Calendar/baseCalendarClassNames.mjs +11 -13
- package/dist/esm/src/Calendar/baseCalendarClassNames.module.scss.mjs +1 -2
- package/dist/esm/src/Calendar/utils/setFocusInCalendar.mjs +7 -6
- package/dist/esm/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs +1 -1
- package/dist/styles.css +8658 -8661
- package/dist/types/Calendar/CalendarRange/CalendarRange.d.ts +2 -2
- package/dist/types/Calendar/CalendarSingle/CalendarSingle.d.ts +2 -2
- package/dist/types/Calendar/LegacyCalendarRange/LegacyCalendarRange.d.ts +3 -2
- package/dist/types/Calendar/baseCalendarClassNames.d.ts +2 -2
- package/package.json +33 -32
- package/src/Avatar/Avatar.module.css +1 -1
- package/src/Badge/Badge.module.css +3 -3
- package/src/Calendar/CalendarRange/CalendarRange.module.scss +13 -13
- package/src/Calendar/CalendarRange/CalendarRange.tsx +15 -11
- package/src/Calendar/CalendarRange/_docs/CalendarRange.stickersheet.stories.tsx +2 -1
- package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +1 -0
- package/src/Calendar/CalendarSingle/CalendarSingle.tsx +11 -6
- package/src/Calendar/CalendarSingle/_docs/CalendarSingle.stickersheet.stories.tsx +8 -3
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +5 -4
- package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.tsx +15 -11
- package/src/Calendar/baseCalendarClassNames.module.scss +12 -19
- package/src/Calendar/baseCalendarClassNames.ts +13 -15
- package/src/Calendar/utils/isSelectingDayInCalendar.spec.tsx +2 -1
- package/src/Calendar/utils/setFocusInCalendar.spec.tsx +8 -4
- package/src/Calendar/utils/setFocusInCalendar.ts +10 -10
- package/src/DatePicker/DatePicker.spec.tsx +10 -9
- package/src/DatePicker/DatePicker.tsx +2 -2
- package/src/Filter/FilterBar/subcomponents/FilterBarDatePicker/FilterBarDatePicker.spec.tsx +4 -2
- package/src/Filter/FilterBar/subcomponents/FilterBarDateRangePicker/FilterBarDateRangePicker.spec.tsx +6 -2
- package/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.tsx +1 -1
- package/src/Filter/FilterDatePicker/FilterDatePicker.spec.tsx +3 -2
- package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.spec.tsx +8 -4
- package/src/Filter/FilterDateRangePicker/_docs/FilterDateRangePicker.stories.tsx +2 -2
- package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.spec.tsx +14 -8
- package/src/Link/Link.module.css +2 -2
- package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +1 -1
- package/src/Popover/Popover.module.scss +1 -1
- package/src/Radio/RadioField/RadioField.module.scss +2 -3
- package/src/Table/Table.module.scss +2 -2
- package/src/TextArea/TextArea.module.css +7 -7
- package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +1 -1
- package/src/__next__/Button/Button.module.css +11 -11
- package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +1 -1
|
@@ -3,21 +3,21 @@ import { type CalendarSingleElement } from '../CalendarSingle'
|
|
|
3
3
|
import calendarStyles from '../baseCalendarClassNames.module.scss'
|
|
4
4
|
import { isInvalidDate } from './isInvalidDate'
|
|
5
5
|
|
|
6
|
-
const isHTMLElement = (element: Element | undefined): element is HTMLElement =>
|
|
7
|
-
element instanceof HTMLElement
|
|
8
|
-
|
|
9
6
|
export const setFocusInCalendar = (
|
|
10
7
|
calendarElement: CalendarSingleElement | CalendarRangeElement,
|
|
11
8
|
selectedDay: Date | undefined,
|
|
12
9
|
): void => {
|
|
13
|
-
const
|
|
10
|
+
const dayClass =
|
|
14
11
|
selectedDay && !isInvalidDate(selectedDay)
|
|
15
|
-
? calendarStyles.daySelected
|
|
16
|
-
: calendarStyles.dayToday
|
|
17
|
-
|
|
12
|
+
? `.${calendarStyles.daySelected}`
|
|
13
|
+
: `.${calendarStyles.dayToday}`
|
|
14
|
+
|
|
15
|
+
let dayToFocus = calendarElement.querySelector(`${dayClass} button`)
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
// RDP v9 puts the day class on the button inside the table cell whereas today and selected appear on the table cell
|
|
18
|
+
dayToFocus ??= calendarElement.querySelector(`.${calendarStyles.day}`)
|
|
21
19
|
|
|
22
|
-
if (
|
|
20
|
+
if (dayToFocus instanceof HTMLElement) {
|
|
21
|
+
dayToFocus.focus()
|
|
22
|
+
}
|
|
23
23
|
}
|
|
@@ -91,11 +91,8 @@ describe('<DatePicker />', () => {
|
|
|
91
91
|
expect(screen.getByRole('dialog')).toBeVisible()
|
|
92
92
|
})
|
|
93
93
|
|
|
94
|
+
// TODO: For some reason a single tab no longer jumps out of input to the button
|
|
94
95
|
await user.tab()
|
|
95
|
-
await waitFor(() => {
|
|
96
|
-
expect(input).toHaveFocus()
|
|
97
|
-
})
|
|
98
|
-
|
|
99
96
|
await user.tab()
|
|
100
97
|
await waitFor(() => {
|
|
101
98
|
const calendarButton = screen.getByRole('button', { name: 'Choose date' })
|
|
@@ -105,7 +102,7 @@ describe('<DatePicker />', () => {
|
|
|
105
102
|
await user.tab()
|
|
106
103
|
await waitFor(() => {
|
|
107
104
|
const arrowButton = screen.getByRole('button', {
|
|
108
|
-
name:
|
|
105
|
+
name: /Go to the previous month/i,
|
|
109
106
|
})
|
|
110
107
|
expect(arrowButton).toHaveFocus()
|
|
111
108
|
})
|
|
@@ -168,7 +165,8 @@ describe('<DatePicker /> - Focus element', () => {
|
|
|
168
165
|
|
|
169
166
|
const month = screen.getByRole('grid', { name: 'March 2022' })
|
|
170
167
|
const dateToSelect = within(month).getByRole('gridcell', { name: '6' })
|
|
171
|
-
|
|
168
|
+
const dateToSelectButton = within(dateToSelect).getByRole('button')
|
|
169
|
+
await user.click(dateToSelectButton)
|
|
172
170
|
|
|
173
171
|
const input = screen.getByLabelText('Input label', { selector: 'input' })
|
|
174
172
|
expect(input).toHaveFocus()
|
|
@@ -192,7 +190,8 @@ describe('<DatePicker /> - Focus element', () => {
|
|
|
192
190
|
|
|
193
191
|
const month = screen.getByRole('grid', { name: 'March 2022' })
|
|
194
192
|
const selectedDate = within(month).getByRole('gridcell', { name: '1' })
|
|
195
|
-
|
|
193
|
+
const selectedDateButton = within(selectedDate).getByRole('button')
|
|
194
|
+
expect(selectedDateButton).toHaveFocus()
|
|
196
195
|
})
|
|
197
196
|
|
|
198
197
|
it('returns focus to the input when the user escapes from the calendar', async () => {
|
|
@@ -233,7 +232,8 @@ describe('<DatePicker /> - Focus element', () => {
|
|
|
233
232
|
|
|
234
233
|
const month = screen.getByRole('grid', { name: 'March 2022' })
|
|
235
234
|
const selectedDate = within(month).getByRole('gridcell', { name: '1' })
|
|
236
|
-
|
|
235
|
+
const selectedDateButton = within(selectedDate).getByRole('button')
|
|
236
|
+
expect(selectedDateButton).toHaveFocus()
|
|
237
237
|
})
|
|
238
238
|
|
|
239
239
|
it('returns focus to the calendar button when the user escapes from the calendar', async () => {
|
|
@@ -277,7 +277,8 @@ describe('<DatePicker /> - Focus element', () => {
|
|
|
277
277
|
|
|
278
278
|
const month = screen.getByRole('grid', { name: 'March 2022' })
|
|
279
279
|
const selectedDate = within(month).getByRole('gridcell', { name: '1' })
|
|
280
|
-
|
|
280
|
+
const selectedDateButton = within(selectedDate).getByRole('button')
|
|
281
|
+
expect(selectedDateButton).toHaveFocus()
|
|
281
282
|
})
|
|
282
283
|
|
|
283
284
|
it('returns focus to the input when the user escapes from the calendar', async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useId, useRef, useState, type RefObject } from 'react'
|
|
2
2
|
import { useIntl } from '@cultureamp/i18n-react-intl'
|
|
3
|
-
import { type
|
|
3
|
+
import { type DayEventHandler } from 'react-day-picker'
|
|
4
4
|
import { FocusOn } from 'react-focus-on'
|
|
5
5
|
import {
|
|
6
6
|
CalendarSingle,
|
|
@@ -161,7 +161,7 @@ export const DatePicker = ({
|
|
|
161
161
|
onDayChange(newDate)
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
const handleCalendarDayChange:
|
|
164
|
+
const handleCalendarDayChange: DayEventHandler<React.MouseEvent> = (date) => {
|
|
165
165
|
if (!isDisabledDate(date, disabledDays)) {
|
|
166
166
|
const newInputValue =
|
|
167
167
|
lastTrigger === 'calendarButton'
|
|
@@ -127,8 +127,9 @@ describe('<FilterBarDatePicker />', () => {
|
|
|
127
127
|
|
|
128
128
|
const targetMonth = screen.getByRole('grid', { name: 'June 2023' })
|
|
129
129
|
const targetDay = within(targetMonth).getByRole('gridcell', { name: '7' })
|
|
130
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
130
131
|
|
|
131
|
-
await user.click(
|
|
132
|
+
await user.click(targetBtn)
|
|
132
133
|
|
|
133
134
|
await waitFor(() => {
|
|
134
135
|
expect(screen.getByRole('button', { name: 'Drank : 7 Jun 2023' })).toBeInTheDocument()
|
|
@@ -148,7 +149,8 @@ describe('<FilterBarDatePicker />', () => {
|
|
|
148
149
|
|
|
149
150
|
const targetMonth = screen.getByRole('grid', { name: 'June 2023' })
|
|
150
151
|
const targetDay = within(targetMonth).getByRole('gridcell', { name: '7' })
|
|
151
|
-
|
|
152
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
153
|
+
await user.click(targetBtn)
|
|
152
154
|
|
|
153
155
|
await waitFor(() => {
|
|
154
156
|
expect(onChange.mock.calls).toEqual([[new Date('2023-06-07')]])
|
|
@@ -138,7 +138,9 @@ describe('<FilterBarDateRangePicker />', () => {
|
|
|
138
138
|
|
|
139
139
|
const targetMonth = screen.getByRole('grid', { name: 'June 2022' })
|
|
140
140
|
const targetDay = within(targetMonth).getByRole('gridcell', { name: '23' })
|
|
141
|
-
|
|
141
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
142
|
+
|
|
143
|
+
await user.click(targetBtn)
|
|
142
144
|
await user.click(document.body) // Exit the focus lock
|
|
143
145
|
|
|
144
146
|
await waitFor(() => {
|
|
@@ -170,7 +172,9 @@ describe('<FilterBarDateRangePicker />', () => {
|
|
|
170
172
|
|
|
171
173
|
const targetMonth = screen.getByRole('grid', { name: 'June 2022' })
|
|
172
174
|
const targetDay = within(targetMonth).getByRole('gridcell', { name: '23' })
|
|
173
|
-
|
|
175
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
176
|
+
|
|
177
|
+
await user.click(targetBtn)
|
|
174
178
|
|
|
175
179
|
await waitFor(() => {
|
|
176
180
|
expect(onChange).toHaveBeenCalledWith({
|
|
@@ -60,7 +60,7 @@ export const FilterBarSelect = <Option extends SelectOption = SelectOption>({
|
|
|
60
60
|
<FilterBarButton {...triggerProps} filterId={id} isRemovable={filterState.isRemovable} />
|
|
61
61
|
)}
|
|
62
62
|
onSelectionChange={(key): void => {
|
|
63
|
-
updateValue(id, key)
|
|
63
|
+
updateValue(id, key ?? undefined)
|
|
64
64
|
onSelectionChange?.(key)
|
|
65
65
|
}}
|
|
66
66
|
isOpen={filterState.isOpen}
|
|
@@ -75,7 +75,8 @@ describe('<FilterDatePicker />', () => {
|
|
|
75
75
|
|
|
76
76
|
const targetMonth = screen.getByRole('grid', { name: 'May 2022' })
|
|
77
77
|
const targetDay = within(targetMonth).getByRole('gridcell', { name: '2' })
|
|
78
|
-
|
|
78
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
79
|
+
await user.click(targetBtn)
|
|
79
80
|
|
|
80
81
|
await waitFor(() => {
|
|
81
82
|
expect(dialog).not.toBeInTheDocument()
|
|
@@ -196,7 +197,7 @@ describe('<FilterDatePicker />', () => {
|
|
|
196
197
|
})
|
|
197
198
|
|
|
198
199
|
const navigateMonthsButton = getByRole('button', {
|
|
199
|
-
name:
|
|
200
|
+
name: /Go to the next month/i,
|
|
200
201
|
})
|
|
201
202
|
|
|
202
203
|
await user.click(navigateMonthsButton)
|
|
@@ -191,7 +191,8 @@ describe('<FilterDatePickerField />', () => {
|
|
|
191
191
|
const targetDay = within(targetMonth).getByRole('gridcell', {
|
|
192
192
|
name: '15',
|
|
193
193
|
})
|
|
194
|
-
|
|
194
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
195
|
+
await user.click(targetBtn)
|
|
195
196
|
|
|
196
197
|
await waitFor(() => {
|
|
197
198
|
expect(inputDateOnSubmit).toHaveBeenCalled()
|
|
@@ -210,7 +211,8 @@ describe('<FilterDatePickerField />', () => {
|
|
|
210
211
|
name: '12',
|
|
211
212
|
})
|
|
212
213
|
expect(targetDay).not.toHaveAttribute('aria-selected')
|
|
213
|
-
|
|
214
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
215
|
+
await user.click(targetBtn)
|
|
214
216
|
|
|
215
217
|
await waitFor(() => {
|
|
216
218
|
expect(targetDay).toHaveAttribute('aria-selected', 'true')
|
|
@@ -229,7 +231,8 @@ describe('<FilterDatePickerField />', () => {
|
|
|
229
231
|
const firstSelectedDay = within(targetMonth).getByRole('gridcell', {
|
|
230
232
|
name: '15',
|
|
231
233
|
})
|
|
232
|
-
|
|
234
|
+
const targetBtn = within(firstSelectedDay).getByRole('button')
|
|
235
|
+
await user.click(targetBtn)
|
|
233
236
|
|
|
234
237
|
await waitFor(() => {
|
|
235
238
|
expect(inputDate).toHaveValue('')
|
|
@@ -323,7 +326,8 @@ describe('<FilterDatePickerField />', () => {
|
|
|
323
326
|
const targetDay = within(targetMonth).getByRole('gridcell', {
|
|
324
327
|
name: '12',
|
|
325
328
|
})
|
|
326
|
-
|
|
329
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
330
|
+
await user.click(targetBtn)
|
|
327
331
|
|
|
328
332
|
await waitFor(() => {
|
|
329
333
|
expect(dateErrorContainer).not.toBeInTheDocument()
|
|
@@ -454,8 +454,8 @@ export const OnSmallViewport: Story = {
|
|
|
454
454
|
|
|
455
455
|
await step('Back and Forward arrow and both visible', async () => {
|
|
456
456
|
await waitFor(() => {
|
|
457
|
-
const prevMonth = canvas.getByLabelText(
|
|
458
|
-
const nextMonth = canvas.getByLabelText(
|
|
457
|
+
const prevMonth = canvas.getByLabelText(/Go to the previous month/i)
|
|
458
|
+
const nextMonth = canvas.getByLabelText(/Go to the next month/i)
|
|
459
459
|
|
|
460
460
|
expect(prevMonth).toBeVisible()
|
|
461
461
|
expect(nextMonth).toBeVisible()
|
|
@@ -254,7 +254,9 @@ describe('<FilterDateRangePickerField />', () => {
|
|
|
254
254
|
name: '12',
|
|
255
255
|
})
|
|
256
256
|
expect(targetDay).not.toHaveAttribute('aria-selected')
|
|
257
|
-
|
|
257
|
+
|
|
258
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
259
|
+
await user.click(targetBtn)
|
|
258
260
|
|
|
259
261
|
await waitFor(() => {
|
|
260
262
|
expect(targetDay).toHaveAttribute('aria-selected', 'true')
|
|
@@ -281,7 +283,8 @@ describe('<FilterDateRangePickerField />', () => {
|
|
|
281
283
|
name: '23',
|
|
282
284
|
})
|
|
283
285
|
expect(targetDay).not.toHaveAttribute('aria-selected')
|
|
284
|
-
|
|
286
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
287
|
+
await user.click(targetBtn)
|
|
285
288
|
|
|
286
289
|
await waitFor(() => {
|
|
287
290
|
expect(targetDay).toHaveAttribute('aria-selected', 'true')
|
|
@@ -289,7 +292,7 @@ describe('<FilterDateRangePickerField />', () => {
|
|
|
289
292
|
})
|
|
290
293
|
})
|
|
291
294
|
|
|
292
|
-
it('
|
|
295
|
+
it('sets the range end date to match the start date when clicking on the start date with an active range', async () => {
|
|
293
296
|
render(
|
|
294
297
|
<FilterDateRangePickerFieldWrapper
|
|
295
298
|
selectedRange={{
|
|
@@ -302,18 +305,20 @@ describe('<FilterDateRangePickerField />', () => {
|
|
|
302
305
|
|
|
303
306
|
const inputStartDate = screen.getByLabelText('Date from')
|
|
304
307
|
const inputEndDate = screen.getByLabelText('Date to')
|
|
305
|
-
|
|
308
|
+
const startDate = '15 May 2022'
|
|
309
|
+
expect(inputStartDate).toHaveValue(startDate)
|
|
306
310
|
expect(inputEndDate).toHaveValue('22 May 2022')
|
|
307
311
|
|
|
308
312
|
const targetMonth = screen.getByRole('grid', { name: 'May 2022' })
|
|
309
313
|
const firstSelectedDay = within(targetMonth).getByRole('gridcell', {
|
|
310
314
|
name: '15',
|
|
311
315
|
})
|
|
312
|
-
|
|
316
|
+
const firstSelectedDayBtn = within(firstSelectedDay).getByRole('button')
|
|
317
|
+
await user.click(firstSelectedDayBtn)
|
|
313
318
|
|
|
314
319
|
await waitFor(() => {
|
|
315
|
-
expect(inputStartDate).toHaveValue(
|
|
316
|
-
expect(inputEndDate).toHaveValue(
|
|
320
|
+
expect(inputStartDate).toHaveValue(startDate)
|
|
321
|
+
expect(inputEndDate).toHaveValue(startDate)
|
|
317
322
|
})
|
|
318
323
|
})
|
|
319
324
|
})
|
|
@@ -634,7 +639,8 @@ describe('<FilterDateRangePickerField />', () => {
|
|
|
634
639
|
const targetDay = within(targetMonth).getByRole('gridcell', {
|
|
635
640
|
name: '12',
|
|
636
641
|
})
|
|
637
|
-
|
|
642
|
+
const targetBtn = within(targetDay).getByRole('button')
|
|
643
|
+
await user.click(targetBtn)
|
|
638
644
|
|
|
639
645
|
await waitFor(() => {
|
|
640
646
|
expect(dateEndErrorContainer).not.toBeInTheDocument()
|
package/src/Link/Link.module.css
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.white.isDisabled {
|
|
97
|
-
--link-text-color:
|
|
97
|
+
--link-text-color: rgb(var(--color-white-rgb), 0.2);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.reversed {
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.reversed.isDisabled {
|
|
113
|
-
--link-text-color:
|
|
113
|
+
--link-text-color: rgb(var(--color-white-rgb), 0.2);
|
|
114
114
|
}
|
|
@@ -46,7 +46,7 @@ $large-width: 450px;
|
|
|
46
46
|
--border-width: var(--border-width-1);
|
|
47
47
|
|
|
48
48
|
border: var(--border-width) var(--border-solid-border-style);
|
|
49
|
-
filter: drop-shadow(0 0 7px
|
|
49
|
+
filter: drop-shadow(0 0 7px rgb(0, 0, 0, 0.1));
|
|
50
50
|
border-radius: $border-solid-border-radius;
|
|
51
51
|
color: $color-purple-800;
|
|
52
52
|
text-align: start;
|
|
@@ -7,9 +7,8 @@ $dt-color-radio-background-color-hover: $color-gray-200;
|
|
|
7
7
|
|
|
8
8
|
.container {
|
|
9
9
|
position: relative;
|
|
10
|
-
overflow-wrap:
|
|
11
|
-
word-
|
|
12
|
-
word-break: break-word;
|
|
10
|
+
overflow-wrap: anywhere;
|
|
11
|
+
word-break: normal;
|
|
13
12
|
margin-bottom: $spacing-sm;
|
|
14
13
|
|
|
15
14
|
label {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// Taken from design-tokens/sass/shadow
|
|
8
8
|
// we need control of the x and y offset in this component
|
|
9
|
-
$box-shadow-color-sm:
|
|
9
|
+
$box-shadow-color-sm: rgb(53, 55, 74, 0.09);
|
|
10
10
|
$row-height: 60px;
|
|
11
11
|
$row-height-data-variant: 48px;
|
|
12
12
|
|
|
@@ -170,7 +170,7 @@ $row-height-data-variant: 48px;
|
|
|
170
170
|
|
|
171
171
|
// This is an optical hack to stop the card shadow from overlapping over
|
|
172
172
|
// the proceeding cards
|
|
173
|
-
box-shadow: 0 4px 6px
|
|
173
|
+
box-shadow: 0 4px 6px rgb(53, 55, 74, 0.04);
|
|
174
174
|
border: solid 1px rgba($color-purple-700-rgb, 0.1);
|
|
175
175
|
transition:
|
|
176
176
|
box-shadow $animation-duration-rapid,
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
.default {
|
|
59
59
|
&:not(.error, .caution) {
|
|
60
60
|
&:disabled {
|
|
61
|
-
border-color:
|
|
61
|
+
border-color: rgb(var(--color-gray-500-rgb), 0.3);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -91,13 +91,13 @@
|
|
|
91
91
|
|
|
92
92
|
&.disabled {
|
|
93
93
|
background-color: var(--color-white);
|
|
94
|
-
border-color:
|
|
95
|
-
color:
|
|
94
|
+
border-color: rgb(var(--color-gray-500-rgb), 0.3);
|
|
95
|
+
color: rgb(var(--color-purple-800-rgb), 0.3);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.reversed {
|
|
100
|
-
border-color:
|
|
100
|
+
border-color: rgb(var(--color-white-rgb), 0.65);
|
|
101
101
|
background: transparent;
|
|
102
102
|
color: var(--color-white);
|
|
103
103
|
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
&:focus:not([disabled]),
|
|
109
109
|
&:hover:not([disabled]),
|
|
110
110
|
&:hover:focus:not([disabled]) {
|
|
111
|
-
background:
|
|
111
|
+
background: rgb(var(--color-white-rgb), 0.1);
|
|
112
112
|
border-color: var(--color-white);
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
|
|
135
135
|
&.disabled {
|
|
136
136
|
background: transparent;
|
|
137
|
-
border-color:
|
|
138
|
-
color:
|
|
137
|
+
border-color: rgb(var(--color-white-rgb), 0.3);
|
|
138
|
+
color: rgb(var(--color-white-rgb), 0.3);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
padding: var(--spacing-24) var(--spacing-12);
|
|
9
9
|
background: var(--color-white);
|
|
10
10
|
gap: var(--spacing-16);
|
|
11
|
-
border-top: 2px solid
|
|
11
|
+
border-top: 2px solid rgb(var(--color-gray-600-rgb), 0.1);
|
|
12
12
|
|
|
13
13
|
@media (width >= 768px) {
|
|
14
14
|
grid-template-columns: 1fr 5fr 1fr;
|
|
@@ -185,9 +185,9 @@
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
&.isDisabled {
|
|
188
|
-
--button-bg-color:
|
|
188
|
+
--button-bg-color: rgb(var(--color-white-rgb), 0.2);
|
|
189
189
|
--button-border-color: transparent;
|
|
190
|
-
--button-text-color:
|
|
190
|
+
--button-text-color: rgb(var(--color-purple-800-rgb), 0.7);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -197,24 +197,24 @@
|
|
|
197
197
|
--button-text-color: var(--color-white);
|
|
198
198
|
|
|
199
199
|
&[data-hovered] {
|
|
200
|
-
--button-bg-color:
|
|
200
|
+
--button-bg-color: rgb(var(--color-white-rgb), 0.2);
|
|
201
201
|
--button-border-color: var(--color-white);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
&[data-pressed] {
|
|
205
|
-
--button-bg-color:
|
|
205
|
+
--button-bg-color: rgb(var(--color-white-rgb), 0.1);
|
|
206
206
|
--button-border-color: var(--color-white);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
&[data-pending] {
|
|
210
|
-
--button-bg-color:
|
|
210
|
+
--button-bg-color: rgb(var(--color-white-rgb), 0.1);
|
|
211
211
|
--button-border-color: var(--color-white);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
&.isDisabled {
|
|
215
215
|
--button-bg-color: transparent;
|
|
216
|
-
--button-border-color:
|
|
217
|
-
--button-text-color:
|
|
216
|
+
--button-border-color: rgb(var(--color-white), 0.2);
|
|
217
|
+
--button-text-color: rgb(var(--color-white-rgb), 0.2);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -224,24 +224,24 @@
|
|
|
224
224
|
--button-text-color: var(--color-white);
|
|
225
225
|
|
|
226
226
|
&[data-hovered] {
|
|
227
|
-
--button-bg-color:
|
|
227
|
+
--button-bg-color: rgb(var(--color-white-rgb), 0.2);
|
|
228
228
|
--button-border-color: transparent;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
&[data-pressed] {
|
|
232
|
-
--button-bg-color:
|
|
232
|
+
--button-bg-color: rgb(var(--color-white-rgb), 0.1);
|
|
233
233
|
--button-border-color: transparent;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
&[data-pending] {
|
|
237
|
-
--button-bg-color:
|
|
237
|
+
--button-bg-color: rgb(var(--color-white-rgb), 0.1);
|
|
238
238
|
--button-border-color: transparent;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
&.isDisabled {
|
|
242
242
|
--button-bg-color: transparent;
|
|
243
243
|
--button-border-color: transparent;
|
|
244
|
-
--button-text-color:
|
|
244
|
+
--button-text-color: rgb(var(--color-white-rgb), 0.2);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
|