@kaizen/components 3.0.10 → 3.0.12
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/Brand/Brand.cjs +1 -1
- package/dist/cjs/src/DateInput/DateInput/DateInput.cjs +1 -1
- package/dist/cjs/src/DateInput/DateInput/DateInput.module.css.cjs +7 -0
- package/dist/cjs/src/DateInput/DateInputDescription/DateInputDescription.cjs +1 -1
- package/dist/cjs/src/DateInput/DateInputDescription/{DateInputDescription.module.scss.cjs → DateInputDescription.module.css.cjs} +4 -4
- package/dist/cjs/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.cjs +1 -1
- package/dist/cjs/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.css.cjs +8 -0
- package/dist/cjs/src/DatePicker/subcomponents/DateInputField/DateInputField.cjs +1 -1
- package/dist/cjs/src/DatePicker/subcomponents/DateInputField/DateInputField.module.css.cjs +6 -0
- package/dist/cjs/src/SingleSelect/subcomponents/Option/Option.cjs +2 -1
- package/dist/cjs/src/Tile/MultiActionTile/MultiActionTile.cjs +1 -1
- package/dist/cjs/src/Tile/MultiActionTile/MultiActionTile.module.css.cjs +7 -0
- package/dist/cjs/src/Tile/TileGrid/TileGrid.cjs +1 -1
- package/dist/cjs/src/Tile/TileGrid/TileGrid.module.css.cjs +6 -0
- package/dist/cjs/src/Tile/subcomponents/GenericTile/GenericTile.cjs +1 -1
- package/dist/cjs/src/Tile/subcomponents/GenericTile/GenericTile.module.css.cjs +19 -0
- package/dist/esm/src/Brand/Brand.mjs +1 -1
- package/dist/esm/src/DateInput/DateInput/DateInput.mjs +3 -3
- package/dist/esm/src/DateInput/DateInput/DateInput.module.css.mjs +5 -0
- package/dist/esm/src/DateInput/DateInputDescription/DateInputDescription.mjs +3 -3
- package/dist/esm/src/DateInput/DateInputDescription/{DateInputDescription.module.scss.mjs → DateInputDescription.module.css.mjs} +4 -4
- package/dist/esm/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.mjs +2 -2
- package/dist/esm/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.css.mjs +6 -0
- package/dist/esm/src/DatePicker/subcomponents/DateInputField/DateInputField.mjs +2 -2
- package/dist/esm/src/DatePicker/subcomponents/DateInputField/DateInputField.module.css.mjs +4 -0
- package/dist/esm/src/SingleSelect/subcomponents/Option/Option.mjs +2 -1
- package/dist/esm/src/Tile/MultiActionTile/MultiActionTile.mjs +3 -3
- package/dist/esm/src/Tile/MultiActionTile/MultiActionTile.module.css.mjs +5 -0
- package/dist/esm/src/Tile/TileGrid/TileGrid.mjs +2 -2
- package/dist/esm/src/Tile/TileGrid/TileGrid.module.css.mjs +4 -0
- package/dist/esm/src/Tile/subcomponents/GenericTile/GenericTile.mjs +14 -14
- package/dist/esm/src/Tile/subcomponents/GenericTile/GenericTile.module.css.mjs +17 -0
- package/dist/styles.css +22 -22
- package/package.json +8 -8
- package/src/Brand/Brand.tsx +2 -2
- package/src/DateInput/DateInput/{DateInput.module.scss → DateInput.module.css} +1 -3
- package/src/DateInput/DateInput/DateInput.tsx +1 -1
- package/src/DateInput/DateInputDescription/{DateInputDescription.module.scss → DateInputDescription.module.css} +2 -4
- package/src/DateInput/DateInputDescription/DateInputDescription.tsx +1 -1
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.css +43 -0
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.tsx +1 -1
- package/src/DatePicker/DatePicker.module.css +9 -0
- package/src/DatePicker/_docs/DatePicker.stories.tsx +28 -28
- package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.css +9 -0
- package/src/DatePicker/subcomponents/DateInputField/DateInputField.tsx +1 -1
- package/src/SingleSelect/subcomponents/Option/Option.tsx +2 -1
- package/src/Tile/MultiActionTile/{MultiActionTile.module.scss → MultiActionTile.module.css} +1 -3
- package/src/Tile/MultiActionTile/MultiActionTile.tsx +1 -1
- package/src/Tile/TileGrid/TileGrid.module.css +31 -0
- package/src/Tile/TileGrid/TileGrid.tsx +1 -1
- package/src/Tile/subcomponents/GenericTile/{GenericTile.module.scss → GenericTile.module.css} +19 -28
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +1 -1
- package/dist/cjs/src/DateInput/DateInput/DateInput.module.scss.cjs +0 -7
- package/dist/cjs/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss.cjs +0 -8
- package/dist/cjs/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss.cjs +0 -6
- package/dist/cjs/src/Tile/MultiActionTile/MultiActionTile.module.scss.cjs +0 -7
- package/dist/cjs/src/Tile/TileGrid/TileGrid.module.scss.cjs +0 -6
- package/dist/cjs/src/Tile/subcomponents/GenericTile/GenericTile.module.scss.cjs +0 -19
- package/dist/esm/src/DateInput/DateInput/DateInput.module.scss.mjs +0 -5
- package/dist/esm/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss.mjs +0 -6
- package/dist/esm/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss.mjs +0 -4
- package/dist/esm/src/Tile/MultiActionTile/MultiActionTile.module.scss.mjs +0 -5
- package/dist/esm/src/Tile/TileGrid/TileGrid.module.scss.mjs +0 -4
- package/dist/esm/src/Tile/subcomponents/GenericTile/GenericTile.module.scss.mjs +0 -17
- package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +0 -44
- package/src/DatePicker/DatePicker.module.scss +0 -11
- package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +0 -7
- package/src/Tile/TileGrid/TileGrid.module.scss +0 -28
- package/src/Tile/subcomponents/GenericTile/_variables.scss +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaizen/components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"description": "Kaizen component library",
|
|
5
5
|
"author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
|
|
6
6
|
"homepage": "https://cultureamp.design",
|
|
@@ -132,29 +132,29 @@
|
|
|
132
132
|
"@cultureamp/frontend-apis": "13.3.0",
|
|
133
133
|
"@cultureamp/i18n-react-intl": "^4.1.1",
|
|
134
134
|
"@cultureamp/package-bundler": "^4.0.1",
|
|
135
|
-
"cssnano": "^7.1.
|
|
135
|
+
"cssnano": "^7.1.5",
|
|
136
136
|
"@testing-library/dom": "^10.4.1",
|
|
137
137
|
"@types/jest-axe": "^3.5.9",
|
|
138
138
|
"@types/lodash.debounce": "^4.0.9",
|
|
139
139
|
"@types/react-highlight": "^0.12.8",
|
|
140
140
|
"@types/react-textfit": "^1.1.4",
|
|
141
141
|
"@types/uuid": "^11.0.0",
|
|
142
|
-
"autoprefixer": "^10.
|
|
142
|
+
"autoprefixer": "^10.5.0",
|
|
143
143
|
"concat-cli": "^4.0.0",
|
|
144
144
|
"identity-obj-proxy": "^3.0.0",
|
|
145
145
|
"jest-axe": "^10.0.0",
|
|
146
146
|
"lodash.isempty": "^4.4.0",
|
|
147
147
|
"normalize.css": "^8.0.1",
|
|
148
|
-
"postcss": "^8.5.
|
|
148
|
+
"postcss": "^8.5.10",
|
|
149
149
|
"postcss-cli": "^11.0.1",
|
|
150
150
|
"postcss-import": "^16.1.1",
|
|
151
|
-
"postcss-preset-env": "^11.2.
|
|
151
|
+
"postcss-preset-env": "^11.2.1",
|
|
152
152
|
"postcss-scss": "^4.0.9",
|
|
153
153
|
"query-string": "^9.3.1",
|
|
154
|
-
"react": "^19.2.
|
|
155
|
-
"react-dom": "^19.2.
|
|
154
|
+
"react": "^19.2.5",
|
|
155
|
+
"react-dom": "^19.2.5",
|
|
156
156
|
"react-highlight": "^0.15.0",
|
|
157
|
-
"react-intl": "^
|
|
157
|
+
"react-intl": "^10.1.2",
|
|
158
158
|
"rollup": "^4.60.1",
|
|
159
159
|
"sass": "1.79.6",
|
|
160
160
|
"serialize-query-params": "^2.0.4",
|
package/src/Brand/Brand.tsx
CHANGED
|
@@ -30,8 +30,8 @@ export type BrandProps = {
|
|
|
30
30
|
|
|
31
31
|
const isSVG = (
|
|
32
32
|
variant: VariantSVG['variant'] | VariantPicture['variant'],
|
|
33
|
-
|
|
34
|
-
):
|
|
33
|
+
_restProps: SVGProps | PictureProps,
|
|
34
|
+
): _restProps is SVGProps => variant === 'collective-intelligence'
|
|
35
35
|
|
|
36
36
|
export const Brand = ({ reversed = false, variant, ...restProps }: BrandProps): JSX.Element => {
|
|
37
37
|
if (isSVG(variant, restProps)) {
|
|
@@ -3,7 +3,7 @@ import classnames from 'classnames'
|
|
|
3
3
|
import { Input, type InputProps } from '~components/Input'
|
|
4
4
|
import { Label } from '~components/Label'
|
|
5
5
|
import { isRefObject } from '~components/utils/isRefObject'
|
|
6
|
-
import styles from './DateInput.module.
|
|
6
|
+
import styles from './DateInput.module.css'
|
|
7
7
|
|
|
8
8
|
type OmittedInputProps = 'reversed' | 'type' | 'inputRef'
|
|
9
9
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
@import '~@kaizen/design-tokens/sass/spacing';
|
|
2
|
-
|
|
3
1
|
@layer kz-components {
|
|
4
2
|
.dateInputDescription {
|
|
5
3
|
display: inline;
|
|
6
4
|
}
|
|
7
5
|
|
|
8
6
|
.dateInputFormatContainer {
|
|
9
|
-
margin-inline-start:
|
|
7
|
+
margin-inline-start: var(--spacing-xs);
|
|
10
8
|
white-space: nowrap;
|
|
11
9
|
}
|
|
12
10
|
|
|
@@ -16,6 +14,6 @@
|
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
.labelSeparator {
|
|
19
|
-
margin-inline-end:
|
|
17
|
+
margin-inline-end: var(--spacing-xs);
|
|
20
18
|
}
|
|
21
19
|
}
|
|
@@ -3,7 +3,7 @@ import { useIntl } from '@cultureamp/i18n-react-intl'
|
|
|
3
3
|
import type { Locale } from 'date-fns'
|
|
4
4
|
import { LabelledMessage } from '~components/LabelledMessage'
|
|
5
5
|
import { formatDescriptionInputFormat } from './utils/formatDescriptionInputFormat'
|
|
6
|
-
import styles from './DateInputDescription.module.
|
|
6
|
+
import styles from './DateInputDescription.module.css'
|
|
7
7
|
|
|
8
8
|
export type DateInputDescriptionProps = {
|
|
9
9
|
description?: string | JSX.Element
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
:root {
|
|
3
|
+
--input-disabled-opacity: 0.3;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.iconButton {
|
|
7
|
+
/* Button reset: repace @include button-reset */
|
|
8
|
+
appearance: none;
|
|
9
|
+
background: transparent;
|
|
10
|
+
color: inherit;
|
|
11
|
+
font: inherit;
|
|
12
|
+
margin: 0;
|
|
13
|
+
|
|
14
|
+
/* Styles */
|
|
15
|
+
display: flex;
|
|
16
|
+
padding: var(--spacing-6);
|
|
17
|
+
border: var(--border-solid-border-width) var(--border-solid-border-style) transparent;
|
|
18
|
+
border-radius: var(--border-solid-border-radius);
|
|
19
|
+
position: relative;
|
|
20
|
+
inset-inline-end: -0.35rem;
|
|
21
|
+
top: -40%;
|
|
22
|
+
|
|
23
|
+
&:focus-visible {
|
|
24
|
+
outline-offset: -2px;
|
|
25
|
+
outline: var(--color-blue-500) var(--border-focus-ring-border-style)
|
|
26
|
+
var(--border-focus-ring-border-width);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:hover:not([disabled]) {
|
|
30
|
+
background-color: var(--color-blue-100);
|
|
31
|
+
color: var(--color-blue-500);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.calendarActive {
|
|
36
|
+
color: var(--color-blue-500);
|
|
37
|
+
background-color: var(--color-blue-100);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.disabled {
|
|
41
|
+
opacity: var(--input-disabled-opacity);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -3,7 +3,7 @@ import classnames from 'classnames'
|
|
|
3
3
|
import { Icon } from '~components/Icon'
|
|
4
4
|
import { isRefObject } from '~components/utils/isRefObject'
|
|
5
5
|
import { DateInput, type DateInputProps } from '../DateInput'
|
|
6
|
-
import styles from './DateInputWithIconButton.module.
|
|
6
|
+
import styles from './DateInputWithIconButton.module.css'
|
|
7
7
|
|
|
8
8
|
export type DateInputWithIconButtonProps = {
|
|
9
9
|
/**
|
|
@@ -185,39 +185,39 @@ export const Validation: Story = {
|
|
|
185
185
|
<Text variant="body">
|
|
186
186
|
NOTE: This story includes additional custom validation to provide some guidance when
|
|
187
187
|
dealing with validation other than date isInvalid or isDisabled.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
</
|
|
198
|
-
</ul>
|
|
199
|
-
<Text variant="body">
|
|
188
|
+
<ul>
|
|
189
|
+
<li>
|
|
190
|
+
There will be a caution when the selectedDay <strong>is valid</strong> but{' '}
|
|
191
|
+
<strong>is not within this year</strong>.
|
|
192
|
+
</li>
|
|
193
|
+
<li>
|
|
194
|
+
There will be an error when the <strong>submit button is clicked</strong> and there
|
|
195
|
+
is a <strong>current error</strong> within the DatePicker.
|
|
196
|
+
</li>
|
|
197
|
+
</ul>
|
|
200
198
|
The <code>onValidate</code> callback returns a <code>validationResponse</code> object
|
|
201
199
|
which provides data such as a default validation message, and can be utilised for custom
|
|
202
200
|
validation.
|
|
203
201
|
</Text>
|
|
204
202
|
<Highlight className="json">{JSON.stringify(response, null, 4)}</Highlight>
|
|
205
|
-
<
|
|
206
|
-
<
|
|
207
|
-
<
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
<
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
<
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
203
|
+
<Text variant="body">
|
|
204
|
+
<ul>
|
|
205
|
+
<li>
|
|
206
|
+
<code>isInvalid</code>: A date that cannot be parsed. e.g "potato".
|
|
207
|
+
</li>
|
|
208
|
+
<li>
|
|
209
|
+
<code>isDisabled</code>: A date that have been set as disabled through the{' '}
|
|
210
|
+
<code>disabledDates</code> prop.
|
|
211
|
+
</li>
|
|
212
|
+
<li>
|
|
213
|
+
<code>isEmpty</code>: Input is empty.
|
|
214
|
+
</li>
|
|
215
|
+
<li>
|
|
216
|
+
<code>isValidDate</code>: Date input that is not <code>invalid</code> nor{' '}
|
|
217
|
+
<code>disabled</code> nor <code>empty</code>.
|
|
218
|
+
</li>
|
|
219
|
+
</ul>
|
|
220
|
+
</Text>
|
|
221
221
|
</div>
|
|
222
222
|
</>
|
|
223
223
|
)
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
type DateInputWithIconButtonRefs,
|
|
11
11
|
} from '~components/DateInput'
|
|
12
12
|
import { FieldMessage, type FieldMessageStatus } from '~components/FieldMessage'
|
|
13
|
-
import styles from './DateInputField.module.
|
|
13
|
+
import styles from './DateInputField.module.css'
|
|
14
14
|
|
|
15
15
|
export type DateInputFieldProps = {
|
|
16
16
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { type HTMLAttributes } from 'react'
|
|
2
|
+
import { useOption } from '@react-aria/listbox'
|
|
2
3
|
import { type FocusableElement } from '@react-types/shared'
|
|
3
4
|
import classnames from 'classnames'
|
|
4
|
-
import { mergeProps, useFocusRing
|
|
5
|
+
import { mergeProps, useFocusRing } from 'react-aria'
|
|
5
6
|
import { Icon } from '~components/Icon'
|
|
6
7
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
7
8
|
import { useSelectContext } from '../../context'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Button } from '~components/ButtonV1'
|
|
3
3
|
import { GenericTile, type GenericTileProps, type TileAction } from '../subcomponents/GenericTile'
|
|
4
|
-
import styles from './MultiActionTile.module.
|
|
4
|
+
import styles from './MultiActionTile.module.css'
|
|
5
5
|
|
|
6
6
|
export type MultiActionTileProps = {
|
|
7
7
|
primaryAction: TileAction
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@layer kz-components {
|
|
2
|
+
.grid {
|
|
3
|
+
--tile-width: 330px;
|
|
4
|
+
--tile-height: 370px;
|
|
5
|
+
|
|
6
|
+
list-style-type: none;
|
|
7
|
+
padding-inline-start: 0;
|
|
8
|
+
margin-block: 0;
|
|
9
|
+
display: grid;
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
the more we shave off the width here,
|
|
13
|
+
the less the tiles will grow when they lose one from the row
|
|
14
|
+
*/
|
|
15
|
+
grid-template-columns: repeat(auto-fill, minmax(calc(var(--tile-width) - 40px), 1fr));
|
|
16
|
+
gap: var(--spacing-md);
|
|
17
|
+
|
|
18
|
+
/* Replace @include ca-media-mobile */
|
|
19
|
+
@media (width <= 767px) {
|
|
20
|
+
grid-template-columns: repeat(2, minmax(226px, var(--tile-height)));
|
|
21
|
+
|
|
22
|
+
> * {
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media (width <= 480px) {
|
|
28
|
+
grid-template-columns: repeat(1, 100%);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -3,7 +3,7 @@ import classnames from 'classnames'
|
|
|
3
3
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
4
4
|
import { type InformationTileProps } from '../InformationTile'
|
|
5
5
|
import { type MultiActionTileProps } from '../MultiActionTile'
|
|
6
|
-
import styles from './TileGrid.module.
|
|
6
|
+
import styles from './TileGrid.module.css'
|
|
7
7
|
|
|
8
8
|
type TileProps = InformationTileProps | MultiActionTileProps
|
|
9
9
|
|
package/src/Tile/subcomponents/GenericTile/{GenericTile.module.scss → GenericTile.module.css}
RENAMED
|
@@ -1,45 +1,36 @@
|
|
|
1
|
-
@import '~@kaizen/design-tokens/sass/border';
|
|
2
|
-
@import '~@kaizen/design-tokens/sass/color';
|
|
3
|
-
@import '~@kaizen/design-tokens/sass/shadow';
|
|
4
|
-
@import '~@kaizen/design-tokens/sass/spacing';
|
|
5
|
-
@import '../../../../styles/utils/animation';
|
|
6
|
-
@import '../../../../styles/utils/responsive';
|
|
7
|
-
@import './variables';
|
|
8
|
-
|
|
9
1
|
@layer kz-components {
|
|
10
|
-
$tilePaddingTop: $spacing-xl;
|
|
11
|
-
|
|
12
2
|
.root {
|
|
13
3
|
perspective: 800px;
|
|
14
4
|
}
|
|
15
5
|
|
|
16
6
|
.tile {
|
|
17
7
|
position: relative;
|
|
18
|
-
width:
|
|
19
|
-
height:
|
|
20
|
-
transition: transform
|
|
8
|
+
width: 330px;
|
|
9
|
+
height: 370px;
|
|
10
|
+
transition: transform var(--animation-duration-slow, 400ms)
|
|
11
|
+
var(--animation-easing-function-ease-in-out, cubic-bezier(0.455, 0.03, 0.515, 0.955));
|
|
21
12
|
transform-style: preserve-3d;
|
|
22
|
-
box-shadow:
|
|
13
|
+
box-shadow: var(--shadow-small-box-shadow);
|
|
23
14
|
border-radius: 7px;
|
|
24
|
-
background-color:
|
|
15
|
+
background-color: var(--color-white);
|
|
25
16
|
|
|
26
17
|
[data-tile-grid] & {
|
|
27
18
|
width: auto;
|
|
28
19
|
}
|
|
29
20
|
|
|
30
|
-
@
|
|
21
|
+
@media (width <= 767px) {
|
|
31
22
|
width: 100%;
|
|
32
23
|
min-width: 226px;
|
|
33
|
-
max-width:
|
|
24
|
+
max-width: 370px;
|
|
34
25
|
}
|
|
35
26
|
|
|
36
|
-
@media (
|
|
27
|
+
@media (width <= 480px) {
|
|
37
28
|
max-width: 100%;
|
|
38
29
|
}
|
|
39
30
|
}
|
|
40
31
|
|
|
41
32
|
.titleMeta {
|
|
42
|
-
padding-top:
|
|
33
|
+
padding-top: var(--spacing-4);
|
|
43
34
|
}
|
|
44
35
|
|
|
45
36
|
.face {
|
|
@@ -62,14 +53,14 @@
|
|
|
62
53
|
|
|
63
54
|
.faceFront {
|
|
64
55
|
justify-content: space-between;
|
|
65
|
-
padding:
|
|
56
|
+
padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
|
|
66
57
|
}
|
|
67
58
|
|
|
68
59
|
.faceBack {
|
|
69
60
|
--generic-tile-border-color: var(--color-blue-400);
|
|
70
61
|
--generic-tile-background-color: var(--color-blue-100);
|
|
71
62
|
|
|
72
|
-
padding-top:
|
|
63
|
+
padding-top: var(--spacing-xl);
|
|
73
64
|
transform: rotateY(180deg);
|
|
74
65
|
}
|
|
75
66
|
|
|
@@ -89,7 +80,7 @@
|
|
|
89
80
|
|
|
90
81
|
.title {
|
|
91
82
|
text-align: center;
|
|
92
|
-
padding-bottom:
|
|
83
|
+
padding-bottom: var(--spacing-sm);
|
|
93
84
|
backface-visibility: hidden;
|
|
94
85
|
}
|
|
95
86
|
|
|
@@ -101,14 +92,14 @@
|
|
|
101
92
|
inset-block-start: 0;
|
|
102
93
|
inset-inline-end: 0;
|
|
103
94
|
position: absolute;
|
|
104
|
-
color:
|
|
95
|
+
color: rgb(var(--color-purple-800-rgb), 0.5);
|
|
105
96
|
}
|
|
106
97
|
|
|
107
98
|
.information {
|
|
108
99
|
display: flex;
|
|
109
|
-
padding-bottom:
|
|
110
|
-
padding-right:
|
|
111
|
-
padding-left:
|
|
100
|
+
padding-bottom: var(--spacing-md);
|
|
101
|
+
padding-right: var(--spacing-md);
|
|
102
|
+
padding-left: var(--spacing-md);
|
|
112
103
|
flex-direction: column;
|
|
113
104
|
align-items: center;
|
|
114
105
|
justify-content: space-between;
|
|
@@ -123,7 +114,7 @@
|
|
|
123
114
|
display: flex;
|
|
124
115
|
align-items: center;
|
|
125
116
|
justify-content: center;
|
|
126
|
-
margin-top:
|
|
127
|
-
height:
|
|
117
|
+
margin-top: var(--spacing-sm);
|
|
118
|
+
height: var(--spacing-xl);
|
|
128
119
|
}
|
|
129
120
|
}
|
|
@@ -7,7 +7,7 @@ import { Heading, type AllowedHeadingTags } from '~components/Heading'
|
|
|
7
7
|
import { Icon } from '~components/Icon'
|
|
8
8
|
import { Text } from '~components/Text'
|
|
9
9
|
import { type OverrideClassName } from '~components/types/OverrideClassName'
|
|
10
|
-
import styles from './GenericTile.module.
|
|
10
|
+
import styles from './GenericTile.module.css'
|
|
11
11
|
|
|
12
12
|
export type TileAction = GenericButtonProps
|
|
13
13
|
|
package/dist/cjs/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss.cjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var modules_d90a2c0e = {
|
|
4
|
-
"iconButton": "DateInputWithIconButton_module_iconButton__dffd0a18",
|
|
5
|
-
"calendarActive": "DateInputWithIconButton_module_calendarActive__dffd0a18",
|
|
6
|
-
"disabled": "DateInputWithIconButton_module_disabled__dffd0a18"
|
|
7
|
-
};
|
|
8
|
-
module.exports = modules_d90a2c0e;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var modules_fed39cba = {
|
|
4
|
-
"root": "GenericTile_module_root__de9f2627",
|
|
5
|
-
"tile": "GenericTile_module_tile__de9f2627",
|
|
6
|
-
"titleMeta": "GenericTile_module_titleMeta__de9f2627",
|
|
7
|
-
"face": "GenericTile_module_face__de9f2627",
|
|
8
|
-
"faceFront": "GenericTile_module_faceFront__de9f2627",
|
|
9
|
-
"faceBack": "GenericTile_module_faceBack__de9f2627",
|
|
10
|
-
"default": "GenericTile_module_default__de9f2627",
|
|
11
|
-
"expert-advice": "GenericTile_module_expertAdvice__de9f2627",
|
|
12
|
-
"isFlipped": "GenericTile_module_isFlipped__de9f2627",
|
|
13
|
-
"title": "GenericTile_module_title__de9f2627",
|
|
14
|
-
"actions": "GenericTile_module_actions__de9f2627",
|
|
15
|
-
"informationBtn": "GenericTile_module_informationBtn__de9f2627",
|
|
16
|
-
"information": "GenericTile_module_information__de9f2627",
|
|
17
|
-
"footer": "GenericTile_module_footer__de9f2627"
|
|
18
|
-
};
|
|
19
|
-
module.exports = modules_fed39cba;
|
package/dist/esm/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var modules_d90a2c0e = {
|
|
2
|
-
"iconButton": "DateInputWithIconButton_module_iconButton__dffd0a18",
|
|
3
|
-
"calendarActive": "DateInputWithIconButton_module_calendarActive__dffd0a18",
|
|
4
|
-
"disabled": "DateInputWithIconButton_module_disabled__dffd0a18"
|
|
5
|
-
};
|
|
6
|
-
export { modules_d90a2c0e as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var modules_fed39cba = {
|
|
2
|
-
"root": "GenericTile_module_root__de9f2627",
|
|
3
|
-
"tile": "GenericTile_module_tile__de9f2627",
|
|
4
|
-
"titleMeta": "GenericTile_module_titleMeta__de9f2627",
|
|
5
|
-
"face": "GenericTile_module_face__de9f2627",
|
|
6
|
-
"faceFront": "GenericTile_module_faceFront__de9f2627",
|
|
7
|
-
"faceBack": "GenericTile_module_faceBack__de9f2627",
|
|
8
|
-
"default": "GenericTile_module_default__de9f2627",
|
|
9
|
-
"expert-advice": "GenericTile_module_expertAdvice__de9f2627",
|
|
10
|
-
"isFlipped": "GenericTile_module_isFlipped__de9f2627",
|
|
11
|
-
"title": "GenericTile_module_title__de9f2627",
|
|
12
|
-
"actions": "GenericTile_module_actions__de9f2627",
|
|
13
|
-
"informationBtn": "GenericTile_module_informationBtn__de9f2627",
|
|
14
|
-
"information": "GenericTile_module_information__de9f2627",
|
|
15
|
-
"footer": "GenericTile_module_footer__de9f2627"
|
|
16
|
-
};
|
|
17
|
-
export { modules_fed39cba as default };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
@import '~@kaizen/design-tokens/sass/color';
|
|
2
|
-
@import '~@kaizen/design-tokens/sass/spacing';
|
|
3
|
-
@import '~@kaizen/design-tokens/sass/border';
|
|
4
|
-
@import '../../../styles/utils/animation';
|
|
5
|
-
@import '../../../styles/utils/button-reset';
|
|
6
|
-
|
|
7
|
-
@layer kz-components {
|
|
8
|
-
$input-disabled-opacity: 0.3;
|
|
9
|
-
|
|
10
|
-
.iconButton {
|
|
11
|
-
@include button-reset;
|
|
12
|
-
|
|
13
|
-
display: flex;
|
|
14
|
-
padding: var(--spacing-6);
|
|
15
|
-
border: $border-solid-border-width $border-solid-border-style transparent;
|
|
16
|
-
border-radius: $border-solid-border-radius;
|
|
17
|
-
position: relative;
|
|
18
|
-
inset-inline-end: -0.35rem;
|
|
19
|
-
top: -40%;
|
|
20
|
-
|
|
21
|
-
:focus {
|
|
22
|
-
outline: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:focus-visible {
|
|
26
|
-
outline-offset: -2px;
|
|
27
|
-
outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:hover:not([disabled]) {
|
|
31
|
-
background-color: $color-blue-100;
|
|
32
|
-
color: $color-blue-500;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.calendarActive {
|
|
37
|
-
color: $color-blue-500;
|
|
38
|
-
background-color: $color-blue-100;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.disabled {
|
|
42
|
-
opacity: $input-disabled-opacity;
|
|
43
|
-
}
|
|
44
|
-
}
|