@operato/input 7.0.0-rc.11 → 7.0.0-rc.13
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/.storybook/preview.js +52 -0
- package/CHANGELOG.md +11 -0
- package/dist/stories/ox-buttons-radio.stories.d.ts +0 -5
- package/dist/stories/ox-buttons-radio.stories.js +3 -9
- package/dist/stories/ox-buttons-radio.stories.js.map +1 -1
- package/dist/stories/ox-checkbox.stories.d.ts +0 -5
- package/dist/stories/ox-checkbox.stories.js +3 -9
- package/dist/stories/ox-checkbox.stories.js.map +1 -1
- package/dist/stories/ox-input-3axis.stories.d.ts +0 -5
- package/dist/stories/ox-input-3axis.stories.js +2 -7
- package/dist/stories/ox-input-3axis.stories.js.map +1 -1
- package/dist/stories/ox-input-3dish.stories.d.ts +0 -5
- package/dist/stories/ox-input-3dish.stories.js +2 -7
- package/dist/stories/ox-input-3dish.stories.js.map +1 -1
- package/dist/stories/ox-input-angle.stories.d.ts +0 -5
- package/dist/stories/ox-input-angle.stories.js +2 -7
- package/dist/stories/ox-input-angle.stories.js.map +1 -1
- package/dist/stories/ox-input-barcode.stories.d.ts +0 -5
- package/dist/stories/ox-input-barcode.stories.js +2 -7
- package/dist/stories/ox-input-barcode.stories.js.map +1 -1
- package/dist/stories/ox-input-code.stories.d.ts +0 -5
- package/dist/stories/ox-input-code.stories.js +2 -7
- package/dist/stories/ox-input-code.stories.js.map +1 -1
- package/dist/stories/ox-input-crontab.stories.d.ts +0 -5
- package/dist/stories/ox-input-crontab.stories.js +2 -7
- package/dist/stories/ox-input-crontab.stories.js.map +1 -1
- package/dist/stories/ox-input-data.stories.d.ts +0 -5
- package/dist/stories/ox-input-data.stories.js +2 -8
- package/dist/stories/ox-input-data.stories.js.map +1 -1
- package/dist/stories/ox-input-direction.stories.d.ts +0 -5
- package/dist/stories/ox-input-direction.stories.js +2 -7
- package/dist/stories/ox-input-direction.stories.js.map +1 -1
- package/dist/stories/ox-input-duration.stories.d.ts +0 -5
- package/dist/stories/ox-input-duration.stories.js +2 -7
- package/dist/stories/ox-input-duration.stories.js.map +1 -1
- package/dist/stories/ox-input-file.stories.d.ts +0 -5
- package/dist/stories/ox-input-file.stories.js +2 -7
- package/dist/stories/ox-input-file.stories.js.map +1 -1
- package/dist/stories/ox-input-hashtags.stories.d.ts +0 -5
- package/dist/stories/ox-input-hashtags.stories.js +2 -7
- package/dist/stories/ox-input-hashtags.stories.js.map +1 -1
- package/dist/stories/ox-input-i18n-label.stories.d.ts +0 -5
- package/dist/stories/ox-input-i18n-label.stories.js +2 -7
- package/dist/stories/ox-input-i18n-label.stories.js.map +1 -1
- package/dist/stories/ox-input-key-values.stories.d.ts +0 -5
- package/dist/stories/ox-input-key-values.stories.js +2 -7
- package/dist/stories/ox-input-key-values.stories.js.map +1 -1
- package/dist/stories/ox-input-mass-fraction.stories.d.ts +0 -5
- package/dist/stories/ox-input-mass-fraction.stories.js +2 -7
- package/dist/stories/ox-input-mass-fraction.stories.js.map +1 -1
- package/dist/stories/ox-input-multiple-colors.stories.d.ts +0 -5
- package/dist/stories/ox-input-multiple-colors.stories.js +2 -7
- package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -1
- package/dist/stories/ox-input-options.stories.d.ts +0 -5
- package/dist/stories/ox-input-options.stories.js +2 -7
- package/dist/stories/ox-input-options.stories.js.map +1 -1
- package/dist/stories/ox-input-partition-keys.stories.d.ts +0 -5
- package/dist/stories/ox-input-partition-keys.stories.js +2 -7
- package/dist/stories/ox-input-partition-keys.stories.js.map +1 -1
- package/dist/stories/ox-input-privilege.stories.d.ts +0 -5
- package/dist/stories/ox-input-privilege.stories.js +2 -7
- package/dist/stories/ox-input-privilege.stories.js.map +1 -1
- package/dist/stories/ox-input-quantifier.stories.d.ts +0 -5
- package/dist/stories/ox-input-quantifier.stories.js +2 -7
- package/dist/stories/ox-input-quantifier.stories.js.map +1 -1
- package/dist/stories/ox-input-range.stories.d.ts +0 -5
- package/dist/stories/ox-input-range.stories.js +2 -7
- package/dist/stories/ox-input-range.stories.js.map +1 -1
- package/dist/stories/ox-input-search.stories.d.ts +0 -5
- package/dist/stories/ox-input-search.stories.js +2 -7
- package/dist/stories/ox-input-search.stories.js.map +1 -1
- package/dist/stories/ox-input-select-buttons.stories.d.ts +0 -5
- package/dist/stories/ox-input-select-buttons.stories.js +2 -7
- package/dist/stories/ox-input-select-buttons.stories.js.map +1 -1
- package/dist/stories/ox-input-table-column-config.stories.d.ts +0 -5
- package/dist/stories/ox-input-table-column-config.stories.js +2 -7
- package/dist/stories/ox-input-table-column-config.stories.js.map +1 -1
- package/dist/stories/ox-input-unit.stories.d.ts +0 -5
- package/dist/stories/ox-input-unit.stories.js +2 -7
- package/dist/stories/ox-input-unit.stories.js.map +1 -1
- package/dist/stories/ox-input-value-map.stories.d.ts +0 -5
- package/dist/stories/ox-input-value-map.stories.js +2 -7
- package/dist/stories/ox-input-value-map.stories.js.map +1 -1
- package/dist/stories/ox-input-value-ranges.stories.d.ts +0 -5
- package/dist/stories/ox-input-value-ranges.stories.js +2 -7
- package/dist/stories/ox-input-value-ranges.stories.js.map +1 -1
- package/dist/stories/ox-input-work-shift.stories.d.ts +0 -5
- package/dist/stories/ox-input-work-shift.stories.js +2 -7
- package/dist/stories/ox-input-work-shift.stories.js.map +1 -1
- package/dist/stories/ox-select-set-options.stories.d.ts +0 -5
- package/dist/stories/ox-select-set-options.stories.js +2 -7
- package/dist/stories/ox-select-set-options.stories.js.map +1 -1
- package/dist/stories/ox-select.stories.d.ts +0 -5
- package/dist/stories/ox-select.stories.js +2 -7
- package/dist/stories/ox-select.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/stories/ox-buttons-radio.stories.ts +3 -10
- package/stories/ox-checkbox.stories.ts +3 -12
- package/stories/ox-input-3axis.stories.ts +2 -8
- package/stories/ox-input-3dish.stories.ts +2 -8
- package/stories/ox-input-angle.stories.ts +2 -8
- package/stories/ox-input-barcode.stories.ts +2 -9
- package/stories/ox-input-code.stories.ts +2 -9
- package/stories/ox-input-crontab.stories.ts +2 -13
- package/stories/ox-input-data.stories.ts +2 -9
- package/stories/ox-input-direction.stories.ts +2 -8
- package/stories/ox-input-duration.stories.ts +2 -8
- package/stories/ox-input-file.stories.ts +2 -9
- package/stories/ox-input-hashtags.stories.ts +2 -14
- package/stories/ox-input-i18n-label.stories.ts +2 -8
- package/stories/ox-input-key-values.stories.ts +2 -14
- package/stories/ox-input-mass-fraction.stories.ts +2 -9
- package/stories/ox-input-multiple-colors.stories.ts +2 -8
- package/stories/ox-input-options.stories.ts +2 -8
- package/stories/ox-input-partition-keys.stories.ts +2 -13
- package/stories/ox-input-privilege.stories.ts +2 -14
- package/stories/ox-input-quantifier.stories.ts +2 -8
- package/stories/ox-input-range.stories.ts +2 -9
- package/stories/ox-input-search.stories.ts +2 -9
- package/stories/ox-input-select-buttons.stories.ts +2 -9
- package/stories/ox-input-table-column-config.stories.ts +2 -13
- package/stories/ox-input-unit.stories.ts +2 -9
- package/stories/ox-input-value-map.stories.ts +2 -9
- package/stories/ox-input-value-ranges.stories.ts +2 -9
- package/stories/ox-input-work-shift.stories.ts +2 -8
- package/stories/ox-select-set-options.stories.ts +2 -9
- package/stories/ox-select.stories.ts +2 -9
- package/themes/app-theme.css +138 -0
- package/themes/calendar-theme.css +59 -0
- package/themes/dark.css +0 -100
- package/themes/grist-theme.css +44 -40
- package/themes/layout-theme.css +94 -0
- package/themes/light.css +3 -103
- package/themes/material-theme.css +23 -0
- package/themes/oops-theme.css +22 -0
- package/themes/report-theme.css +47 -0
- package/themes/spacing.css +7 -27
- package/themes/state-color.css +1 -1
- package/themes/tooltip-theme.css +11 -0
- package/themes/dark-hc.css +0 -151
- package/themes/dark-mc.css +0 -151
- package/themes/light-hc.css +0 -151
- package/themes/light-mc.css +0 -151
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@operato/input",
|
3
3
|
"description": "Webcomponents for input following open-wc recommendations",
|
4
4
|
"author": "heartyoh@hatiolab.com",
|
5
|
-
"version": "7.0.0-rc.
|
5
|
+
"version": "7.0.0-rc.13",
|
6
6
|
"main": "dist/src/index.js",
|
7
7
|
"module": "dist/src/index.js",
|
8
8
|
"license": "MIT",
|
@@ -207,10 +207,10 @@
|
|
207
207
|
"@lit/localize": "^0.12.1",
|
208
208
|
"@material/web": "^1.5.0",
|
209
209
|
"@operato/color-picker": "^7.0.0-rc.0",
|
210
|
-
"@operato/i18n": "^7.0.0-rc.
|
211
|
-
"@operato/popup": "^7.0.0-rc.
|
212
|
-
"@operato/styles": "^7.0.0-rc.
|
213
|
-
"@operato/utils": "^7.0.0-rc.
|
210
|
+
"@operato/i18n": "^7.0.0-rc.13",
|
211
|
+
"@operato/popup": "^7.0.0-rc.13",
|
212
|
+
"@operato/styles": "^7.0.0-rc.13",
|
213
|
+
"@operato/utils": "^7.0.0-rc.13",
|
214
214
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
215
215
|
"@polymer/paper-item": "^3.0.1",
|
216
216
|
"@thebespokepixel/es-tinycolor": "^3.1.0",
|
@@ -254,5 +254,5 @@
|
|
254
254
|
"prettier --write"
|
255
255
|
]
|
256
256
|
},
|
257
|
-
"gitHead": "
|
257
|
+
"gitHead": "30bb1e680f2d6b042ec75c5a29266b24d3067da5"
|
258
258
|
}
|
@@ -10,8 +10,7 @@ export default {
|
|
10
10
|
component: 'ox-buttons-radio',
|
11
11
|
argTypes: {
|
12
12
|
value: { control: 'boolean' },
|
13
|
-
disabled: { control: 'boolean' }
|
14
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
13
|
+
disabled: { control: 'boolean' }
|
15
14
|
}
|
16
15
|
}
|
17
16
|
|
@@ -24,10 +23,9 @@ interface Story<T> {
|
|
24
23
|
interface ArgTypes {
|
25
24
|
value?: string
|
26
25
|
disabled?: boolean
|
27
|
-
theme?: string
|
28
26
|
}
|
29
27
|
|
30
|
-
const Template: Story<ArgTypes> = ({ value, disabled
|
28
|
+
const Template: Story<ArgTypes> = ({ value, disabled }: ArgTypes) => html`
|
31
29
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
32
30
|
|
33
31
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -67,10 +65,6 @@ const Template: Story<ArgTypes> = ({ value, disabled, theme = 'light' }: ArgType
|
|
67
65
|
}
|
68
66
|
</style>
|
69
67
|
|
70
|
-
<script>
|
71
|
-
document.body.classList.add('${theme}')
|
72
|
-
</script>
|
73
|
-
|
74
68
|
<div class="container md-typescale-body-large-prominent">
|
75
69
|
<ox-buttons-radio
|
76
70
|
@change=${(e: CustomEvent) => {
|
@@ -91,6 +85,5 @@ const Template: Story<ArgTypes> = ({ value, disabled, theme = 'light' }: ArgType
|
|
91
85
|
export const Regular = Template.bind({})
|
92
86
|
Regular.args = {
|
93
87
|
value: '',
|
94
|
-
disabled: false
|
95
|
-
theme: 'light'
|
88
|
+
disabled: false
|
96
89
|
}
|
@@ -2,7 +2,6 @@ import '@material/web/all.js'
|
|
2
2
|
import '../src/ox-checkbox.js'
|
3
3
|
|
4
4
|
import { TemplateResult, html } from 'lit'
|
5
|
-
import { ifDefined } from 'lit/directives/if-defined.js'
|
6
5
|
import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
|
7
6
|
|
8
7
|
export default {
|
@@ -14,8 +13,7 @@ export default {
|
|
14
13
|
value: { control: 'boolean' },
|
15
14
|
indeterminatable: { control: 'boolean' },
|
16
15
|
indeterminate: { control: 'boolean' },
|
17
|
-
disabled: { control: 'boolean' }
|
18
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
16
|
+
disabled: { control: 'boolean' }
|
19
17
|
}
|
20
18
|
}
|
21
19
|
|
@@ -32,7 +30,6 @@ interface ArgTypes {
|
|
32
30
|
indeterminatable?: boolean
|
33
31
|
indeterminate?: boolean
|
34
32
|
disabled?: boolean
|
35
|
-
theme?: string
|
36
33
|
}
|
37
34
|
|
38
35
|
const Template: Story<ArgTypes> = ({
|
@@ -41,8 +38,7 @@ const Template: Story<ArgTypes> = ({
|
|
41
38
|
value,
|
42
39
|
indeterminatable = false,
|
43
40
|
indeterminate = false,
|
44
|
-
disabled
|
45
|
-
theme = 'light'
|
41
|
+
disabled
|
46
42
|
}: ArgTypes) => html`
|
47
43
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
48
44
|
|
@@ -78,10 +74,6 @@ const Template: Story<ArgTypes> = ({
|
|
78
74
|
}
|
79
75
|
</style>
|
80
76
|
|
81
|
-
<script>
|
82
|
-
document.body.classList.add('${theme}')
|
83
|
-
</script>
|
84
|
-
|
85
77
|
<div class="container md-typescale-body-large-prominent">
|
86
78
|
<ox-checkbox
|
87
79
|
@click=${(e: MouseEvent) => console.log('clicked')}
|
@@ -115,6 +107,5 @@ export const CustomIndeterminated = Template.bind({})
|
|
115
107
|
CustomIndeterminated.args = {
|
116
108
|
label: 'Indeterminated',
|
117
109
|
indeterminatable: true,
|
118
|
-
indeterminate: true
|
119
|
-
theme: 'light'
|
110
|
+
indeterminate: true
|
120
111
|
}
|
@@ -9,8 +9,7 @@ export default {
|
|
9
9
|
component: 'ox-input-3axis',
|
10
10
|
argTypes: {
|
11
11
|
value: { control: 'object' },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
12
|
+
disabled: { control: 'boolean' }
|
14
13
|
}
|
15
14
|
}
|
16
15
|
|
@@ -23,10 +22,9 @@ interface Story<T> {
|
|
23
22
|
interface ArgTypes {
|
24
23
|
value?: object
|
25
24
|
disabled?: boolean
|
26
|
-
theme?: string
|
27
25
|
}
|
28
26
|
|
29
|
-
const Template: Story<ArgTypes> = ({ value = {}, disabled
|
27
|
+
const Template: Story<ArgTypes> = ({ value = {}, disabled }: ArgTypes) => html`
|
30
28
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
31
29
|
|
32
30
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -61,10 +59,6 @@ const Template: Story<ArgTypes> = ({ value = {}, disabled, theme = 'light' }: Ar
|
|
61
59
|
}
|
62
60
|
</style>
|
63
61
|
|
64
|
-
<script>
|
65
|
-
document.body.classList.add('${theme}')
|
66
|
-
</script>
|
67
|
-
|
68
62
|
<div class="container md-typescale-body-large-prominent">
|
69
63
|
<ox-input-3axis
|
70
64
|
@change=${(e: Event) => {
|
@@ -10,8 +10,7 @@ export default {
|
|
10
10
|
argTypes: {
|
11
11
|
value: { control: 'object' },
|
12
12
|
name: { control: 'text' },
|
13
|
-
disabled: { control: 'boolean' }
|
14
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
13
|
+
disabled: { control: 'boolean' }
|
15
14
|
}
|
16
15
|
}
|
17
16
|
|
@@ -25,10 +24,9 @@ interface ArgTypes {
|
|
25
24
|
name?: string
|
26
25
|
value?: object
|
27
26
|
disabled?: boolean
|
28
|
-
theme?: string
|
29
27
|
}
|
30
28
|
|
31
|
-
const Template: Story<ArgTypes> = ({ name = '3dish', value = [], disabled
|
29
|
+
const Template: Story<ArgTypes> = ({ name = '3dish', value = [], disabled }: ArgTypes) => html`
|
32
30
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
33
31
|
|
34
32
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -63,10 +61,6 @@ const Template: Story<ArgTypes> = ({ name = '3dish', value = [], disabled, theme
|
|
63
61
|
}
|
64
62
|
</style>
|
65
63
|
|
66
|
-
<script>
|
67
|
-
document.body.classList.add('${theme}')
|
68
|
-
</script>
|
69
|
-
|
70
64
|
<div class="container md-typescale-body-large-prominent">
|
71
65
|
<locale-picker></locale-picker>
|
72
66
|
<br /><br />
|
@@ -10,8 +10,7 @@ export default {
|
|
10
10
|
argTypes: {
|
11
11
|
value: { control: 'number' },
|
12
12
|
name: { control: 'text' },
|
13
|
-
disabled: { control: 'boolean' }
|
14
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
13
|
+
disabled: { control: 'boolean' }
|
15
14
|
}
|
16
15
|
}
|
17
16
|
|
@@ -25,10 +24,9 @@ interface ArgTypes {
|
|
25
24
|
name?: string
|
26
25
|
value?: number
|
27
26
|
disabled?: boolean
|
28
|
-
theme?: string
|
29
27
|
}
|
30
28
|
|
31
|
-
const Template: Story<ArgTypes> = ({ name = '3dish', value = 0, disabled
|
29
|
+
const Template: Story<ArgTypes> = ({ name = '3dish', value = 0, disabled }: ArgTypes) => html`
|
32
30
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
33
31
|
|
34
32
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -63,10 +61,6 @@ const Template: Story<ArgTypes> = ({ name = '3dish', value = 0, disabled, theme
|
|
63
61
|
}
|
64
62
|
</style>
|
65
63
|
|
66
|
-
<script>
|
67
|
-
document.body.classList.add('${theme}')
|
68
|
-
</script>
|
69
|
-
|
70
64
|
<div class="container md-typescale-body-large-prominent">
|
71
65
|
<locale-picker></locale-picker>
|
72
66
|
<br /><br />
|
@@ -13,8 +13,7 @@ export default {
|
|
13
13
|
withoutEnter: { control: 'boolean' },
|
14
14
|
englishOnly: { control: 'boolean' },
|
15
15
|
selectAfterChange: { control: 'boolean' },
|
16
|
-
disabled: { control: 'boolean' }
|
17
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
16
|
+
disabled: { control: 'boolean' }
|
18
17
|
}
|
19
18
|
}
|
20
19
|
|
@@ -32,7 +31,6 @@ interface ArgTypes {
|
|
32
31
|
englishOnly?: boolean
|
33
32
|
selectAfterChange?: boolean
|
34
33
|
disabled?: boolean
|
35
|
-
theme?: string
|
36
34
|
}
|
37
35
|
|
38
36
|
const Template: Story<ArgTypes> = ({
|
@@ -41,8 +39,7 @@ const Template: Story<ArgTypes> = ({
|
|
41
39
|
withoutEnter = true,
|
42
40
|
englishOnly = false,
|
43
41
|
selectAfterChange = false,
|
44
|
-
disabled
|
45
|
-
theme = 'light'
|
42
|
+
disabled
|
46
43
|
}: ArgTypes) => html`
|
47
44
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
48
45
|
|
@@ -78,10 +75,6 @@ const Template: Story<ArgTypes> = ({
|
|
78
75
|
}
|
79
76
|
</style>
|
80
77
|
|
81
|
-
<script>
|
82
|
-
document.body.classList.add('${theme}')
|
83
|
-
</script>
|
84
|
-
|
85
78
|
<div class="container md-typescale-body-large-prominent">
|
86
79
|
<ox-input-barcode
|
87
80
|
name=${name}
|
@@ -11,8 +11,7 @@ export default {
|
|
11
11
|
name: { control: 'text' },
|
12
12
|
language: { control: 'select', options: ['javascript', 'sql', 'json'] },
|
13
13
|
showLineNumbers: { control: 'boolean' },
|
14
|
-
disabled: { control: 'boolean' }
|
15
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
14
|
+
disabled: { control: 'boolean' }
|
16
15
|
}
|
17
16
|
}
|
18
17
|
|
@@ -28,7 +27,6 @@ interface ArgTypes {
|
|
28
27
|
language: 'javascript' | 'sql' | 'json'
|
29
28
|
showLineNumbers?: boolean
|
30
29
|
disabled?: boolean
|
31
|
-
theme?: string
|
32
30
|
}
|
33
31
|
|
34
32
|
const Template: Story<ArgTypes> = ({
|
@@ -36,8 +34,7 @@ const Template: Story<ArgTypes> = ({
|
|
36
34
|
language = 'javascript',
|
37
35
|
value = '',
|
38
36
|
showLineNumbers,
|
39
|
-
disabled
|
40
|
-
theme = 'light'
|
37
|
+
disabled
|
41
38
|
}: ArgTypes) => html`
|
42
39
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
43
40
|
|
@@ -78,10 +75,6 @@ const Template: Story<ArgTypes> = ({
|
|
78
75
|
}
|
79
76
|
</style>
|
80
77
|
|
81
|
-
<script>
|
82
|
-
document.body.classList.add('${theme}')
|
83
|
-
</script>
|
84
|
-
|
85
78
|
<div class="container md-typescale-body-large-prominent">
|
86
79
|
<ox-input-code
|
87
80
|
@change=${(e: Event) => {
|
@@ -9,8 +9,7 @@ export default {
|
|
9
9
|
argTypes: {
|
10
10
|
value: { control: 'text' },
|
11
11
|
name: { control: 'text' },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
12
|
+
disabled: { control: 'boolean' }
|
14
13
|
}
|
15
14
|
}
|
16
15
|
|
@@ -24,15 +23,9 @@ interface ArgTypes {
|
|
24
23
|
name?: string
|
25
24
|
value?: string
|
26
25
|
disabled?: boolean
|
27
|
-
theme?: string
|
28
26
|
}
|
29
27
|
|
30
|
-
const Template: Story<ArgTypes> = ({
|
31
|
-
name = 'crontab',
|
32
|
-
value = '* * * * * *',
|
33
|
-
disabled,
|
34
|
-
theme = 'light'
|
35
|
-
}: ArgTypes) => html`
|
28
|
+
const Template: Story<ArgTypes> = ({ name = 'crontab', value = '* * * * * *', disabled }: ArgTypes) => html`
|
36
29
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
37
30
|
|
38
31
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -67,10 +60,6 @@ const Template: Story<ArgTypes> = ({
|
|
67
60
|
}
|
68
61
|
</style>
|
69
62
|
|
70
|
-
<script>
|
71
|
-
document.body.classList.add('${theme}')
|
72
|
-
</script>
|
73
|
-
|
74
63
|
<div class="container md-typescale-body-large-prominent">
|
75
64
|
<br /><br />
|
76
65
|
|
@@ -9,8 +9,7 @@ export default {
|
|
9
9
|
argTypes: {
|
10
10
|
value: { control: 'text' },
|
11
11
|
name: { control: 'text' },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
12
|
+
disabled: { control: 'boolean' }
|
14
13
|
}
|
15
14
|
}
|
16
15
|
|
@@ -24,10 +23,9 @@ interface ArgTypes {
|
|
24
23
|
name?: string
|
25
24
|
value?: string | number | object
|
26
25
|
disabled?: boolean
|
27
|
-
theme?: string
|
28
26
|
}
|
29
27
|
|
30
|
-
const Template: Story<ArgTypes> = ({ name = 'code', value = '', disabled
|
28
|
+
const Template: Story<ArgTypes> = ({ name = 'code', value = '', disabled }: ArgTypes) => html`
|
31
29
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
32
30
|
|
33
31
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -56,7 +54,6 @@ const Template: Story<ArgTypes> = ({ name = 'code', value = '', disabled, theme
|
|
56
54
|
height: 500px;
|
57
55
|
text-align: center;
|
58
56
|
padding: 20px;
|
59
|
-
|
60
57
|
}
|
61
58
|
|
62
59
|
ox-input-data {
|
@@ -65,10 +62,6 @@ const Template: Story<ArgTypes> = ({ name = 'code', value = '', disabled, theme
|
|
65
62
|
}
|
66
63
|
</style>
|
67
64
|
|
68
|
-
<script>
|
69
|
-
document.body.classList.add('${theme}')
|
70
|
-
</script>
|
71
|
-
|
72
65
|
<div class="container md-typescale-body-large-prominent">
|
73
66
|
<ox-input-data
|
74
67
|
@change=${(e: Event) => {
|
@@ -9,8 +9,7 @@ export default {
|
|
9
9
|
argTypes: {
|
10
10
|
value: { control: 'object' },
|
11
11
|
name: { control: 'text' },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
12
|
+
disabled: { control: 'boolean' }
|
14
13
|
}
|
15
14
|
}
|
16
15
|
|
@@ -24,10 +23,9 @@ interface ArgTypes {
|
|
24
23
|
name?: string
|
25
24
|
value?: object | string
|
26
25
|
disabled?: boolean
|
27
|
-
theme?: string
|
28
26
|
}
|
29
27
|
|
30
|
-
const Template: Story<ArgTypes> = ({ name = 'options', value, disabled
|
28
|
+
const Template: Story<ArgTypes> = ({ name = 'options', value, disabled }: ArgTypes) => html`
|
31
29
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
32
30
|
|
33
31
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -62,10 +60,6 @@ const Template: Story<ArgTypes> = ({ name = 'options', value, disabled, theme =
|
|
62
60
|
}
|
63
61
|
</style>
|
64
62
|
|
65
|
-
<script>
|
66
|
-
document.body.classList.add('${theme}')
|
67
|
-
</script>
|
68
|
-
|
69
63
|
<div class="container">
|
70
64
|
<ox-input-direction
|
71
65
|
@change=${(e: Event) => {
|
@@ -10,8 +10,7 @@ export default {
|
|
10
10
|
argTypes: {
|
11
11
|
value: { control: 'number' },
|
12
12
|
name: { control: 'text' },
|
13
|
-
disabled: { control: 'boolean' }
|
14
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
13
|
+
disabled: { control: 'boolean' }
|
15
14
|
}
|
16
15
|
}
|
17
16
|
|
@@ -25,10 +24,9 @@ interface ArgTypes {
|
|
25
24
|
name?: string
|
26
25
|
value?: number
|
27
26
|
disabled?: boolean
|
28
|
-
theme?: string
|
29
27
|
}
|
30
28
|
|
31
|
-
const Template: Story<ArgTypes> = ({ name = 'duration', value = 3601, disabled
|
29
|
+
const Template: Story<ArgTypes> = ({ name = 'duration', value = 3601, disabled }: ArgTypes) => html`
|
32
30
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
33
31
|
|
34
32
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -63,10 +61,6 @@ const Template: Story<ArgTypes> = ({ name = 'duration', value = 3601, disabled,
|
|
63
61
|
}
|
64
62
|
</style>
|
65
63
|
|
66
|
-
<script>
|
67
|
-
document.body.classList.add('${theme}')
|
68
|
-
</script>
|
69
|
-
|
70
64
|
<div class="container md-typescale-body-large-prominent">
|
71
65
|
<locale-picker></locale-picker>
|
72
66
|
<br /><br />
|
@@ -15,8 +15,7 @@ export default {
|
|
15
15
|
description: { control: 'text' },
|
16
16
|
hideFileList: { control: 'boolean' },
|
17
17
|
attachFileList: { control: 'boolean' },
|
18
|
-
disabled: { control: 'boolean' }
|
19
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
18
|
+
disabled: { control: 'boolean' }
|
20
19
|
}
|
21
20
|
}
|
22
21
|
|
@@ -36,7 +35,6 @@ interface ArgTypes {
|
|
36
35
|
hideFileList?: boolean
|
37
36
|
attachFileList?: boolean
|
38
37
|
disabled?: boolean
|
39
|
-
theme?: string
|
40
38
|
}
|
41
39
|
|
42
40
|
const Template: Story<ArgTypes> = ({
|
@@ -48,8 +46,7 @@ const Template: Story<ArgTypes> = ({
|
|
48
46
|
description,
|
49
47
|
hideFileList = false,
|
50
48
|
attachFileList = false,
|
51
|
-
disabled
|
52
|
-
theme = 'light'
|
49
|
+
disabled
|
53
50
|
}: ArgTypes) => html`
|
54
51
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
55
52
|
|
@@ -85,10 +82,6 @@ const Template: Story<ArgTypes> = ({
|
|
85
82
|
}
|
86
83
|
</style>
|
87
84
|
|
88
|
-
<script>
|
89
|
-
document.body.classList.add('${theme}')
|
90
|
-
</script>
|
91
|
-
|
92
85
|
<div class="container md-typescale-body-large-prominent">
|
93
86
|
<ox-input-file
|
94
87
|
label=${label}
|
@@ -10,8 +10,7 @@ export default {
|
|
10
10
|
placeholder: { control: 'text' },
|
11
11
|
name: { control: 'text' },
|
12
12
|
value: { control: 'array' },
|
13
|
-
disabled: { control: 'boolean' }
|
14
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
13
|
+
disabled: { control: 'boolean' }
|
15
14
|
}
|
16
15
|
}
|
17
16
|
|
@@ -26,16 +25,9 @@ interface ArgTypes {
|
|
26
25
|
name?: string
|
27
26
|
value?: string[]
|
28
27
|
disabled?: boolean
|
29
|
-
theme?: string
|
30
28
|
}
|
31
29
|
|
32
|
-
const Template: Story<ArgTypes> = ({
|
33
|
-
placeholder = 'hashtag',
|
34
|
-
name = 'hello',
|
35
|
-
value = [],
|
36
|
-
disabled,
|
37
|
-
theme = 'light'
|
38
|
-
}: ArgTypes) => html`
|
30
|
+
const Template: Story<ArgTypes> = ({ placeholder = 'hashtag', name = 'hello', value = [], disabled }: ArgTypes) => html`
|
39
31
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
40
32
|
|
41
33
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -70,10 +62,6 @@ const Template: Story<ArgTypes> = ({
|
|
70
62
|
}
|
71
63
|
</style>
|
72
64
|
|
73
|
-
<script>
|
74
|
-
document.body.classList.add('${theme}')
|
75
|
-
</script>
|
76
|
-
|
77
65
|
<div class="container md-typescale-body-large-prominent">
|
78
66
|
<ox-input-hashtags
|
79
67
|
@change=${(e: Event) => console.log('changed', (e.target as HTMLInputElement).value)}
|
@@ -9,8 +9,7 @@ export default {
|
|
9
9
|
argTypes: {
|
10
10
|
name: { control: 'text' },
|
11
11
|
value: { control: 'object' },
|
12
|
-
disabled: { control: 'boolean' }
|
13
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
12
|
+
disabled: { control: 'boolean' }
|
14
13
|
}
|
15
14
|
}
|
16
15
|
|
@@ -24,10 +23,9 @@ interface ArgTypes {
|
|
24
23
|
name?: string
|
25
24
|
value?: object
|
26
25
|
disabled?: boolean
|
27
|
-
theme?: string
|
28
26
|
}
|
29
27
|
|
30
|
-
const Template: Story<ArgTypes> = ({ name = 'values', value, disabled
|
28
|
+
const Template: Story<ArgTypes> = ({ name = 'values', value, disabled }: ArgTypes) => html`
|
31
29
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
32
30
|
|
33
31
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -62,10 +60,6 @@ const Template: Story<ArgTypes> = ({ name = 'values', value, disabled, theme = '
|
|
62
60
|
}
|
63
61
|
</style>
|
64
62
|
|
65
|
-
<script>
|
66
|
-
document.body.classList.add('${theme}')
|
67
|
-
</script>
|
68
|
-
|
69
63
|
<div class="container md-typescale-body-large-prominent">
|
70
64
|
<ox-input-i18n-label
|
71
65
|
@change=${(e: Event) => {
|
@@ -10,8 +10,7 @@ export default {
|
|
10
10
|
name: { control: 'text' },
|
11
11
|
value: { control: 'object' },
|
12
12
|
options: { control: 'object' },
|
13
|
-
disabled: { control: 'boolean' }
|
14
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
13
|
+
disabled: { control: 'boolean' }
|
15
14
|
}
|
16
15
|
}
|
17
16
|
|
@@ -26,16 +25,9 @@ interface ArgTypes {
|
|
26
25
|
value?: object
|
27
26
|
options?: object
|
28
27
|
disabled?: boolean
|
29
|
-
theme?: string
|
30
28
|
}
|
31
29
|
|
32
|
-
const Template: Story<ArgTypes> = ({
|
33
|
-
name = 'key-values',
|
34
|
-
value = {},
|
35
|
-
options = [],
|
36
|
-
disabled,
|
37
|
-
theme = 'light'
|
38
|
-
}: ArgTypes) => html`
|
30
|
+
const Template: Story<ArgTypes> = ({ name = 'key-values', value = {}, options = [], disabled }: ArgTypes) => html`
|
39
31
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
40
32
|
|
41
33
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -70,10 +62,6 @@ const Template: Story<ArgTypes> = ({
|
|
70
62
|
}
|
71
63
|
</style>
|
72
64
|
|
73
|
-
<script>
|
74
|
-
document.body.classList.add('${theme}')
|
75
|
-
</script>
|
76
|
-
|
77
65
|
<div class="container md-typescale-body-large-prominent">
|
78
66
|
<ox-input-key-values
|
79
67
|
@change=${(e: Event) => {
|
@@ -11,8 +11,7 @@ export default {
|
|
11
11
|
value: { control: 'object' },
|
12
12
|
defaultValue: { control: 'object' },
|
13
13
|
composable: { control: 'boolean' },
|
14
|
-
disabled: { control: 'boolean' }
|
15
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
14
|
+
disabled: { control: 'boolean' }
|
16
15
|
}
|
17
16
|
}
|
18
17
|
|
@@ -28,7 +27,6 @@ interface ArgTypes {
|
|
28
27
|
defaultValue?: object
|
29
28
|
composable?: boolean
|
30
29
|
disabled?: boolean
|
31
|
-
theme?: string
|
32
30
|
}
|
33
31
|
|
34
32
|
const Template: Story<ArgTypes> = ({
|
@@ -36,8 +34,7 @@ const Template: Story<ArgTypes> = ({
|
|
36
34
|
value = {},
|
37
35
|
defaultValue = {},
|
38
36
|
composable = true,
|
39
|
-
disabled
|
40
|
-
theme = 'light'
|
37
|
+
disabled
|
41
38
|
}: ArgTypes) => html`
|
42
39
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
43
40
|
|
@@ -73,10 +70,6 @@ const Template: Story<ArgTypes> = ({
|
|
73
70
|
}
|
74
71
|
</style>
|
75
72
|
|
76
|
-
<script>
|
77
|
-
document.body.classList.add('${theme}')
|
78
|
-
</script>
|
79
|
-
|
80
73
|
<div class="container md-typescale-body-large-prominent">
|
81
74
|
<ox-input-mass-fraction
|
82
75
|
@change=${(e: Event) => {
|
@@ -8,8 +8,7 @@ export default {
|
|
8
8
|
component: 'ox-input-multiple-colors',
|
9
9
|
argTypes: {
|
10
10
|
value: { control: 'array' },
|
11
|
-
disabled: { control: 'boolean' }
|
12
|
-
theme: { control: 'select', options: ['light', 'dark'] }
|
11
|
+
disabled: { control: 'boolean' }
|
13
12
|
}
|
14
13
|
}
|
15
14
|
|
@@ -21,10 +20,9 @@ interface Story<T> {
|
|
21
20
|
|
22
21
|
interface ArgTypes {
|
23
22
|
disabled: boolean
|
24
|
-
theme?: string
|
25
23
|
}
|
26
24
|
|
27
|
-
const Template: Story<ArgTypes> = ({ disabled
|
25
|
+
const Template: Story<ArgTypes> = ({ disabled }: ArgTypes) => html`
|
28
26
|
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
|
29
27
|
|
30
28
|
<link href="/themes/light.css" rel="stylesheet" />
|
@@ -59,10 +57,6 @@ const Template: Story<ArgTypes> = ({ disabled, theme = 'light' }: ArgTypes) => h
|
|
59
57
|
}
|
60
58
|
</style>
|
61
59
|
|
62
|
-
<script>
|
63
|
-
document.body.classList.add('${theme}')
|
64
|
-
</script>
|
65
|
-
|
66
60
|
<div class="container md-typescale-body-large-prominent">
|
67
61
|
<ox-input-multiple-colors
|
68
62
|
.value=${['red', 'yellow']}
|