@1024pix/pix-ui 46.13.1 → 46.13.3
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/package.json +6 -6
- package/app/stories/form.mdx +0 -11
- package/app/stories/form.stories.js +0 -142
- package/app/stories/pix-background-header.mdx +0 -29
- package/app/stories/pix-background-header.stories.js +0 -33
- package/app/stories/pix-banner.mdx +0 -86
- package/app/stories/pix-banner.stories.js +0 -112
- package/app/stories/pix-block.mdx +0 -32
- package/app/stories/pix-block.stories.js +0 -22
- package/app/stories/pix-button-link.mdx +0 -39
- package/app/stories/pix-button-link.stories.js +0 -114
- package/app/stories/pix-button-upload.mdx +0 -26
- package/app/stories/pix-button-upload.stories.js +0 -81
- package/app/stories/pix-button.mdx +0 -79
- package/app/stories/pix-button.stories.js +0 -270
- package/app/stories/pix-checkbox-variant-tile.mdx +0 -49
- package/app/stories/pix-checkbox-variant-tile.stories.js +0 -102
- package/app/stories/pix-checkbox.mdx +0 -75
- package/app/stories/pix-checkbox.stories.js +0 -220
- package/app/stories/pix-collapsible.mdx +0 -37
- package/app/stories/pix-collapsible.stories.js +0 -104
- package/app/stories/pix-filter-banner.mdx +0 -26
- package/app/stories/pix-filter-banner.stories.js +0 -87
- package/app/stories/pix-filterable-and-searchable-select.mdx +0 -62
- package/app/stories/pix-filterable-and-searchable-select.stories.js +0 -202
- package/app/stories/pix-icon-button.mdx +0 -84
- package/app/stories/pix-icon-button.stories.js +0 -108
- package/app/stories/pix-icon.mdx +0 -20
- package/app/stories/pix-icon.stories.js +0 -51
- package/app/stories/pix-indicator-card.mdx +0 -41
- package/app/stories/pix-indicator-card.stories.js +0 -78
- package/app/stories/pix-input-code.mdx +0 -33
- package/app/stories/pix-input-code.stories.js +0 -75
- package/app/stories/pix-input-password.mdx +0 -76
- package/app/stories/pix-input-password.stories.js +0 -145
- package/app/stories/pix-input.mdx +0 -104
- package/app/stories/pix-input.stories.js +0 -175
- package/app/stories/pix-label.mdx +0 -47
- package/app/stories/pix-label.stories.js +0 -112
- package/app/stories/pix-message.mdx +0 -54
- package/app/stories/pix-message.stories.js +0 -61
- package/app/stories/pix-modal.mdx +0 -53
- package/app/stories/pix-modal.stories.js +0 -73
- package/app/stories/pix-multi-select.mdx +0 -55
- package/app/stories/pix-multi-select.stories.js +0 -290
- package/app/stories/pix-pagination.mdx +0 -56
- package/app/stories/pix-pagination.stories.js +0 -148
- package/app/stories/pix-progress-gauge.mdx +0 -40
- package/app/stories/pix-progress-gauge.stories.js +0 -117
- package/app/stories/pix-radio-button-variant-tile.mdx +0 -46
- package/app/stories/pix-radio-button-variant-tile.stories.js +0 -92
- package/app/stories/pix-radio-button.mdx +0 -59
- package/app/stories/pix-radio-button.stories.js +0 -165
- package/app/stories/pix-return-to.mdx +0 -34
- package/app/stories/pix-return-to.stories.js +0 -41
- package/app/stories/pix-search-input.mdx +0 -41
- package/app/stories/pix-search-input.stories.js +0 -117
- package/app/stories/pix-select.mdx +0 -80
- package/app/stories/pix-select.stories.js +0 -445
- package/app/stories/pix-selectable-tag.mdx +0 -37
- package/app/stories/pix-selectable-tag.stories.js +0 -69
- package/app/stories/pix-sidebar.mdx +0 -49
- package/app/stories/pix-sidebar.stories.js +0 -74
- package/app/stories/pix-stars.mdx +0 -22
- package/app/stories/pix-stars.stories.js +0 -45
- package/app/stories/pix-tag.mdx +0 -26
- package/app/stories/pix-tag.stories.js +0 -25
- package/app/stories/pix-textarea.mdx +0 -50
- package/app/stories/pix-textarea.stories.js +0 -146
- package/app/stories/pix-toggle.mdx +0 -28
- package/app/stories/pix-toggle.stories.js +0 -134
- package/app/stories/pix-tooltip.mdx +0 -183
- package/app/stories/pix-tooltip.stories.js +0 -215
- package/app/styles/app.scss +0 -0
- package/scripts/migrate-colors-scss-vars-to-css-vars.sh +0 -120
- package/scripts/migrate-spacing-scss-vars-to-css-vars.sh +0 -23
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { hbs } from 'ember-cli-htmlbars';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Basics/Tooltip',
|
|
5
|
-
argTypes: {
|
|
6
|
-
id: {
|
|
7
|
-
name: 'id',
|
|
8
|
-
description: 'Identifiant permettant de référencer le déclencheur via aria-describedby',
|
|
9
|
-
type: { name: 'string', required: true },
|
|
10
|
-
},
|
|
11
|
-
text: {
|
|
12
|
-
name: 'text',
|
|
13
|
-
description: 'Texte à afficher',
|
|
14
|
-
type: { name: 'string', required: false },
|
|
15
|
-
},
|
|
16
|
-
position: {
|
|
17
|
-
name: 'position',
|
|
18
|
-
description: 'Position de la tooltip',
|
|
19
|
-
type: { name: 'string', required: false },
|
|
20
|
-
table: { defaultValue: { summary: 'top' } },
|
|
21
|
-
control: { type: 'select' },
|
|
22
|
-
options: [
|
|
23
|
-
'top',
|
|
24
|
-
'top-left',
|
|
25
|
-
'top-right',
|
|
26
|
-
'right',
|
|
27
|
-
'bottom',
|
|
28
|
-
'bottom-left',
|
|
29
|
-
'bottom-right',
|
|
30
|
-
'left',
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
isLight: {
|
|
34
|
-
name: 'isLight',
|
|
35
|
-
description: 'Affichage en mode clair',
|
|
36
|
-
type: { name: 'boolean', required: false },
|
|
37
|
-
table: { defaultValue: { summary: false } },
|
|
38
|
-
},
|
|
39
|
-
isInline: {
|
|
40
|
-
name: 'isInline',
|
|
41
|
-
description: 'Affichage en une seule ligne',
|
|
42
|
-
type: { name: 'boolean', required: false },
|
|
43
|
-
table: { defaultValue: { summary: false } },
|
|
44
|
-
},
|
|
45
|
-
isWide: {
|
|
46
|
-
name: 'isWide',
|
|
47
|
-
description: 'Affichage large',
|
|
48
|
-
type: { name: 'boolean', required: false },
|
|
49
|
-
table: { defaultValue: { summary: false } },
|
|
50
|
-
},
|
|
51
|
-
hide: {
|
|
52
|
-
name: 'hide',
|
|
53
|
-
description: 'Masquer la tooltip',
|
|
54
|
-
type: { name: 'boolean', required: false },
|
|
55
|
-
table: { defaultValue: { summary: false } },
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const Template = (args) => {
|
|
61
|
-
return {
|
|
62
|
-
template: hbs`<PixTooltip
|
|
63
|
-
@id={{this.id}}
|
|
64
|
-
@position={{this.position}}
|
|
65
|
-
@isLight={{this.isLight}}
|
|
66
|
-
@isInline={{this.isInline}}
|
|
67
|
-
@isWide={{this.isWide}}
|
|
68
|
-
@hide={{this.hide}}
|
|
69
|
-
>
|
|
70
|
-
<:triggerElement>
|
|
71
|
-
<PixButton aria-describedby={{this.id}}>
|
|
72
|
-
{{this.label}}
|
|
73
|
-
</PixButton>
|
|
74
|
-
</:triggerElement>
|
|
75
|
-
|
|
76
|
-
<:tooltip>
|
|
77
|
-
{{this.text}}
|
|
78
|
-
</:tooltip>
|
|
79
|
-
</PixTooltip>`,
|
|
80
|
-
context: args,
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const TemplateWithHTMLElement = (args) => {
|
|
85
|
-
return {
|
|
86
|
-
template: hbs`<PixTooltip @id={{this.id}} @isInline='true'>
|
|
87
|
-
<:triggerElement>
|
|
88
|
-
<PixButton aria-describedby={{this.id}}>
|
|
89
|
-
{{this.label}}
|
|
90
|
-
</PixButton>
|
|
91
|
-
</:triggerElement>
|
|
92
|
-
|
|
93
|
-
<:tooltip>
|
|
94
|
-
<FaIcon @icon='up-right-from-square' />
|
|
95
|
-
<strong>HTML/Ember</strong>
|
|
96
|
-
</:tooltip>
|
|
97
|
-
</PixTooltip>`,
|
|
98
|
-
context: args,
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
const TemplateWithIconElement = (args) => {
|
|
103
|
-
return {
|
|
104
|
-
template: hbs`<PixTooltip @id={{this.id}} @isInline='true'>
|
|
105
|
-
<:triggerElement>
|
|
106
|
-
{{! template-lint-disable no-inline-styles }}
|
|
107
|
-
|
|
108
|
-
<button style='padding:0; margin-left:4px; line-height:0;' type='button'>
|
|
109
|
-
<FaIcon class='external-link' @icon='up-right-from-square' />
|
|
110
|
-
</button>
|
|
111
|
-
</:triggerElement>
|
|
112
|
-
|
|
113
|
-
<:tooltip>
|
|
114
|
-
{{this.text}}
|
|
115
|
-
</:tooltip>
|
|
116
|
-
</PixTooltip>`,
|
|
117
|
-
context: args,
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
const TemplateWithInputElement = (args) => {
|
|
122
|
-
return {
|
|
123
|
-
template: hbs`<PixTooltip @id={{this.id}} @isInline='true'>
|
|
124
|
-
<:triggerElement>
|
|
125
|
-
<PixInput @id='some-id'>
|
|
126
|
-
<:label>{{this.label}}</:label>
|
|
127
|
-
</PixInput>
|
|
128
|
-
</:triggerElement>
|
|
129
|
-
|
|
130
|
-
<:tooltip>
|
|
131
|
-
{{this.text}}
|
|
132
|
-
</:tooltip>
|
|
133
|
-
</PixTooltip>`,
|
|
134
|
-
context: args,
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export const Default = Template.bind({});
|
|
139
|
-
Default.args = {
|
|
140
|
-
text: 'Hello World',
|
|
141
|
-
label: 'À survoler pour voir la tooltip',
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export const isLight = Template.bind({});
|
|
145
|
-
isLight.args = {
|
|
146
|
-
...Default.args,
|
|
147
|
-
id: 'tooltip-light',
|
|
148
|
-
isLight: true,
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
export const isWide = Template.bind({});
|
|
152
|
-
isWide.args = {
|
|
153
|
-
...Default.args,
|
|
154
|
-
id: 'tooltip-wide',
|
|
155
|
-
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut egestas molestie mauris vel viverra.',
|
|
156
|
-
isWide: true,
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export const isInline = Template.bind({});
|
|
160
|
-
isInline.args = {
|
|
161
|
-
...Default.args,
|
|
162
|
-
id: 'tooltip-large',
|
|
163
|
-
text: 'Je suis une trèèèèèèèès longue information',
|
|
164
|
-
isInline: true,
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
export const left = Template.bind({});
|
|
168
|
-
left.args = {
|
|
169
|
-
...Default.args,
|
|
170
|
-
id: 'tooltip-left',
|
|
171
|
-
label: 'Mon infobulle apparaît à gauche',
|
|
172
|
-
position: 'left',
|
|
173
|
-
isInline: true,
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
export const right = Template.bind({});
|
|
177
|
-
right.args = {
|
|
178
|
-
...Default.args,
|
|
179
|
-
id: 'tooltip-right',
|
|
180
|
-
label: 'Mon infobulle apparaît à droite',
|
|
181
|
-
position: 'right',
|
|
182
|
-
isInline: true,
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
export const bottom = Template.bind({});
|
|
186
|
-
bottom.args = {
|
|
187
|
-
...Default.args,
|
|
188
|
-
id: 'tooltip-bottom',
|
|
189
|
-
label: 'Mon infobulle apparaît en bas',
|
|
190
|
-
position: 'bottom',
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
export const WithHTML = TemplateWithHTMLElement.bind({});
|
|
194
|
-
WithHTML.args = {
|
|
195
|
-
label: 'À survoler pour voir la tooltip',
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
export const WithIcon = TemplateWithIconElement.bind({});
|
|
199
|
-
WithIcon.args = {
|
|
200
|
-
text: 'Hello World',
|
|
201
|
-
label: 'À survoler pour voir la tooltip',
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
export const WithInput = TemplateWithInputElement.bind({});
|
|
205
|
-
WithInput.args = {
|
|
206
|
-
text: 'Hello World',
|
|
207
|
-
label: 'À survoler pour voir la tooltip',
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export const hide = Template.bind({});
|
|
211
|
-
hide.args = {
|
|
212
|
-
label: "Survoler ici n'affiche pas tooltip",
|
|
213
|
-
text: "Ne devrait pas s'afficher",
|
|
214
|
-
hide: true,
|
|
215
|
-
};
|
package/app/styles/app.scss
DELETED
|
File without changes
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
#!/bin/bash -e
|
|
2
|
-
|
|
3
|
-
for f in $(find . -name '*.scss' -not -path './node_modules/*' -not -name '_colors.scss')
|
|
4
|
-
do
|
|
5
|
-
echo "parsing file" $f
|
|
6
|
-
sed -i '' -e 's/$pix-primary-5/var(--pix-primary-10)/' "$f"
|
|
7
|
-
sed -i '' -e 's/$pix-primary-10/var(--pix-primary-100)/' "$f"
|
|
8
|
-
sed -i '' -e 's/$pix-primary-20/var(--pix-primary-100)/' "$f"
|
|
9
|
-
sed -i '' -e 's/$pix-primary-30/var(--pix-primary-300)/' "$f"
|
|
10
|
-
sed -i '' -e 's/$pix-primary-40/var(--pix-primary-500)/' "$f"
|
|
11
|
-
sed -i '' -e 's/$pix-primary-60/var(--pix-primary-700)/' "$f"
|
|
12
|
-
sed -i '' -e 's/$pix-primary-70/var(--pix-primary-700)/' "$f"
|
|
13
|
-
sed -i '' -e 's/$pix-primary-80/var(--pix-primary-900)/' "$f"
|
|
14
|
-
sed -i '' -e 's/$pix-primary/var(--pix-primary-500)/' "$f"
|
|
15
|
-
|
|
16
|
-
sed -i '' -e 's/$pix-secondary-50/var(--pix-secondary-500)/' "$f"
|
|
17
|
-
sed -i '' -e 's/$pix-secondary-5/var(--pix-secondary-50)/' "$f"
|
|
18
|
-
sed -i '' -e 's/$pix-secondary-10/var(--pix-secondary-100)/' "$f"
|
|
19
|
-
sed -i '' -e 's/$pix-secondary-20/var(--pix-secondary-300)/' "$f"
|
|
20
|
-
sed -i '' -e 's/$pix-secondary-40/var(--pix-secondary-500)/' "$f"
|
|
21
|
-
sed -i '' -e 's/$pix-secondary-60/var(--pix-secondary-700)/' "$f"
|
|
22
|
-
sed -i '' -e 's/$pix-secondary-80/var(--pix-secondary-900)/' "$f"
|
|
23
|
-
sed -i '' -e 's/$pix-secondary/var(--pix-secondary-500)/' "$f"
|
|
24
|
-
|
|
25
|
-
sed -i '' -e 's/$pix-tertiary-50/var(--pix-tertiary-500)/' "$f"
|
|
26
|
-
sed -i '' -e 's/$pix-tertiary-5/var(--pix-tertiary-100)/' "$f"
|
|
27
|
-
sed -i '' -e 's/$pix-tertiary-10/var(--pix-tertiary-100)/' "$f"
|
|
28
|
-
sed -i '' -e 's/$pix-tertiary-20/var(--pix-tertiary-100)/' "$f"
|
|
29
|
-
sed -i '' -e 's/$pix-tertiary-30/var(--pix-tertiary-100)/' "$f"
|
|
30
|
-
sed -i '' -e 's/$pix-tertiary-60/var(--pix-tertiary-900)/' "$f"
|
|
31
|
-
sed -i '' -e 's/$pix-tertiary-70/var(--pix-tertiary-900)/' "$f"
|
|
32
|
-
sed -i '' -e 's/$pix-tertiary-80/var(--pix-tertiary-900)/' "$f"
|
|
33
|
-
sed -i '' -e 's/$pix-tertiary/var(--pix-tertiary-500)/' "$f"
|
|
34
|
-
|
|
35
|
-
sed -i '' -e 's/$pix-neutral-0/var(--pix-neutral-0)/' "$f"
|
|
36
|
-
sed -i '' -e 's/$pix-neutral-5/var(--pix-neutral-20)/' "$f"
|
|
37
|
-
sed -i '' -e 's/$pix-neutral-15/var(--pix-neutral-20)/' "$f"
|
|
38
|
-
sed -i '' -e 's/$pix-neutral-20/var(--pix-neutral-20)/' "$f"
|
|
39
|
-
sed -i '' -e 's/$pix-neutral-22/var(--pix-neutral-100)/' "$f"
|
|
40
|
-
sed -i '' -e 's/$pix-neutral-25/var(--pix-neutral-100)/' "$f"
|
|
41
|
-
sed -i '' -e 's/$pix-neutral-30/var(--pix-neutral-100)/' "$f"
|
|
42
|
-
sed -i '' -e 's/$pix-neutral-35/var(--pix-neutral-100)/' "$f"
|
|
43
|
-
sed -i '' -e 's/$pix-neutral-40/var(--pix-neutral-500)/' "$f"
|
|
44
|
-
sed -i '' -e 's/$pix-neutral-45/var(--pix-neutral-500)/' "$f"
|
|
45
|
-
sed -i '' -e 's/$pix-neutral-50/var(--pix-neutral-500)/' "$f"
|
|
46
|
-
sed -i '' -e 's/$pix-neutral-60/var(--pix-neutral-500)/' "$f"
|
|
47
|
-
sed -i '' -e 's/$pix-neutral-70/var(--pix-neutral-800)/' "$f"
|
|
48
|
-
sed -i '' -e 's/$pix-neutral-80/var(--pix-neutral-800)/' "$f"
|
|
49
|
-
sed -i '' -e 's/$pix-neutral-90/var(--pix-neutral-900)/' "$f"
|
|
50
|
-
sed -i '' -e 's/$pix-neutral-100/var(--pix-neutral-900)/' "$f"
|
|
51
|
-
sed -i '' -e 's/$pix-neutral-110/var(--pix-neutral-900)/' "$f"
|
|
52
|
-
sed -i '' -e 's/$pix-neutral-10/var(--pix-neutral-20)/' "$f"
|
|
53
|
-
|
|
54
|
-
sed -i '' -e 's/$pix-success-50/var(--pix-success-500)/' "$f"
|
|
55
|
-
sed -i '' -e 's/$pix-success-5/var(--pix-success-50)/' "$f"
|
|
56
|
-
sed -i '' -e 's/$pix-success-10/var(--pix-success-100)/' "$f"
|
|
57
|
-
sed -i '' -e 's/$pix-success-20/var(--pix-success-300)/' "$f"
|
|
58
|
-
sed -i '' -e 's/$pix-success-30/var(--pix-success-300)/' "$f"
|
|
59
|
-
sed -i '' -e 's/$pix-success-60/var(--pix-success-700)/' "$f"
|
|
60
|
-
sed -i '' -e 's/$pix-success-70/var(--pix-success-700)/' "$f"
|
|
61
|
-
sed -i '' -e 's/$pix-success-80/var(--pix-success-900)/' "$f"
|
|
62
|
-
sed -i '' -e 's/$pix-success/var(--pix-success-500)/' "$f"
|
|
63
|
-
|
|
64
|
-
sed -i '' -e 's/$pix-warning-50/var(--pix-warning-500)/' "$f"
|
|
65
|
-
sed -i '' -e 's/$pix-warning-5/var(--pix-warning-50)/' "$f"
|
|
66
|
-
sed -i '' -e 's/$pix-warning-10/var(--pix-warning-100)/' "$f"
|
|
67
|
-
sed -i '' -e 's/$pix-warning-20/var(--pix-warning-300)/' "$f"
|
|
68
|
-
sed -i '' -e 's/$pix-warning-30/var(--pix-warning-300)/' "$f"
|
|
69
|
-
sed -i '' -e 's/$pix-warning-40/var(--pix-warning-500)/' "$f"
|
|
70
|
-
sed -i '' -e 's/$pix-warning-60/var(--pix-warning-700)/' "$f"
|
|
71
|
-
sed -i '' -e 's/$pix-warning-70/var(--pix-warning-700)/' "$f"
|
|
72
|
-
sed -i '' -e 's/$pix-warning-80/var(--pix-warning-900)/' "$f"
|
|
73
|
-
|
|
74
|
-
sed -i '' -e 's/$pix-error-50/var(--pix-error-500)/' "$f"
|
|
75
|
-
sed -i '' -e 's/$pix-error-5/var(--pix-error-50)/' "$f"
|
|
76
|
-
sed -i '' -e 's/$pix-error-10/var(--pix-error-100)/' "$f"
|
|
77
|
-
sed -i '' -e 's/$pix-error-20/var(--pix-error-500)/' "$f"
|
|
78
|
-
sed -i '' -e 's/$pix-error-30/var(--pix-error-500)/' "$f"
|
|
79
|
-
sed -i '' -e 's/$pix-error-40/var(--pix-error-500)/' "$f"
|
|
80
|
-
sed -i '' -e 's/$pix-error-60/var(--pix-error-700)/' "$f"
|
|
81
|
-
sed -i '' -e 's/$pix-error-70/var(--pix-error-700)/' "$f"
|
|
82
|
-
sed -i '' -e 's/$pix-error-80/var(--pix-error-900)/' "$f"
|
|
83
|
-
sed -i '' -e 's/$pix-error-90/var(--pix-error-900)/' "$f"
|
|
84
|
-
|
|
85
|
-
sed -i '' -e 's/$pix-secondary-certif-50/var(--pix-certif-500)/' "$f"
|
|
86
|
-
sed -i '' -e 's/$pix-secondary-certif-5/var(--pix-certif-50)/' "$f"
|
|
87
|
-
sed -i '' -e 's/$pix-secondary-certif-10/var(--pix-certif-50)/' "$f"
|
|
88
|
-
sed -i '' -e 's/$pix-secondary-certif-20/var(--pix-certif-50)/' "$f"
|
|
89
|
-
sed -i '' -e 's/$pix-secondary-certif-30/var(--pix-certif-50)/' "$f"
|
|
90
|
-
sed -i '' -e 's/$pix-secondary-certif-60/var(--pix-certif-500)/' "$f"
|
|
91
|
-
sed -i '' -e 's/$pix-secondary-certif-70/var(--pix-certif-500)/' "$f"
|
|
92
|
-
sed -i '' -e 's/$pix-secondary-certif-80/var(--pix-certif-500)/' "$f"
|
|
93
|
-
sed -i '' -e 's/$pix-secondary-certif/var(--pix-certif-50)/' "$f"
|
|
94
|
-
|
|
95
|
-
sed -i '' -e 's/$pix-secondary-orga-50/var(--pix-orga-500)/' "$f"
|
|
96
|
-
sed -i '' -e 's/$pix-secondary-orga-5/var(--pix-orga-50)/' "$f"
|
|
97
|
-
sed -i '' -e 's/$pix-secondary-orga-10/var(--pix-orga-50)/' "$f"
|
|
98
|
-
sed -i '' -e 's/$pix-secondary-orga-20/var(--pix-orga-50)/' "$f"
|
|
99
|
-
sed -i '' -e 's/$pix-secondary-orga-30/var(--pix-orga-50)/' "$f"
|
|
100
|
-
sed -i '' -e 's/$pix-secondary-orga-60/var(--pix-orga-500)/' "$f"
|
|
101
|
-
sed -i '' -e 's/$pix-secondary-orga-70/var(--pix-orga-500)/' "$f"
|
|
102
|
-
sed -i '' -e 's/$pix-secondary-orga-80/var(--pix-orga-500)/' "$f"
|
|
103
|
-
sed -i '' -e 's/$pix-secondary-orga/var(--pix-orga-50)/' "$f"
|
|
104
|
-
|
|
105
|
-
sed -i '' -e 's/$pix-information-dark/var(--pix-information-dark)/' "$f"
|
|
106
|
-
sed -i '' -e 's/$pix-information-light/var(--pix-information-light)/' "$f"
|
|
107
|
-
|
|
108
|
-
sed -i '' -e 's/$pix-content-dark/var(--pix-content-dark)/' "$f"
|
|
109
|
-
sed -i '' -e 's/$pix-content-light/var(--pix-content-light)/' "$f"
|
|
110
|
-
|
|
111
|
-
sed -i '' -e 's/$pix-communication-dark/var(--pix-communication-dark)/' "$f"
|
|
112
|
-
sed -i '' -e 's/$pix-communication-light/var(--pix-communication-light)/' "$f"
|
|
113
|
-
|
|
114
|
-
sed -i '' -e 's/$pix-security-dark/var(--pix-security-dark)/' "$f"
|
|
115
|
-
sed -i '' -e 's/$pix-security-light/var(--pix-security-light)/' "$f"
|
|
116
|
-
|
|
117
|
-
sed -i '' -e 's/$pix-environment-dark/var(--pix-environment-dark)/' "$f"
|
|
118
|
-
sed -i '' -e 's/$pix-environment-light/var(--pix-environment-light)/' "$f"
|
|
119
|
-
|
|
120
|
-
done
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#!/bin/bash -e
|
|
2
|
-
|
|
3
|
-
for f in $(find . -name '*.scss' -not -path './node_modules/*' -not -name '_spacing.scss')
|
|
4
|
-
do
|
|
5
|
-
echo "parsing file" $f
|
|
6
|
-
sed -i '' -e 's/$pix-spacing-xxs/var(--pix-spacing-1x)/g' "$f"
|
|
7
|
-
sed -i '' -e 's/$pix-spacing-xs/var(--pix-spacing-2x)/g' "$f"
|
|
8
|
-
sed -i '' -e 's/$pix-spacing-s/var(--pix-spacing-4x)/g' "$f"
|
|
9
|
-
sed -i '' -e 's/$pix-spacing-m/var(--pix-spacing-6x)/g' "$f"
|
|
10
|
-
sed -i '' -e 's/$pix-spacing-l/var(--pix-spacing-8x)/g' "$f"
|
|
11
|
-
sed -i '' -e 's/$pix-spacing-xl/var(--pix-spacing-10x)/g' "$f"
|
|
12
|
-
sed -i '' -e 's/$pix-spacing-xxl/var(--pix-spacing-12x)/g' "$f"
|
|
13
|
-
|
|
14
|
-
sed -i '' -e 's/\b4px/var(--pix-spacing-1x)/g' "$f"
|
|
15
|
-
sed -i '' -e 's/\b8px/var(--pix-spacing-2x)/g' "$f"
|
|
16
|
-
sed -i '' -e 's/\b12px/var(--pix-spacing-3x)/g' "$f"
|
|
17
|
-
sed -i '' -e 's/\b16px/var(--pix-spacing-4x)/g' "$f"
|
|
18
|
-
sed -i '' -e 's/\b24px/var(--pix-spacing-6x)/g' "$f"
|
|
19
|
-
sed -i '' -e 's/\b32px/var(--pix-spacing-8x)/g' "$f"
|
|
20
|
-
sed -i '' -e 's/\b40px/var(--pix-spacing-10x)/g' "$f"
|
|
21
|
-
sed -i '' -e 's/\b48px/var(--pix-spacing-12x)/g' "$f"
|
|
22
|
-
|
|
23
|
-
done
|