@policystudio/policy-studio-ui-vue 1.2.0-access.1 → 1.2.0-access.10
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/css/psui_styles_output.css +275 -206
- package/doc/src/stories/Button.stories.ts +95 -73
- package/doc/src/stories/DropdownList.stories.ts +2 -2
- package/doc/src/stories/Typography.mdx +14 -14
- package/package.json +1 -1
- package/src/assets/scss/components/PsAccordion.scss +2 -2
- package/src/assets/scss/components/PsButton.scss +118 -71
- package/src/assets/scss/components/PsCardInfos.scss +1 -1
- package/src/assets/scss/components/PsChartLegend.scss +2 -2
- package/src/assets/scss/components/PsCheckbox.scss +2 -2
- package/src/assets/scss/components/PsChips.scss +1 -1
- package/src/assets/scss/components/PsCollapse.scss +1 -1
- package/src/assets/scss/components/PsDataTable.scss +1 -1
- package/src/assets/scss/components/PsDateCardInfo.scss +7 -4
- package/src/assets/scss/components/PsDialog.scss +2 -2
- package/src/assets/scss/components/PsDraggable.scss +1 -1
- package/src/assets/scss/components/PsDropdownList.scss +2 -2
- package/src/assets/scss/components/PsInlineSelector.scss +3 -3
- package/src/assets/scss/components/PsInput.scss +2 -2
- package/src/assets/scss/components/PsInputSelect.scss +2 -2
- package/src/assets/scss/components/PsInputTextArea.scss +3 -3
- package/src/assets/scss/components/PsMiniTag.scss +15 -14
- package/src/assets/scss/components/PsRadioButton.scss +2 -2
- package/src/assets/scss/components/PsSlider.scss +1 -1
- package/src/assets/scss/components/PsTabHeader.scss +1 -1
- package/src/assets/scss/components/PsTableResults.scss +12 -12
- package/src/assets/scss/components/PsTestimonialCard.scss +3 -3
- package/src/assets/scss/components/PsToast.scss +1 -1
- package/src/assets/scss/components/PsToggle.scss +1 -1
- package/src/assets/scss/components/_PsTableResults.scss +3 -3
- package/src/components/badges-and-tags/PsDateCardInfo.vue +16 -5
- package/src/components/buttons/PsButton.vue +74 -17
- package/src/components/chips/PsChips.vue +10 -2
- package/src/components/navigations/PsBreadcrumb.vue +1 -1
- package/src/components/table-results/PsTableResults.vue +2 -2
- package/tailwind.config.js +66 -86
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.psui-el-table-results {
|
|
11
|
-
@apply psui-relative psui-align-top psui-w-full psui-max-w-full psui-text-
|
|
11
|
+
@apply psui-relative psui-align-top psui-w-full psui-max-w-full psui-text-16;
|
|
12
12
|
|
|
13
13
|
.is-warning-column {
|
|
14
14
|
padding-right: 12px;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
tr {
|
|
47
47
|
.title {
|
|
48
|
-
@apply psui-text-
|
|
48
|
+
@apply psui-text-14 psui-font-bold psui-leading-4 psui-text-gray-80;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
th {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
p {
|
|
86
|
-
@apply psui-text-
|
|
86
|
+
@apply psui-text-16;
|
|
87
87
|
line-height: 18px;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
td {
|
|
109
|
-
@apply psui-pl-8 psui-text-gray-80 psui-h-10 psui-text-right psui-text-
|
|
109
|
+
@apply psui-pl-8 psui-text-gray-80 psui-h-10 psui-text-right psui-text-14;
|
|
110
110
|
padding-top: 0.688rem;
|
|
111
111
|
padding-bottom: 0.688rem;
|
|
112
112
|
min-height: 41.5px;
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
|
|
178
178
|
tr {
|
|
179
179
|
.title {
|
|
180
|
-
@apply psui-text-
|
|
180
|
+
@apply psui-text-14 psui-font-bold psui-leading-4 psui-text-gray-80;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
th {
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
|
|
211
211
|
&:first-of-type {
|
|
212
212
|
th {
|
|
213
|
-
@apply psui-text-left psui-text-gray-50 psui-text-
|
|
213
|
+
@apply psui-text-left psui-text-gray-50 psui-text-16 psui-px-6;
|
|
214
214
|
padding-top: 7px;
|
|
215
215
|
padding-bottom: 7px;
|
|
216
216
|
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
p {
|
|
245
|
-
@apply psui-text-
|
|
245
|
+
@apply psui-text-14;
|
|
246
246
|
line-height: 18px;
|
|
247
247
|
|
|
248
248
|
&.title {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
.title {
|
|
270
|
-
@apply psui-text-
|
|
270
|
+
@apply psui-text-14 psui-text-gray-80 psui-font-bold psui-truncate psui-leading-none psui-ml-1;
|
|
271
271
|
width: 144px;
|
|
272
272
|
}
|
|
273
273
|
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
|
|
374
374
|
tr {
|
|
375
375
|
.title {
|
|
376
|
-
@apply psui-text-
|
|
376
|
+
@apply psui-text-14 psui-leading-4;
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
th {
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
p {
|
|
434
|
-
@apply psui-text-
|
|
434
|
+
@apply psui-text-16;
|
|
435
435
|
line-height: 18px;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
|
|
517
517
|
|
|
518
518
|
td {
|
|
519
|
-
@apply psui-text-gray-70 psui-h-[32px] psui-text-right psui-text-
|
|
519
|
+
@apply psui-text-gray-70 psui-h-[32px] psui-text-right psui-text-14;
|
|
520
520
|
|
|
521
521
|
&.hover-color {
|
|
522
522
|
background-color: #ECF7FB !important;
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
padding-bottom: 9px;
|
|
737
737
|
|
|
738
738
|
.title {
|
|
739
|
-
@apply psui-text-
|
|
739
|
+
@apply psui-text-14 psui-text-gray-50;
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&-description {
|
|
13
|
-
@apply psui-text-
|
|
13
|
+
@apply psui-text-16 psui-text-blue-80 psui-italic psui-leading-6;
|
|
14
14
|
margin-bottom: 33px;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
@apply psui-flex psui-flex-col psui-mt-auto;
|
|
19
19
|
|
|
20
20
|
&-user {
|
|
21
|
-
@apply psui-mb-1 psui-text-blue-80 psui-text-
|
|
21
|
+
@apply psui-mb-1 psui-text-blue-80 psui-text-14 psui-font-bold;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&-position,
|
|
25
25
|
&-jurisdiction {
|
|
26
|
-
@apply psui-text-gray-50 psui-text-
|
|
26
|
+
@apply psui-text-gray-50 psui-text-14 psui-leading-[130%];
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.psui-el-toast {
|
|
3
|
-
@apply psui-flex psui-items-center psui-text-
|
|
3
|
+
@apply psui-flex psui-items-center psui-text-16 psui-text-white psui-py-3 psui-px-4 psui-rounded-md psui-font-bold psui-shadow-elevation-20;
|
|
4
4
|
|
|
5
5
|
&:focus {
|
|
6
6
|
outline: none;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
border-radius: 4px;
|
|
8
8
|
|
|
9
9
|
button {
|
|
10
|
-
@apply transition-default psui-inline-flex psui-text-
|
|
10
|
+
@apply transition-default psui-inline-flex psui-text-14 psui-bg-gray-10 psui-text-blue-60 psui-outline-none psui-align-middle;
|
|
11
11
|
border-radius: 4px;
|
|
12
12
|
padding:1px 8px;
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer components{
|
|
2
2
|
|
|
3
3
|
.psui-el-table-results {
|
|
4
|
-
@apply .psui-w-full psui-overflow-auto
|
|
4
|
+
@apply .psui-w-full psui-overflow-auto psui-text-14;
|
|
5
5
|
|
|
6
6
|
&-header,
|
|
7
7
|
&-row {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
.title {
|
|
16
|
-
@apply
|
|
16
|
+
@apply psui-text-16 .psui-font-bold .psui-text-gray-80 .psui-border-b .psui-border-gray-30;
|
|
17
17
|
padding-top: 0.688rem;
|
|
18
18
|
padding-bottom: 0.688rem;
|
|
19
19
|
}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
h6 {
|
|
32
|
-
@apply
|
|
32
|
+
@apply psui-text-14 .psui-font-bold .psui-text-gray-80 .psui-leading-4;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
p {
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="psui-el-date-card">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<div class="psui-el-date-card-month-day">
|
|
4
|
+
<span>
|
|
5
|
+
{{ getMonth }}
|
|
6
|
+
</span>
|
|
7
|
+
<span>
|
|
8
|
+
{{ getDay }}
|
|
9
|
+
</span>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
6
12
|
<span class="psui-el-date-card-year">
|
|
7
13
|
{{ getYearFromDate }}
|
|
8
14
|
</span>
|
|
@@ -19,11 +25,16 @@ const props = defineProps({
|
|
|
19
25
|
},
|
|
20
26
|
})
|
|
21
27
|
|
|
22
|
-
const
|
|
23
|
-
const options = { month: 'short'
|
|
28
|
+
const getMonth= computed(() => {
|
|
29
|
+
const options = { month: 'short'}
|
|
24
30
|
return new Date(props.date)?.toLocaleString('default', options).replace('.', '')
|
|
25
31
|
})
|
|
26
32
|
|
|
33
|
+
const getDay = computed(() => {
|
|
34
|
+
const options = { day: '2-digit' }
|
|
35
|
+
return new Date(props.date)?.toLocaleString('default', options)
|
|
36
|
+
})
|
|
37
|
+
|
|
27
38
|
const getYearFromDate = computed(() => {
|
|
28
39
|
return new Date(props.date)?.toLocaleString('default', { year: 'numeric' })
|
|
29
40
|
})
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
:class="[getComponentClass, { hover: isHover && !disabled}, { disabled: disabled || loading }]"
|
|
8
8
|
>
|
|
9
9
|
<svg
|
|
10
|
-
v-if="loading"
|
|
11
|
-
class="psui-animate-spin psui-
|
|
12
|
-
:class="
|
|
10
|
+
v-if="loading && showLoadingLeft"
|
|
11
|
+
class="psui-animate-spin psui-h-5 psui-w-5 psui-text-black"
|
|
12
|
+
:class="iconLeft ? 'icon-left-side' : 'psui-mr-2'"
|
|
13
13
|
xmlns="http://www.w3.org/2000/svg"
|
|
14
14
|
fill="none"
|
|
15
15
|
viewBox="0 0 24 24"
|
|
@@ -28,12 +28,43 @@
|
|
|
28
28
|
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
29
29
|
/>
|
|
30
30
|
</svg>
|
|
31
|
+
|
|
31
32
|
<i
|
|
32
|
-
v-else-if="
|
|
33
|
-
:class="
|
|
33
|
+
v-else-if="iconLeft"
|
|
34
|
+
:class="[iconLeftClass, 'icon-left-side']"
|
|
34
35
|
class="material-icons-round"
|
|
35
|
-
>{{
|
|
36
|
+
>{{ iconLeft }}</i>
|
|
37
|
+
|
|
36
38
|
<span v-if="label">{{ label }}</span>
|
|
39
|
+
|
|
40
|
+
<svg
|
|
41
|
+
v-if="loading && showLoadingRight"
|
|
42
|
+
class="psui-animate-spin psui-h-5 psui-w-5 psui-text-black"
|
|
43
|
+
:class="iconRight ? 'icon-right-side' : 'psui-ml-2'"
|
|
44
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
45
|
+
fill="none"
|
|
46
|
+
viewBox="0 0 24 24"
|
|
47
|
+
>
|
|
48
|
+
<circle
|
|
49
|
+
class="psui-opacity-25"
|
|
50
|
+
cx="12"
|
|
51
|
+
cy="12"
|
|
52
|
+
r="10"
|
|
53
|
+
stroke="currentColor"
|
|
54
|
+
stroke-width="4"
|
|
55
|
+
/>
|
|
56
|
+
<path
|
|
57
|
+
class="psui-opacity-75"
|
|
58
|
+
fill="currentColor"
|
|
59
|
+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
|
|
63
|
+
<i
|
|
64
|
+
v-else-if="iconRight"
|
|
65
|
+
:class="[iconRightClass, 'icon-right-side']"
|
|
66
|
+
class="material-icons-round"
|
|
67
|
+
>{{ iconRight }}</i>
|
|
37
68
|
</button>
|
|
38
69
|
</template>
|
|
39
70
|
|
|
@@ -54,19 +85,26 @@ const props = defineProps({
|
|
|
54
85
|
default: 'solid',
|
|
55
86
|
validator: (value) => ['solid', 'outline', 'ghost', 'onlytext', 'caution'].includes(value),
|
|
56
87
|
},
|
|
57
|
-
|
|
88
|
+
iconLeft: {
|
|
58
89
|
type: String,
|
|
59
90
|
default: '',
|
|
60
91
|
},
|
|
61
|
-
|
|
92
|
+
iconLeftClass: {
|
|
62
93
|
type: String,
|
|
63
|
-
default: '
|
|
64
|
-
|
|
94
|
+
default: '',
|
|
95
|
+
},
|
|
96
|
+
iconRight: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: '',
|
|
99
|
+
},
|
|
100
|
+
iconRightClass: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: '',
|
|
65
103
|
},
|
|
66
104
|
size: {
|
|
67
105
|
type: String,
|
|
68
106
|
default: 'big',
|
|
69
|
-
validator: (value) => ['small', 'medium', 'big'].includes(value),
|
|
107
|
+
validator: (value) => ['compact', 'small', 'medium', 'big'].includes(value),
|
|
70
108
|
},
|
|
71
109
|
disabled: {
|
|
72
110
|
type: Boolean,
|
|
@@ -76,18 +114,37 @@ const props = defineProps({
|
|
|
76
114
|
type: Boolean,
|
|
77
115
|
default: false,
|
|
78
116
|
},
|
|
79
|
-
|
|
117
|
+
loadingPosition: {
|
|
80
118
|
type: String,
|
|
81
|
-
default: '',
|
|
119
|
+
default: 'left',
|
|
120
|
+
validator: (value) => ['left', 'right'].includes(value),
|
|
82
121
|
},
|
|
83
122
|
})
|
|
84
123
|
|
|
124
|
+
const showLoadingLeft = computed(() => {
|
|
125
|
+
if (props.iconLeft) return true
|
|
126
|
+
if (!props.iconLeft && !props.iconRight && props.loadingPosition === 'left') return true
|
|
127
|
+
return false
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
const showLoadingRight = computed(() => {
|
|
131
|
+
if (props.iconRight) return true
|
|
132
|
+
if (!props.iconLeft && !props.iconRight && props.loadingPosition === 'right') return true
|
|
133
|
+
return false
|
|
134
|
+
})
|
|
135
|
+
|
|
85
136
|
const getComponentClass = computed(() => {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
137
|
+
const classes = [`layout-${props.layout}`, `size-${props.size}`]
|
|
138
|
+
|
|
139
|
+
if (props.iconLeft && props.iconRight) {
|
|
140
|
+
classes.push('icon-both')
|
|
141
|
+
} else if (props.iconLeft) {
|
|
142
|
+
classes.push('icon-left')
|
|
143
|
+
} else if (props.iconRight) {
|
|
144
|
+
classes.push('icon-right')
|
|
90
145
|
}
|
|
146
|
+
|
|
147
|
+
return classes.join(' ')
|
|
91
148
|
})
|
|
92
149
|
|
|
93
150
|
const onClick = (event) => {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
@mouseover="isHovering = true"
|
|
12
12
|
@mouseleave="isHovering = false"
|
|
13
13
|
@click="emit('click')"
|
|
14
|
-
tabindex="0"
|
|
15
|
-
:role="type === 'button' ? 'button' : undefined"
|
|
14
|
+
:tabindex="isNested ? -1 : 0"
|
|
15
|
+
:role="type === 'button' && !isNested ? 'button' : undefined"
|
|
16
16
|
>
|
|
17
17
|
<input
|
|
18
18
|
@change="onChange"
|
|
@@ -133,6 +133,14 @@ const props = defineProps({
|
|
|
133
133
|
disabledText: {
|
|
134
134
|
type: String,
|
|
135
135
|
default: '',
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
* When true, removes tabindex and role attributes to avoid nested interactive controls.
|
|
139
|
+
* Use this when the chip is placed inside another interactive element like a button.
|
|
140
|
+
*/
|
|
141
|
+
isNested: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: false,
|
|
136
144
|
}
|
|
137
145
|
})
|
|
138
146
|
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
/>
|
|
75
75
|
|
|
76
76
|
<div v-if="item.is_appended">
|
|
77
|
-
<span class="psui-text-
|
|
77
|
+
<span class="psui-text-14 psui-font-bold psui-text-blue-60 psui-ml-2">
|
|
78
78
|
{{ item.title }}
|
|
79
79
|
</span>
|
|
80
80
|
</div>
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
class="psui-text-gray-60 hover:psui-bg-blue-10 hover:psui-text-blue-60 psui-font-bold psui-cursor-pointer psui-flex psui-items-center psui-gap-3 psui-px-5 psui-py-1 transition-all"
|
|
190
190
|
@click="executeCallback(item, action)"
|
|
191
191
|
>
|
|
192
|
-
<span class="psui-w-auto psui-text-
|
|
192
|
+
<span class="psui-w-auto psui-text-14">{{ action.title }}</span>
|
|
193
193
|
</li>
|
|
194
194
|
</ul>
|
|
195
195
|
</template>
|
package/tailwind.config.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
/** @type {import('tailwindcss').Config} */
|
|
2
2
|
|
|
3
|
+
//This sizemap is to use until we switch everthing to new design system format
|
|
4
|
+
const sizeMap = {
|
|
5
|
+
14: ['14px'],
|
|
6
|
+
16: ['16px'],
|
|
7
|
+
18: ['18px'],
|
|
8
|
+
20: ['20px'],
|
|
9
|
+
28: ['28px']
|
|
10
|
+
}
|
|
11
|
+
|
|
3
12
|
export default {
|
|
4
13
|
prefix: 'psui-',
|
|
5
|
-
content: [
|
|
6
|
-
'./index.html',
|
|
7
|
-
'./src/**/*.vue',
|
|
8
|
-
'./src/**/*.js',
|
|
9
|
-
'./src/**/*.ts',
|
|
10
|
-
'./src/**/*.jsx',
|
|
11
|
-
'./src/**/*.tsx',
|
|
12
|
-
],
|
|
14
|
+
content: ['./index.html', './src/**/*.vue', './src/**/*.js', './src/**/*.ts', './src/**/*.jsx', './src/**/*.tsx'],
|
|
13
15
|
darkMode: 'media', // or 'media' or 'class'
|
|
14
16
|
theme: {
|
|
15
17
|
colors: {
|
|
16
|
-
|
|
18
|
+
white: '#ffffff',
|
|
17
19
|
'gray-10': '#F3F6F9',
|
|
18
20
|
'gray-20': '#E6ECF2',
|
|
19
21
|
'gray-30': '#D6DDE5',
|
|
@@ -23,29 +25,32 @@ export default {
|
|
|
23
25
|
'gray-70': '#34404A',
|
|
24
26
|
'gray-80': '#28323B',
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
blue: '#5094D3',
|
|
27
29
|
'blue-10': '#ECF7FB',
|
|
28
30
|
'blue-20': '#E0EFF6',
|
|
29
|
-
'blue-
|
|
30
|
-
'blue-
|
|
31
|
+
'blue-30': '#BEDCEB',
|
|
32
|
+
'blue-40': '#86C0DB',
|
|
33
|
+
'blue-50': '#2DA5CC',
|
|
34
|
+
'blue-60': '#127999',
|
|
35
|
+
'blue-65': '#0A6480',
|
|
31
36
|
'blue-70': '#00465F',
|
|
32
37
|
'blue-80': '#002A3A',
|
|
33
38
|
|
|
34
39
|
'green-10': '#DEF8E8',
|
|
35
|
-
'green-20': '#
|
|
40
|
+
'green-20': '#9BDEB5',
|
|
36
41
|
'green-70': '#44A06A',
|
|
37
|
-
'green-80': '#
|
|
42
|
+
'green-80': '#0E7C45',
|
|
38
43
|
|
|
39
44
|
'yellow-10': '#FDF3E3',
|
|
40
|
-
'yellow-20': '#
|
|
45
|
+
'yellow-20': '#D7A556',
|
|
41
46
|
'yellow-70': '#B87305',
|
|
42
|
-
'yellow-80': '#
|
|
47
|
+
'yellow-80': '#B85614',
|
|
43
48
|
|
|
44
49
|
'red-10': '#FCEBEB',
|
|
45
50
|
'red-15': '#EAC5C5',
|
|
46
|
-
'red-20': '#
|
|
51
|
+
'red-20': '#CD9B9B',
|
|
47
52
|
'red-70': '#AA3937',
|
|
48
|
-
'red-80': '#
|
|
53
|
+
'red-80': '#A23634',
|
|
49
54
|
|
|
50
55
|
sky: '#518BE2',
|
|
51
56
|
teal: '#57C0BA',
|
|
@@ -54,121 +59,96 @@ export default {
|
|
|
54
59
|
orange: '#FF906D',
|
|
55
60
|
pink: '#FF77B8',
|
|
56
61
|
purple: '#9278C9',
|
|
57
|
-
transparent: 'transparent'
|
|
62
|
+
transparent: 'transparent'
|
|
63
|
+
},
|
|
64
|
+
backgroundImage: {
|
|
65
|
+
'gradient-emerald': 'linear-gradient(270deg, #5DB883 0%, #28B08E 100%)'
|
|
58
66
|
},
|
|
59
67
|
fontFamily: {
|
|
60
|
-
sans: ['Lato', 'sans-serif']
|
|
68
|
+
sans: ['Lato', 'sans-serif']
|
|
61
69
|
},
|
|
62
70
|
fontSize: {
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
...sizeMap,
|
|
72
|
+
|
|
73
|
+
big: sizeMap['16'],
|
|
74
|
+
small: sizeMap['14'],
|
|
65
75
|
xsmall: ['12px', '130%'],
|
|
66
|
-
accent: ['
|
|
76
|
+
accent: sizeMap['14'],
|
|
67
77
|
accentSmall: ['12px', { lineHeight: '130%', letterSpacing: '0.6px' }],
|
|
68
|
-
p: ['
|
|
69
|
-
h1: ['
|
|
78
|
+
p: sizeMap['16'],
|
|
79
|
+
h1: sizeMap['28'],
|
|
70
80
|
h2: ['24px', '130%'],
|
|
71
81
|
h3: ['22px', '120%'],
|
|
72
|
-
h4: ['
|
|
73
|
-
h5: ['
|
|
74
|
-
h6: ['17px', '120%']
|
|
82
|
+
h4: sizeMap['20'],
|
|
83
|
+
h5: sizeMap['18'],
|
|
84
|
+
h6: ['17px', '120%']
|
|
75
85
|
},
|
|
76
86
|
boxShadow: {
|
|
77
|
-
'elevation--5':
|
|
78
|
-
|
|
79
|
-
'elevation-
|
|
80
|
-
|
|
81
|
-
'elevation-
|
|
82
|
-
|
|
83
|
-
'elevation-20':
|
|
84
|
-
'0px 0px 8px rgba(0, 0, 0, 0.04), 0px 5px 6px rgba(0, 0, 0, 0.1)',
|
|
85
|
-
'elevation-30':
|
|
86
|
-
'0px 0px 8px rgba(0, 0, 0, 0.05), 0px 10px 15px rgba(0, 0, 0, 0.15)',
|
|
87
|
-
'elevation-40':
|
|
88
|
-
'0px 0px 20px rgba(0, 0, 0, 0.05), 0px 30px 60px rgba(0, 0, 0, 0.2)',
|
|
87
|
+
'elevation--5': '0px 1px 0px #FFFFFF, inset 0px 1px 2px rgba(0, 0, 0, 0.1)',
|
|
88
|
+
'elevation-5': '0px 0px 4px rgba(0, 0, 0, 0.03), 0px 1px 2px rgba(0, 0, 0, 0.1)',
|
|
89
|
+
'elevation-10': '0px 0px 8px rgba(0, 0, 0, 0.04), 0px 2px 5px rgba(0, 0, 0, 0.08)',
|
|
90
|
+
'elevation-20': '0px 0px 8px rgba(0, 0, 0, 0.04), 0px 5px 6px rgba(0, 0, 0, 0.1)',
|
|
91
|
+
'elevation-30': '0px 0px 8px rgba(0, 0, 0, 0.05), 0px 10px 15px rgba(0, 0, 0, 0.15)',
|
|
92
|
+
'elevation-40': '0px 0px 20px rgba(0, 0, 0, 0.05), 0px 30px 60px rgba(0, 0, 0, 0.2)',
|
|
89
93
|
sm: '0px 0px 4px rgba(0, 0, 0, 0.03), 0px 1px 2px rgba(0, 0, 0, 0.1)',
|
|
90
|
-
default:
|
|
91
|
-
'0px 0px 8px rgba(0, 0, 0, 0.04), 0px 2px 5px rgba(0, 0, 0, 0.08)',
|
|
94
|
+
default: '0px 0px 8px rgba(0, 0, 0, 0.04), 0px 2px 5px rgba(0, 0, 0, 0.08)',
|
|
92
95
|
md: '0px 0px 8px rgba(0, 0, 0, 0.04), 0px 5px 6px rgba(0, 0, 0, 0.1)',
|
|
93
96
|
lg: '0px 0px 8px rgba(0, 0, 0, 0.05), 0px 10px 15px rgba(0, 0, 0, 0.15)',
|
|
94
97
|
xl: '0px 0px 20px rgba(0, 0, 0, 0.05), 0px 30px 60px rgba(0, 0, 0, 0.2)',
|
|
95
98
|
inner: '0px 1px 0px #FFFFFF, inset 0px 1px 2px rgba(0, 0, 0, 0.1)',
|
|
96
|
-
none: 'none'
|
|
99
|
+
none: 'none'
|
|
97
100
|
},
|
|
98
101
|
borderColor: (theme) => ({
|
|
99
102
|
...theme('colors'),
|
|
100
|
-
DEFAULT: theme('colors.blue-70', 'currentColor')
|
|
103
|
+
DEFAULT: theme('colors.blue-70', 'currentColor')
|
|
101
104
|
}),
|
|
102
105
|
divideColor: (theme) => ({
|
|
103
|
-
...theme('colors')
|
|
106
|
+
...theme('colors')
|
|
104
107
|
}),
|
|
105
108
|
extend: {
|
|
106
109
|
divideOpacity: {
|
|
107
110
|
10: '0.1',
|
|
108
111
|
20: '0.2',
|
|
109
|
-
95: '0.95'
|
|
112
|
+
95: '0.95'
|
|
110
113
|
},
|
|
111
114
|
cursor: {
|
|
112
|
-
|
|
113
|
-
|
|
115
|
+
grab: 'grab',
|
|
116
|
+
grabbing: 'grabbing'
|
|
114
117
|
},
|
|
115
118
|
zIndex: {
|
|
116
|
-
|
|
119
|
+
15: '15'
|
|
117
120
|
},
|
|
118
121
|
space: {
|
|
119
|
-
|
|
122
|
+
0.5: '0.125rem'
|
|
120
123
|
},
|
|
121
124
|
margin: {
|
|
122
|
-
|
|
125
|
+
0.5: '0.125rem'
|
|
123
126
|
},
|
|
124
127
|
padding: {
|
|
125
|
-
|
|
128
|
+
0.5: '0.125rem'
|
|
126
129
|
},
|
|
127
|
-
inset:{
|
|
130
|
+
inset: {
|
|
128
131
|
'-1': '-1rem',
|
|
129
132
|
'-2': '-0.5rem'
|
|
130
133
|
}
|
|
131
134
|
},
|
|
132
135
|
screens: {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
'2xl': '1536px'
|
|
136
|
+
sm: '640px',
|
|
137
|
+
md: '768px',
|
|
138
|
+
lg: '1024px',
|
|
139
|
+
xl: '1280px',
|
|
140
|
+
'2xl': '1536px'
|
|
138
141
|
}
|
|
139
142
|
},
|
|
140
143
|
variants: {
|
|
141
144
|
boxShadow: ['active'],
|
|
142
145
|
borderRadius: ['last', 'first'],
|
|
143
|
-
backgroundColor: [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
'active',
|
|
147
|
-
'focus',
|
|
148
|
-
'group-hover',
|
|
149
|
-
'even',
|
|
150
|
-
'first',
|
|
151
|
-
'disabled',
|
|
152
|
-
'checked',
|
|
153
|
-
],
|
|
154
|
-
textColor: [
|
|
155
|
-
'responsive',
|
|
156
|
-
'hover',
|
|
157
|
-
'active',
|
|
158
|
-
'focus',
|
|
159
|
-
'group-hover',
|
|
160
|
-
'first',
|
|
161
|
-
'disabled',
|
|
162
|
-
'checked',
|
|
163
|
-
],
|
|
164
|
-
borderColor: [
|
|
165
|
-
'disabled',
|
|
166
|
-
'hover',
|
|
167
|
-
'checked'
|
|
168
|
-
],
|
|
146
|
+
backgroundColor: ['responsive', 'hover', 'active', 'focus', 'group-hover', 'even', 'first', 'disabled', 'checked'],
|
|
147
|
+
textColor: ['responsive', 'hover', 'active', 'focus', 'group-hover', 'first', 'disabled', 'checked'],
|
|
148
|
+
borderColor: ['disabled', 'hover', 'checked'],
|
|
169
149
|
space: ['responsive', 'hover', 'focus', 'first'],
|
|
170
150
|
padding: ['responsive', 'hover', 'focus', 'first'],
|
|
171
|
-
extend: {}
|
|
151
|
+
extend: {}
|
|
172
152
|
},
|
|
173
|
-
plugins: []
|
|
153
|
+
plugins: []
|
|
174
154
|
}
|