@1024pix/pix-ui 46.4.3 → 46.5.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.
|
@@ -10,9 +10,13 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
&__button {
|
|
13
|
+
@extend %pix-body-s;
|
|
14
|
+
|
|
13
15
|
width: fit-content;
|
|
14
16
|
padding: var(--pix-spacing-1x);
|
|
15
|
-
|
|
17
|
+
font-weight: var(--pix-font-bold);
|
|
18
|
+
line-height: 1.572;
|
|
19
|
+
background: var(--pix-neutral-20);
|
|
16
20
|
border: 1px solid var(--pix-neutral-500);
|
|
17
21
|
border-radius: 4px;
|
|
18
22
|
}
|
|
@@ -20,11 +24,13 @@
|
|
|
20
24
|
&__on,
|
|
21
25
|
&__off {
|
|
22
26
|
display: inline-block;
|
|
23
|
-
padding: var(--pix-spacing-2x);
|
|
24
|
-
color: var(--pix-neutral-800);
|
|
27
|
+
padding: var(--pix-spacing-1x) var(--pix-spacing-2x);
|
|
25
28
|
border-radius: 4px;
|
|
29
|
+
}
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
&__on {
|
|
32
|
+
color: var(--pix-neutral-800);
|
|
33
|
+
font-weight: var(--pix-font-normal);
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
&__off {
|
|
@@ -36,11 +42,13 @@
|
|
|
36
42
|
.pix-toggle {
|
|
37
43
|
&__on {
|
|
38
44
|
color: var(--pix-neutral-20);
|
|
45
|
+
font-weight: inherit;
|
|
39
46
|
background-color: var(--pix-neutral-800);
|
|
40
47
|
}
|
|
41
48
|
|
|
42
49
|
&__off {
|
|
43
50
|
color: inherit;
|
|
51
|
+
font-weight: var(--pix-font-normal);
|
|
44
52
|
background-color: transparent;
|
|
45
53
|
}
|
|
46
54
|
}
|
|
@@ -2,7 +2,7 @@ import { hbs } from 'ember-cli-htmlbars';
|
|
|
2
2
|
import { action } from '@storybook/addon-actions';
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
title: '
|
|
5
|
+
title: 'Basics/Toggle',
|
|
6
6
|
argTypes: {
|
|
7
7
|
label: {
|
|
8
8
|
name: 'label',
|
|
@@ -100,8 +100,8 @@ const TemplateWithYields = (args) => {
|
|
|
100
100
|
export const Default = Template.bind({});
|
|
101
101
|
Default.args = {
|
|
102
102
|
label: 'Mon toggle',
|
|
103
|
-
onLabel: '
|
|
104
|
-
offLabel: '
|
|
103
|
+
onLabel: 'Option A',
|
|
104
|
+
offLabel: 'Option B',
|
|
105
105
|
toggled: false,
|
|
106
106
|
onChange: action('onChange'),
|
|
107
107
|
};
|
|
@@ -110,8 +110,8 @@ export const Inline = Template.bind({});
|
|
|
110
110
|
Inline.args = {
|
|
111
111
|
inline: true,
|
|
112
112
|
label: 'Mon toggle',
|
|
113
|
-
onLabel: '
|
|
114
|
-
offLabel: '
|
|
113
|
+
onLabel: 'Option A',
|
|
114
|
+
offLabel: 'Option B',
|
|
115
115
|
toggled: false,
|
|
116
116
|
onChange: action('onChange'),
|
|
117
117
|
};
|
|
@@ -120,8 +120,8 @@ export const ScreenReaderOnly = Template.bind({});
|
|
|
120
120
|
ScreenReaderOnly.args = {
|
|
121
121
|
screenReaderOnly: true,
|
|
122
122
|
label: 'Mon toggle',
|
|
123
|
-
onLabel: '
|
|
124
|
-
offLabel: '
|
|
123
|
+
onLabel: 'Option A',
|
|
124
|
+
offLabel: 'Option B',
|
|
125
125
|
toggled: false,
|
|
126
126
|
onChange: action('onChange'),
|
|
127
127
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1024pix/pix-ui",
|
|
3
|
-
"version": "46.
|
|
3
|
+
"version": "46.5.1",
|
|
4
4
|
"description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -78,9 +78,7 @@
|
|
|
78
78
|
"@storybook/addon-controls": "^8.0.0",
|
|
79
79
|
"@storybook/addon-docs": "^8.0.0",
|
|
80
80
|
"@storybook/addon-essentials": "^8.0.0",
|
|
81
|
-
"@storybook/addon-mdx-gfm": "^8.0.0",
|
|
82
81
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
83
|
-
"@storybook/addons": "^7.6.17",
|
|
84
82
|
"@storybook/blocks": "^8.0.0",
|
|
85
83
|
"@storybook/builder-webpack5": "^8.0.0",
|
|
86
84
|
"@storybook/ember": "^8.0.0",
|