@operato/input 7.0.0-rc.8 → 7.0.0

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.
Files changed (188) hide show
  1. package/.storybook/preview.js +52 -0
  2. package/CHANGELOG.md +45 -0
  3. package/dist/src/index.d.ts +1 -0
  4. package/dist/src/index.js +1 -0
  5. package/dist/src/index.js.map +1 -1
  6. package/dist/src/ox-input-barcode.js +15 -11
  7. package/dist/src/ox-input-barcode.js.map +1 -1
  8. package/dist/src/ox-input-crontab.js +1 -1
  9. package/dist/src/ox-input-crontab.js.map +1 -1
  10. package/dist/src/ox-input-duration.js +2 -2
  11. package/dist/src/ox-input-duration.js.map +1 -1
  12. package/dist/src/ox-input-hashtags.js +2 -2
  13. package/dist/src/ox-input-hashtags.js.map +1 -1
  14. package/dist/src/ox-input-key-values.js +3 -3
  15. package/dist/src/ox-input-key-values.js.map +1 -1
  16. package/dist/src/ox-input-mass-fraction.js +2 -2
  17. package/dist/src/ox-input-mass-fraction.js.map +1 -1
  18. package/dist/src/ox-input-options.js +2 -2
  19. package/dist/src/ox-input-options.js.map +1 -1
  20. package/dist/src/ox-input-partition-keys.js +3 -3
  21. package/dist/src/ox-input-partition-keys.js.map +1 -1
  22. package/dist/src/ox-input-search.d.ts +0 -1
  23. package/dist/src/ox-input-search.js +2 -5
  24. package/dist/src/ox-input-search.js.map +1 -1
  25. package/dist/src/ox-input-unit-number.js +1 -1
  26. package/dist/src/ox-input-unit-number.js.map +1 -1
  27. package/dist/src/ox-input-value-map.js +3 -3
  28. package/dist/src/ox-input-value-map.js.map +1 -1
  29. package/dist/src/ox-input-value-ranges.js +3 -3
  30. package/dist/src/ox-input-value-ranges.js.map +1 -1
  31. package/dist/src/ox-input-work-shift.js +3 -3
  32. package/dist/src/ox-input-work-shift.js.map +1 -1
  33. package/dist/stories/ox-buttons-radio.stories.d.ts +0 -5
  34. package/dist/stories/ox-buttons-radio.stories.js +3 -9
  35. package/dist/stories/ox-buttons-radio.stories.js.map +1 -1
  36. package/dist/stories/ox-checkbox.stories.d.ts +0 -5
  37. package/dist/stories/ox-checkbox.stories.js +3 -9
  38. package/dist/stories/ox-checkbox.stories.js.map +1 -1
  39. package/dist/stories/ox-input-3axis.stories.d.ts +0 -5
  40. package/dist/stories/ox-input-3axis.stories.js +2 -7
  41. package/dist/stories/ox-input-3axis.stories.js.map +1 -1
  42. package/dist/stories/ox-input-3dish.stories.d.ts +0 -5
  43. package/dist/stories/ox-input-3dish.stories.js +2 -7
  44. package/dist/stories/ox-input-3dish.stories.js.map +1 -1
  45. package/dist/stories/ox-input-angle.stories.d.ts +0 -5
  46. package/dist/stories/ox-input-angle.stories.js +2 -7
  47. package/dist/stories/ox-input-angle.stories.js.map +1 -1
  48. package/dist/stories/ox-input-barcode.stories.d.ts +0 -5
  49. package/dist/stories/ox-input-barcode.stories.js +2 -7
  50. package/dist/stories/ox-input-barcode.stories.js.map +1 -1
  51. package/dist/stories/ox-input-code.stories.d.ts +0 -5
  52. package/dist/stories/ox-input-code.stories.js +2 -7
  53. package/dist/stories/ox-input-code.stories.js.map +1 -1
  54. package/dist/stories/ox-input-crontab.stories.d.ts +0 -5
  55. package/dist/stories/ox-input-crontab.stories.js +2 -7
  56. package/dist/stories/ox-input-crontab.stories.js.map +1 -1
  57. package/dist/stories/ox-input-data.stories.d.ts +0 -5
  58. package/dist/stories/ox-input-data.stories.js +2 -8
  59. package/dist/stories/ox-input-data.stories.js.map +1 -1
  60. package/dist/stories/ox-input-direction.stories.d.ts +0 -5
  61. package/dist/stories/ox-input-direction.stories.js +2 -7
  62. package/dist/stories/ox-input-direction.stories.js.map +1 -1
  63. package/dist/stories/ox-input-duration.stories.d.ts +0 -5
  64. package/dist/stories/ox-input-duration.stories.js +2 -7
  65. package/dist/stories/ox-input-duration.stories.js.map +1 -1
  66. package/dist/stories/ox-input-file.stories.d.ts +0 -5
  67. package/dist/stories/ox-input-file.stories.js +2 -7
  68. package/dist/stories/ox-input-file.stories.js.map +1 -1
  69. package/dist/stories/ox-input-hashtags.stories.d.ts +0 -5
  70. package/dist/stories/ox-input-hashtags.stories.js +2 -7
  71. package/dist/stories/ox-input-hashtags.stories.js.map +1 -1
  72. package/dist/stories/ox-input-i18n-label.stories.d.ts +0 -5
  73. package/dist/stories/ox-input-i18n-label.stories.js +2 -7
  74. package/dist/stories/ox-input-i18n-label.stories.js.map +1 -1
  75. package/dist/stories/ox-input-key-values.stories.d.ts +0 -5
  76. package/dist/stories/ox-input-key-values.stories.js +2 -7
  77. package/dist/stories/ox-input-key-values.stories.js.map +1 -1
  78. package/dist/stories/ox-input-mass-fraction.stories.d.ts +0 -5
  79. package/dist/stories/ox-input-mass-fraction.stories.js +2 -7
  80. package/dist/stories/ox-input-mass-fraction.stories.js.map +1 -1
  81. package/dist/stories/ox-input-multiple-colors.stories.d.ts +0 -5
  82. package/dist/stories/ox-input-multiple-colors.stories.js +2 -7
  83. package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -1
  84. package/dist/stories/ox-input-options.stories.d.ts +0 -5
  85. package/dist/stories/ox-input-options.stories.js +2 -7
  86. package/dist/stories/ox-input-options.stories.js.map +1 -1
  87. package/dist/stories/ox-input-partition-keys.stories.d.ts +0 -5
  88. package/dist/stories/ox-input-partition-keys.stories.js +2 -7
  89. package/dist/stories/ox-input-partition-keys.stories.js.map +1 -1
  90. package/dist/stories/ox-input-privilege.stories.d.ts +0 -5
  91. package/dist/stories/ox-input-privilege.stories.js +2 -7
  92. package/dist/stories/ox-input-privilege.stories.js.map +1 -1
  93. package/dist/stories/ox-input-quantifier.stories.d.ts +0 -5
  94. package/dist/stories/ox-input-quantifier.stories.js +2 -7
  95. package/dist/stories/ox-input-quantifier.stories.js.map +1 -1
  96. package/dist/stories/ox-input-range.stories.d.ts +0 -5
  97. package/dist/stories/ox-input-range.stories.js +2 -7
  98. package/dist/stories/ox-input-range.stories.js.map +1 -1
  99. package/dist/stories/ox-input-search.stories.d.ts +0 -6
  100. package/dist/stories/ox-input-search.stories.js +4 -8
  101. package/dist/stories/ox-input-search.stories.js.map +1 -1
  102. package/dist/stories/ox-input-select-buttons.stories.d.ts +0 -5
  103. package/dist/stories/ox-input-select-buttons.stories.js +2 -7
  104. package/dist/stories/ox-input-select-buttons.stories.js.map +1 -1
  105. package/dist/stories/ox-input-table-column-config.stories.d.ts +0 -5
  106. package/dist/stories/ox-input-table-column-config.stories.js +2 -7
  107. package/dist/stories/ox-input-table-column-config.stories.js.map +1 -1
  108. package/dist/stories/ox-input-unit.stories.d.ts +0 -5
  109. package/dist/stories/ox-input-unit.stories.js +2 -7
  110. package/dist/stories/ox-input-unit.stories.js.map +1 -1
  111. package/dist/stories/ox-input-value-map.stories.d.ts +0 -5
  112. package/dist/stories/ox-input-value-map.stories.js +2 -7
  113. package/dist/stories/ox-input-value-map.stories.js.map +1 -1
  114. package/dist/stories/ox-input-value-ranges.stories.d.ts +0 -5
  115. package/dist/stories/ox-input-value-ranges.stories.js +2 -7
  116. package/dist/stories/ox-input-value-ranges.stories.js.map +1 -1
  117. package/dist/stories/ox-input-work-shift.stories.d.ts +0 -5
  118. package/dist/stories/ox-input-work-shift.stories.js +2 -7
  119. package/dist/stories/ox-input-work-shift.stories.js.map +1 -1
  120. package/dist/stories/ox-select-set-options.stories.d.ts +0 -5
  121. package/dist/stories/ox-select-set-options.stories.js +2 -7
  122. package/dist/stories/ox-select-set-options.stories.js.map +1 -1
  123. package/dist/stories/ox-select.stories.d.ts +0 -5
  124. package/dist/stories/ox-select.stories.js +2 -7
  125. package/dist/stories/ox-select.stories.js.map +1 -1
  126. package/dist/tsconfig.tsbuildinfo +1 -1
  127. package/package.json +7 -7
  128. package/src/index.ts +1 -0
  129. package/src/ox-input-barcode.ts +14 -12
  130. package/src/ox-input-crontab.ts +1 -1
  131. package/src/ox-input-duration.ts +2 -2
  132. package/src/ox-input-hashtags.ts +2 -2
  133. package/src/ox-input-key-values.ts +3 -3
  134. package/src/ox-input-mass-fraction.ts +2 -2
  135. package/src/ox-input-options.ts +2 -2
  136. package/src/ox-input-partition-keys.ts +3 -3
  137. package/src/ox-input-search.ts +2 -2
  138. package/src/ox-input-unit-number.ts +1 -1
  139. package/src/ox-input-value-map.ts +3 -3
  140. package/src/ox-input-value-ranges.ts +3 -3
  141. package/src/ox-input-work-shift.ts +3 -3
  142. package/stories/ox-buttons-radio.stories.ts +3 -10
  143. package/stories/ox-checkbox.stories.ts +3 -12
  144. package/stories/ox-input-3axis.stories.ts +2 -8
  145. package/stories/ox-input-3dish.stories.ts +2 -8
  146. package/stories/ox-input-angle.stories.ts +2 -8
  147. package/stories/ox-input-barcode.stories.ts +2 -9
  148. package/stories/ox-input-code.stories.ts +2 -9
  149. package/stories/ox-input-crontab.stories.ts +2 -13
  150. package/stories/ox-input-data.stories.ts +2 -9
  151. package/stories/ox-input-direction.stories.ts +2 -8
  152. package/stories/ox-input-duration.stories.ts +2 -8
  153. package/stories/ox-input-file.stories.ts +2 -9
  154. package/stories/ox-input-hashtags.stories.ts +2 -14
  155. package/stories/ox-input-i18n-label.stories.ts +2 -8
  156. package/stories/ox-input-key-values.stories.ts +2 -14
  157. package/stories/ox-input-mass-fraction.stories.ts +2 -9
  158. package/stories/ox-input-multiple-colors.stories.ts +2 -8
  159. package/stories/ox-input-options.stories.ts +2 -8
  160. package/stories/ox-input-partition-keys.stories.ts +2 -13
  161. package/stories/ox-input-privilege.stories.ts +2 -14
  162. package/stories/ox-input-quantifier.stories.ts +2 -8
  163. package/stories/ox-input-range.stories.ts +2 -9
  164. package/stories/ox-input-search.stories.ts +4 -10
  165. package/stories/ox-input-select-buttons.stories.ts +2 -9
  166. package/stories/ox-input-table-column-config.stories.ts +2 -13
  167. package/stories/ox-input-unit.stories.ts +2 -9
  168. package/stories/ox-input-value-map.stories.ts +2 -9
  169. package/stories/ox-input-value-ranges.stories.ts +2 -9
  170. package/stories/ox-input-work-shift.stories.ts +2 -8
  171. package/stories/ox-select-set-options.stories.ts +2 -9
  172. package/stories/ox-select.stories.ts +2 -9
  173. package/themes/app-theme.css +138 -0
  174. package/themes/calendar-theme.css +59 -0
  175. package/themes/dark.css +0 -100
  176. package/themes/grist-theme.css +45 -41
  177. package/themes/layout-theme.css +94 -0
  178. package/themes/light.css +3 -103
  179. package/themes/material-theme.css +23 -0
  180. package/themes/oops-theme.css +22 -0
  181. package/themes/report-theme.css +47 -0
  182. package/themes/spacing.css +7 -27
  183. package/themes/state-color.css +1 -1
  184. package/themes/tooltip-theme.css +11 -0
  185. package/themes/dark-hc.css +0 -151
  186. package/themes/dark-mc.css +0 -151
  187. package/themes/light-hc.css +0 -151
  188. package/themes/light-mc.css +0 -151
@@ -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, theme = 'light' }: ArgTypes) => html`
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, theme = 'light' }: ArgTypes) => html`
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, theme = 'light' }: ArgTypes) => html`
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, theme = 'light' }: ArgTypes) => html`
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, theme = 'light' }: ArgTypes) => html`
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']}
@@ -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
26
25
  disabled?: boolean
27
- theme?: string
28
26
  }
29
27
 
30
- const Template: Story<ArgTypes> = ({ name = 'options', value = {}, disabled, theme = 'light' }: ArgTypes) => html`
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, the
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-options
71
65
  @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,15 +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> = ({
31
- name = 'partition-keys',
32
- value = {},
33
- disabled,
34
- theme = 'light'
35
- }: ArgTypes) => html`
28
+ const Template: Story<ArgTypes> = ({ name = 'partition-keys', 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
  <ox-input-partition-keys
76
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
 
@@ -31,16 +30,9 @@ interface ArgTypes {
31
30
  super: boolean
32
31
  } | null
33
32
  disabled?: boolean
34
- theme?: string
35
33
  }
36
34
 
37
- const Template: Story<ArgTypes> = ({
38
- name = 'privilege',
39
- value = null,
40
- privileges,
41
- disabled,
42
- theme = 'light'
43
- }: ArgTypes) => html`
35
+ const Template: Story<ArgTypes> = ({ name = 'privilege', value = null, privileges, disabled }: ArgTypes) => html`
44
36
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
45
37
 
46
38
  <link href="/themes/light.css" rel="stylesheet" />
@@ -75,10 +67,6 @@ const Template: Story<ArgTypes> = ({
75
67
  }
76
68
  </style>
77
69
 
78
- <script>
79
- document.body.classList.add('${theme}')
80
- </script>
81
-
82
70
  <div class="container md-typescale-body-large-prominent">
83
71
  <locale-picker></locale-picker>
84
72
  <br /><br />
@@ -11,8 +11,7 @@ export default {
11
11
  argTypes: {
12
12
  name: { control: 'text' },
13
13
  value: { control: 'array' },
14
- disabled: { control: 'boolean' },
15
- theme: { control: 'select', options: ['light', 'dark'] }
14
+ disabled: { control: 'boolean' }
16
15
  }
17
16
  }
18
17
 
@@ -26,10 +25,9 @@ interface ArgTypes {
26
25
  name?: string
27
26
  value?: number[]
28
27
  disabled?: boolean
29
- theme?: string
30
28
  }
31
29
 
32
- const Template: Story<ArgTypes> = ({ name = 'quantifier', value, disabled, theme = 'light' }: ArgTypes) => html`
30
+ const Template: Story<ArgTypes> = ({ name = 'quantifier', value, disabled }: ArgTypes) => html`
33
31
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
34
32
 
35
33
  <link href="/themes/light.css" rel="stylesheet" />
@@ -64,10 +62,6 @@ const Template: Story<ArgTypes> = ({ name = 'quantifier', value, disabled, theme
64
62
  }
65
63
  </style>
66
64
 
67
- <script>
68
- document.body.classList.add('${theme}')
69
- </script>
70
-
71
65
  <div class="container md-typescale-body-large-prominent">
72
66
  <ox-input-quantifier
73
67
  name=${name}
@@ -12,8 +12,7 @@ export default {
12
12
  step: { control: 'number' },
13
13
  min: { control: 'number' },
14
14
  max: { control: 'number' },
15
- disabled: { control: 'boolean' },
16
- theme: { control: 'select', options: ['light', 'dark'] }
15
+ disabled: { control: 'boolean' }
17
16
  }
18
17
  }
19
18
 
@@ -30,7 +29,6 @@ interface ArgTypes {
30
29
  min?: number
31
30
  max?: number
32
31
  disabled?: boolean
33
- theme?: string
34
32
  }
35
33
 
36
34
  const Template: Story<ArgTypes> = ({
@@ -39,8 +37,7 @@ const Template: Story<ArgTypes> = ({
39
37
  step = 1,
40
38
  min = 0,
41
39
  max = 100,
42
- disabled,
43
- theme = 'light'
40
+ disabled
44
41
  }: ArgTypes) => html`
45
42
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
46
43
 
@@ -76,10 +73,6 @@ const Template: Story<ArgTypes> = ({
76
73
  }
77
74
  </style>
78
75
 
79
- <script>
80
- document.body.classList.add('${theme}')
81
- </script>
82
-
83
76
  <div class="container md-typescale-body-large-prominent">
84
77
  <ox-input-range name=${name} value=${value} step=${step} min=${min} max=${max} ?disabled=${disabled}>
85
78
  </ox-input-range>
@@ -1,4 +1,5 @@
1
- import '../src/ox-input-search.js'
1
+ /* 어디에서 임포트하는 지는 모르지만, 아래 코멘트를 풀면 중복 정의 오류가 발생한다. */
2
+ // import '../src/ox-input-search.js'
2
3
 
3
4
  import { html, TemplateResult } from 'lit'
4
5
  import { styles as MDTypeScaleStyles } from '@material/web/typography/md-typescale-styles'
@@ -11,8 +12,7 @@ export default {
11
12
  name: { control: 'text' },
12
13
  value: { control: 'text' },
13
14
  selectAfterChange: { control: 'boolean' },
14
- disabled: { control: 'boolean' },
15
- theme: { control: 'select', options: ['light', 'dark'] }
15
+ disabled: { control: 'boolean' }
16
16
  }
17
17
  }
18
18
 
@@ -28,7 +28,6 @@ interface ArgTypes {
28
28
  value?: string
29
29
  selectAfterChange?: boolean
30
30
  disabled?: boolean
31
- theme?: string
32
31
  }
33
32
 
34
33
  const Template: Story<ArgTypes> = ({
@@ -36,8 +35,7 @@ const Template: Story<ArgTypes> = ({
36
35
  name = 'hello',
37
36
  value = '',
38
37
  selectAfterChange,
39
- disabled,
40
- theme = 'light'
38
+ disabled
41
39
  }: ArgTypes) => html`
42
40
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
43
41
 
@@ -73,10 +71,6 @@ const Template: Story<ArgTypes> = ({
73
71
  }
74
72
  </style>
75
73
 
76
- <script>
77
- document.body.classList.add('${theme}')
78
- </script>
79
-
80
74
  <div class="container md-typescale-body-large-prominent">
81
75
  <ox-input-search
82
76
  @change=${(e: Event) => console.log('changed', (e.target as HTMLInputElement).value)}
@@ -11,8 +11,7 @@ export default {
11
11
  options: { control: 'object' },
12
12
  multiple: { control: 'boolean' },
13
13
  name: { control: 'text' },
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
  options: object
29
28
  multiple?: 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
  multiple = false,
38
36
  options = [],
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">
81
74
  <ox-input-select-buttons
82
75
  @change=${(e: Event) => {
@@ -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,15 +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> = ({
31
- name = 'table-column-config',
32
- value = {},
33
- disabled,
34
- theme = 'light'
35
- }: ArgTypes) => html`
28
+ const Template: Story<ArgTypes> = ({ name = 'table-column-config', 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
  <ox-input-table-column-config
76
65
  @change=${(e: Event) => {
@@ -42,8 +42,7 @@ export default {
42
42
  'K'
43
43
  ]
44
44
  },
45
- disabled: { control: 'boolean' },
46
- theme: { control: 'select', options: ['light', 'dark'] }
45
+ disabled: { control: 'boolean' }
47
46
  }
48
47
  }
49
48
 
@@ -60,7 +59,6 @@ interface ArgTypes {
60
59
  stdUnit: string
61
60
  userUnit: string
62
61
  disabled?: boolean
63
- theme?: string
64
62
  }
65
63
 
66
64
  const Template: Story<ArgTypes> = ({
@@ -69,8 +67,7 @@ const Template: Story<ArgTypes> = ({
69
67
  value = 0,
70
68
  stdUnit = 'kg',
71
69
  userUnit,
72
- disabled,
73
- theme = 'light'
70
+ disabled
74
71
  }: ArgTypes) => html`
75
72
  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" />
76
73
 
@@ -106,10 +103,6 @@ const Template: Story<ArgTypes> = ({
106
103
  }
107
104
  </style>
108
105
 
109
- <script>
110
- document.body.classList.add('${theme}')
111
- </script>
112
-
113
106
  <div class="container md-typescale-body-large-prominent">
114
107
  <ox-input-unit-number
115
108
  name=${name}