@operato/input 2.0.0-alpha.9 → 2.0.0-alpha.90

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 (197) hide show
  1. package/CHANGELOG.md +244 -0
  2. package/demo/index-multiple-colors.html +14 -2
  3. package/demo/index-partition-keys.html +13 -2
  4. package/demo/index-select.html +20 -9
  5. package/demo/index-table.html +13 -2
  6. package/demo/index.html +13 -2
  7. package/dist/src/locale/locale-picker.d.ts +1 -1
  8. package/dist/src/ox-buttons-radio.d.ts +1 -1
  9. package/dist/src/ox-checkbox.d.ts +5 -4
  10. package/dist/src/ox-checkbox.js +12 -6
  11. package/dist/src/ox-checkbox.js.map +1 -1
  12. package/dist/src/ox-input-3axis.d.ts +1 -1
  13. package/dist/src/ox-input-3dish.d.ts +1 -1
  14. package/dist/src/ox-input-angle.d.ts +1 -1
  15. package/dist/src/ox-input-barcode.d.ts +1 -1
  16. package/dist/src/ox-input-barcode.js +2 -2
  17. package/dist/src/ox-input-barcode.js.map +1 -1
  18. package/dist/src/ox-input-code.d.ts +2 -3
  19. package/dist/src/ox-input-code.js +8 -15
  20. package/dist/src/ox-input-code.js.map +1 -1
  21. package/dist/src/ox-input-color-gradient.d.ts +1 -1
  22. package/dist/src/ox-input-color-stops.d.ts +1 -1
  23. package/dist/src/ox-input-color.d.ts +1 -1
  24. package/dist/src/ox-input-container.d.ts +2 -2
  25. package/dist/src/ox-input-container.js +2 -2
  26. package/dist/src/ox-input-container.js.map +1 -1
  27. package/dist/src/ox-input-crontab.d.ts +1 -2
  28. package/dist/src/ox-input-crontab.js +4 -7
  29. package/dist/src/ox-input-crontab.js.map +1 -1
  30. package/dist/src/ox-input-data.d.ts +4 -5
  31. package/dist/src/ox-input-data.js +88 -36
  32. package/dist/src/ox-input-data.js.map +1 -1
  33. package/dist/src/ox-input-duration.d.ts +1 -2
  34. package/dist/src/ox-input-duration.js +13 -9
  35. package/dist/src/ox-input-duration.js.map +1 -1
  36. package/dist/src/ox-input-file.d.ts +2 -2
  37. package/dist/src/ox-input-file.js +10 -9
  38. package/dist/src/ox-input-file.js.map +1 -1
  39. package/dist/src/ox-input-hashtags.d.ts +1 -1
  40. package/dist/src/ox-input-i18n-label.d.ts +33 -0
  41. package/dist/src/ox-input-i18n-label.js +130 -0
  42. package/dist/src/ox-input-i18n-label.js.map +1 -0
  43. package/dist/src/ox-input-image.d.ts +2 -2
  44. package/dist/src/ox-input-image.js +4 -4
  45. package/dist/src/ox-input-image.js.map +1 -1
  46. package/dist/src/ox-input-key-values.d.ts +2 -2
  47. package/dist/src/ox-input-key-values.js +9 -10
  48. package/dist/src/ox-input-key-values.js.map +1 -1
  49. package/dist/src/ox-input-mass-fraction.d.ts +2 -2
  50. package/dist/src/ox-input-mass-fraction.js +46 -29
  51. package/dist/src/ox-input-mass-fraction.js.map +1 -1
  52. package/dist/src/ox-input-multiple-colors.d.ts +2 -2
  53. package/dist/src/ox-input-multiple-colors.js +7 -7
  54. package/dist/src/ox-input-multiple-colors.js.map +1 -1
  55. package/dist/src/ox-input-options.d.ts +2 -2
  56. package/dist/src/ox-input-options.js +5 -7
  57. package/dist/src/ox-input-options.js.map +1 -1
  58. package/dist/src/ox-input-partition-keys.d.ts +2 -2
  59. package/dist/src/ox-input-partition-keys.js +10 -10
  60. package/dist/src/ox-input-partition-keys.js.map +1 -1
  61. package/dist/src/ox-input-privilege.d.ts +1 -2
  62. package/dist/src/ox-input-privilege.js +15 -31
  63. package/dist/src/ox-input-privilege.js.map +1 -1
  64. package/dist/src/ox-input-quantifier.d.ts +1 -1
  65. package/dist/src/ox-input-scene-component-id.d.ts +1 -1
  66. package/dist/src/ox-input-search.d.ts +2 -2
  67. package/dist/src/ox-input-search.js +5 -4
  68. package/dist/src/ox-input-search.js.map +1 -1
  69. package/dist/src/ox-input-select-buttons.d.ts +1 -1
  70. package/dist/src/ox-input-stack.d.ts +1 -1
  71. package/dist/src/ox-input-table.d.ts +1 -1
  72. package/dist/src/ox-input-table.js +12 -12
  73. package/dist/src/ox-input-table.js.map +1 -1
  74. package/dist/src/ox-input-textarea.d.ts +1 -1
  75. package/dist/src/ox-input-unit-number.d.ts +2 -2
  76. package/dist/src/ox-input-unit-number.js +5 -4
  77. package/dist/src/ox-input-unit-number.js.map +1 -1
  78. package/dist/src/ox-input-value-map.d.ts +2 -2
  79. package/dist/src/ox-input-value-map.js +17 -17
  80. package/dist/src/ox-input-value-map.js.map +1 -1
  81. package/dist/src/ox-input-value-ranges.d.ts +2 -2
  82. package/dist/src/ox-input-value-ranges.js +22 -17
  83. package/dist/src/ox-input-value-ranges.js.map +1 -1
  84. package/dist/src/ox-input-work-shift.d.ts +1 -1
  85. package/dist/src/ox-input-work-shift.js +4 -8
  86. package/dist/src/ox-input-work-shift.js.map +1 -1
  87. package/dist/src/ox-select.d.ts +2 -2
  88. package/dist/src/ox-select.js +16 -10
  89. package/dist/src/ox-select.js.map +1 -1
  90. package/dist/stories/ox-input-3axis.stories.js +14 -1
  91. package/dist/stories/ox-input-3axis.stories.js.map +1 -1
  92. package/dist/stories/ox-input-3dish.stories.js +14 -1
  93. package/dist/stories/ox-input-3dish.stories.js.map +1 -1
  94. package/dist/stories/ox-input-angle.stories.js +13 -1
  95. package/dist/stories/ox-input-angle.stories.js.map +1 -1
  96. package/dist/stories/ox-input-barcode.stories.js +13 -1
  97. package/dist/stories/ox-input-barcode.stories.js.map +1 -1
  98. package/dist/stories/ox-input-code.stories.d.ts +4 -0
  99. package/dist/stories/ox-input-code.stories.js +18 -3
  100. package/dist/stories/ox-input-code.stories.js.map +1 -1
  101. package/dist/stories/ox-input-crontab.stories.js +13 -1
  102. package/dist/stories/ox-input-crontab.stories.js.map +1 -1
  103. package/dist/stories/ox-input-data.stories.d.ts +29 -0
  104. package/dist/stories/ox-input-data.stories.js +50 -0
  105. package/dist/stories/ox-input-data.stories.js.map +1 -0
  106. package/dist/stories/ox-input-duration.stories.js +13 -1
  107. package/dist/stories/ox-input-duration.stories.js.map +1 -1
  108. package/dist/stories/ox-input-file.stories.js +13 -1
  109. package/dist/stories/ox-input-file.stories.js.map +1 -1
  110. package/dist/stories/ox-input-hashtags.stories.js +13 -1
  111. package/dist/stories/ox-input-hashtags.stories.js.map +1 -1
  112. package/dist/stories/ox-input-i18n-label.stories.d.ts +29 -0
  113. package/dist/stories/ox-input-i18n-label.stories.js +70 -0
  114. package/dist/stories/ox-input-i18n-label.stories.js.map +1 -0
  115. package/dist/stories/ox-input-key-values.stories.js +13 -1
  116. package/dist/stories/ox-input-key-values.stories.js.map +1 -1
  117. package/dist/stories/ox-input-mass-fraction.stories.js +13 -1
  118. package/dist/stories/ox-input-mass-fraction.stories.js.map +1 -1
  119. package/dist/stories/ox-input-multiple-colors.stories.js +21 -11
  120. package/dist/stories/ox-input-multiple-colors.stories.js.map +1 -1
  121. package/dist/stories/ox-input-options.stories.js +13 -1
  122. package/dist/stories/ox-input-options.stories.js.map +1 -1
  123. package/dist/stories/ox-input-partition-keys.stories.js +13 -1
  124. package/dist/stories/ox-input-partition-keys.stories.js.map +1 -1
  125. package/dist/stories/ox-input-privilege.stories.js +13 -1
  126. package/dist/stories/ox-input-privilege.stories.js.map +1 -1
  127. package/dist/stories/ox-input-quantifier.stories.js +13 -1
  128. package/dist/stories/ox-input-quantifier.stories.js.map +1 -1
  129. package/dist/stories/ox-input-range.stories.js +13 -1
  130. package/dist/stories/ox-input-range.stories.js.map +1 -1
  131. package/dist/stories/ox-input-search.stories.js +13 -1
  132. package/dist/stories/ox-input-search.stories.js.map +1 -1
  133. package/dist/stories/ox-input-select-buttons.stories.js +13 -1
  134. package/dist/stories/ox-input-select-buttons.stories.js.map +1 -1
  135. package/dist/stories/ox-input-unit.stories.js +14 -1
  136. package/dist/stories/ox-input-unit.stories.js.map +1 -1
  137. package/dist/stories/ox-input-value-map.stories.js +13 -1
  138. package/dist/stories/ox-input-value-map.stories.js.map +1 -1
  139. package/dist/stories/ox-input-value-ranges.stories.js +13 -1
  140. package/dist/stories/ox-input-value-ranges.stories.js.map +1 -1
  141. package/dist/stories/ox-input-work-shift.stories.js +13 -1
  142. package/dist/stories/ox-input-work-shift.stories.js.map +1 -1
  143. package/dist/stories/ox-select.stories.js +13 -1
  144. package/dist/stories/ox-select.stories.js.map +1 -1
  145. package/dist/tsconfig.tsbuildinfo +1 -1
  146. package/package.json +25 -21
  147. package/src/ox-checkbox.ts +9 -6
  148. package/src/ox-input-barcode.ts +2 -2
  149. package/src/ox-input-code.ts +6 -13
  150. package/src/ox-input-container.ts +2 -2
  151. package/src/ox-input-crontab.ts +4 -8
  152. package/src/ox-input-data.ts +97 -38
  153. package/src/ox-input-duration.ts +13 -10
  154. package/src/ox-input-file.ts +10 -9
  155. package/src/ox-input-i18n-label.ts +140 -0
  156. package/src/ox-input-image.ts +4 -4
  157. package/src/ox-input-key-values.ts +27 -22
  158. package/src/ox-input-mass-fraction.ts +46 -29
  159. package/src/ox-input-multiple-colors.ts +7 -7
  160. package/src/ox-input-options.ts +5 -7
  161. package/src/ox-input-partition-keys.ts +28 -22
  162. package/src/ox-input-privilege.ts +15 -32
  163. package/src/ox-input-search.ts +5 -4
  164. package/src/ox-input-table.ts +12 -12
  165. package/src/ox-input-unit-number.ts +5 -4
  166. package/src/ox-input-value-map.ts +19 -19
  167. package/src/ox-input-value-ranges.ts +24 -19
  168. package/src/ox-input-work-shift.ts +4 -8
  169. package/src/ox-select.ts +16 -10
  170. package/stories/ox-input-3axis.stories.ts +14 -1
  171. package/stories/ox-input-3dish.stories.ts +14 -1
  172. package/stories/ox-input-angle.stories.ts +13 -1
  173. package/stories/ox-input-barcode.stories.ts +13 -1
  174. package/stories/ox-input-code.stories.ts +25 -3
  175. package/stories/ox-input-crontab.stories.ts +13 -1
  176. package/stories/ox-input-data.stories.ts +65 -0
  177. package/stories/ox-input-duration.stories.ts +13 -1
  178. package/stories/ox-input-file.stories.ts +13 -1
  179. package/stories/ox-input-hashtags.stories.ts +13 -1
  180. package/stories/ox-input-i18n-label.stories.ts +85 -0
  181. package/stories/ox-input-key-values.stories.ts +13 -1
  182. package/stories/ox-input-mass-fraction.stories.ts +13 -1
  183. package/stories/ox-input-multiple-colors.stories.ts +21 -11
  184. package/stories/ox-input-options.stories.ts +13 -1
  185. package/stories/ox-input-partition-keys.stories.ts +13 -1
  186. package/stories/ox-input-privilege.stories.ts +13 -1
  187. package/stories/ox-input-quantifier.stories.ts +13 -1
  188. package/stories/ox-input-range.stories.ts +13 -1
  189. package/stories/ox-input-search.stories.ts +13 -1
  190. package/stories/ox-input-select-buttons.stories.ts +13 -1
  191. package/stories/ox-input-unit.stories.ts +14 -1
  192. package/stories/ox-input-value-map.stories.ts +13 -1
  193. package/stories/ox-input-value-ranges.stories.ts +13 -1
  194. package/stories/ox-input-work-shift.stories.ts +13 -1
  195. package/stories/ox-select.stories.ts +13 -1
  196. package/themes/app-theme.css +1 -1
  197. package/themes/input-theme.css +20 -7
@@ -0,0 +1,65 @@
1
+ import '../src/ox-input-data.js'
2
+
3
+ import { html, TemplateResult } from 'lit'
4
+
5
+ export default {
6
+ title: 'ox-input-data',
7
+ component: 'ox-input-data',
8
+ argTypes: {
9
+ value: { control: 'text' },
10
+ name: { control: 'text' },
11
+ disabled: { control: 'boolean' }
12
+ }
13
+ }
14
+
15
+ interface Story<T> {
16
+ (args: T): TemplateResult
17
+ args?: Partial<T>
18
+ argTypes?: Record<string, unknown>
19
+ }
20
+
21
+ interface ArgTypes {
22
+ name?: string
23
+ value?: string | number | object
24
+ disabled?: boolean
25
+ }
26
+
27
+ const Template: Story<ArgTypes> = ({ name = 'code', value = '', disabled }: ArgTypes) => html`
28
+ <link href="/themes/app-theme.css" rel="stylesheet" />
29
+
30
+ <link
31
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
32
+ rel="stylesheet"
33
+ />
34
+ <link
35
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
36
+ rel="stylesheet"
37
+ />
38
+ <link
39
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
40
+ rel="stylesheet"
41
+ />
42
+ <style>
43
+ body {
44
+ }
45
+ ox-input-data {
46
+ height: 300px;
47
+ }
48
+ </style>
49
+
50
+ <ox-input-data
51
+ @change=${(e: Event) => {
52
+ const value = (e.target as HTMLInputElement).value
53
+ console.log('value : ', value, typeof value)
54
+ }}
55
+ name=${name}
56
+ .value=${value}
57
+ ?disabled=${disabled}
58
+ >
59
+ </ox-input-data>
60
+ `
61
+
62
+ export const Regular = Template.bind({})
63
+ Regular.args = {
64
+ name: 'data'
65
+ }
@@ -27,7 +27,19 @@ interface ArgTypes {
27
27
 
28
28
  const Template: Story<ArgTypes> = ({ name = 'duration', value = 3601, disabled }: ArgTypes) => html`
29
29
  <link href="/themes/app-theme.css" rel="stylesheet" />
30
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
30
+
31
+ <link
32
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
33
+ rel="stylesheet"
34
+ />
35
+ <link
36
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
37
+ rel="stylesheet"
38
+ />
39
+ <link
40
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
41
+ rel="stylesheet"
42
+ />
31
43
  <style>
32
44
  body {
33
45
  }
@@ -48,7 +48,19 @@ const Template: Story<ArgTypes> = ({
48
48
  disabled
49
49
  }: ArgTypes) => html`
50
50
  <link href="/themes/app-theme.css" rel="stylesheet" />
51
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
51
+
52
+ <link
53
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
54
+ rel="stylesheet"
55
+ />
56
+ <link
57
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
58
+ rel="stylesheet"
59
+ />
60
+ <link
61
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
62
+ rel="stylesheet"
63
+ />
52
64
  <style>
53
65
  body {
54
66
  }
@@ -28,7 +28,19 @@ interface ArgTypes {
28
28
 
29
29
  const Template: Story<ArgTypes> = ({ placeholder = 'hashtag', name = 'hello', value = [], disabled }: ArgTypes) => html`
30
30
  <link href="/themes/app-theme.css" rel="stylesheet" />
31
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
31
+
32
+ <link
33
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
34
+ rel="stylesheet"
35
+ />
36
+ <link
37
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
38
+ rel="stylesheet"
39
+ />
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
32
44
  <style>
33
45
  body {
34
46
  }
@@ -0,0 +1,85 @@
1
+ import '../src/ox-input-i18n-label.js'
2
+
3
+ import { html, TemplateResult } from 'lit'
4
+
5
+ export default {
6
+ title: 'ox-input-i18n-label',
7
+ component: 'ox-input-i18n-label',
8
+ argTypes: {
9
+ name: { control: 'text' },
10
+ value: { control: 'object' },
11
+ disabled: { control: 'boolean' }
12
+ }
13
+ }
14
+
15
+ interface Story<T> {
16
+ (args: T): TemplateResult
17
+ args?: Partial<T>
18
+ argTypes?: Record<string, unknown>
19
+ }
20
+
21
+ interface ArgTypes {
22
+ name?: string
23
+ value?: object
24
+ disabled?: boolean
25
+ }
26
+
27
+ const Template: Story<ArgTypes> = ({ name = 'values', value, disabled }: ArgTypes) => html`
28
+ <link href="/themes/app-theme.css" rel="stylesheet" />
29
+
30
+ <link
31
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
32
+ rel="stylesheet"
33
+ />
34
+ <link
35
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
36
+ rel="stylesheet"
37
+ />
38
+ <link
39
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
40
+ rel="stylesheet"
41
+ />
42
+ <style>
43
+ body {
44
+ }
45
+ </style>
46
+
47
+ <ox-input-i18n-label
48
+ @change=${(e: Event) => {
49
+ console.log((e.target as HTMLInputElement).value)
50
+ }}
51
+ name=${name}
52
+ .value=${value}
53
+ .languages=${[
54
+ {
55
+ code: 'ko',
56
+ display: '한글'
57
+ },
58
+ {
59
+ code: 'en',
60
+ display: 'English'
61
+ },
62
+ {
63
+ code: 'zh',
64
+ display: 'Chinese'
65
+ },
66
+ {
67
+ code: 'ja',
68
+ display: 'Japanese'
69
+ }
70
+ ]}
71
+ ?disabled=${disabled}
72
+ >
73
+ </ox-input-i18n-label>
74
+ `
75
+
76
+ export const Regular = Template.bind({})
77
+ Regular.args = {
78
+ name: 'i18n labels',
79
+ value: {
80
+ ko: '한글 코드',
81
+ en: 'English code',
82
+ zh: 'Chinese code',
83
+ ja: 'Japan code'
84
+ }
85
+ }
@@ -28,7 +28,19 @@ interface ArgTypes {
28
28
 
29
29
  const Template: Story<ArgTypes> = ({ name = 'key-values', value = {}, options = [], disabled }: ArgTypes) => html`
30
30
  <link href="/themes/app-theme.css" rel="stylesheet" />
31
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
31
+
32
+ <link
33
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
34
+ rel="stylesheet"
35
+ />
36
+ <link
37
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
38
+ rel="stylesheet"
39
+ />
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
32
44
  <style>
33
45
  body {
34
46
  }
@@ -36,7 +36,19 @@ const Template: Story<ArgTypes> = ({
36
36
  disabled
37
37
  }: ArgTypes) => html`
38
38
  <link href="/themes/app-theme.css" rel="stylesheet" />
39
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
39
+
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
44
+ <link
45
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
46
+ rel="stylesheet"
47
+ />
48
+ <link
49
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
50
+ rel="stylesheet"
51
+ />
40
52
  <style>
41
53
  body {
42
54
  }
@@ -22,7 +22,18 @@ interface ArgTypes {
22
22
  }
23
23
 
24
24
  const Template: Story<ArgTypes> = ({ disabled }: ArgTypes) => html`
25
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
25
+ <link
26
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
27
+ rel="stylesheet"
28
+ />
29
+ <link
30
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
31
+ rel="stylesheet"
32
+ />
33
+ <link
34
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
35
+ rel="stylesheet"
36
+ />
26
37
 
27
38
  <style>
28
39
  body {
@@ -99,15 +110,14 @@ const Template: Story<ArgTypes> = ({ disabled }: ArgTypes) => html`
99
110
  --icon-default-color: var(--theme-white-color);
100
111
 
101
112
  /* material design component themes */
102
- --mdc-theme-on-primary: var(--theme-white-color);
103
- --mdc-theme-primary: var(--secondary-text-color);
104
- --mdc-theme-on-secondary: var(--theme-white-color);
105
- --mdc-theme-secondary: var(--primary-color);
106
- --mdc-button-outline-color: var(--primary-color);
107
- --mdc-danger-button-primary-color: var(--status-danger-color);
108
- --mdc-danger-button-outline-color: var(--status-danger-color);
109
- --mdc-button-outline-width: 1px;
110
- --mdc-button-horizontal-padding: 16px;
113
+ --md-theme-on-primary: var(--theme-white-color);
114
+ --md-theme-primary: var(--secondary-text-color);
115
+ --md-theme-on-secondary: var(--theme-white-color);
116
+ --md-theme-secondary: var(--primary-color);
117
+ --md-button-outline-color: var(--primary-color);
118
+ --md-danger-button-primary-color: var(--status-danger-color);
119
+ --md-danger-button-outline-color: var(--status-danger-color);
120
+ --md-button-outline-width: 1px;
111
121
 
112
122
  /* button style */
113
123
  --button-background-color: #fafbfc;
@@ -151,7 +161,7 @@ const Template: Story<ArgTypes> = ({ disabled }: ArgTypes) => html`
151
161
  --label-color: var(--secondary-color);
152
162
  --label-text-transform: capitalize;
153
163
  --input-margin: var(--margin-narrow) 0;
154
- --input-padding: var(--padding-default);
164
+ --input-padding: 6px 2px;
155
165
  --input-min-width: 200px;
156
166
  --input-font: normal var(--fontsize-default) var(--theme-font);
157
167
  --input-hint-font: normal var(--fontsize-small) var(--theme-font);
@@ -26,7 +26,19 @@ interface ArgTypes {
26
26
 
27
27
  const Template: Story<ArgTypes> = ({ name = 'options', value = {}, disabled }: ArgTypes) => html`
28
28
  <link href="/themes/app-theme.css" rel="stylesheet" />
29
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
29
+
30
+ <link
31
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
32
+ rel="stylesheet"
33
+ />
34
+ <link
35
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
36
+ rel="stylesheet"
37
+ />
38
+ <link
39
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
40
+ rel="stylesheet"
41
+ />
30
42
  <style>
31
43
  body {
32
44
  }
@@ -26,7 +26,19 @@ interface ArgTypes {
26
26
 
27
27
  const Template: Story<ArgTypes> = ({ name = 'partition-keys', value = {}, disabled }: ArgTypes) => html`
28
28
  <link href="/themes/app-theme.css" rel="stylesheet" />
29
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
29
+
30
+ <link
31
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
32
+ rel="stylesheet"
33
+ />
34
+ <link
35
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
36
+ rel="stylesheet"
37
+ />
38
+ <link
39
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
40
+ rel="stylesheet"
41
+ />
30
42
  <style>
31
43
  body {
32
44
  }
@@ -33,7 +33,19 @@ interface ArgTypes {
33
33
 
34
34
  const Template: Story<ArgTypes> = ({ name = 'privilege', value = null, privileges, disabled }: ArgTypes) => html`
35
35
  <link href="/themes/app-theme.css" rel="stylesheet" />
36
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
36
+
37
+ <link
38
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
39
+ rel="stylesheet"
40
+ />
41
+ <link
42
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
43
+ rel="stylesheet"
44
+ />
45
+ <link
46
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
47
+ rel="stylesheet"
48
+ />
37
49
  <style>
38
50
  body {
39
51
  }
@@ -28,7 +28,19 @@ interface ArgTypes {
28
28
 
29
29
  const Template: Story<ArgTypes> = ({ name = 'quantifier', value, disabled }: ArgTypes) => html`
30
30
  <link href="/themes/app-theme.css" rel="stylesheet" />
31
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
31
+
32
+ <link
33
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
34
+ rel="stylesheet"
35
+ />
36
+ <link
37
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
38
+ rel="stylesheet"
39
+ />
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
32
44
 
33
45
  <ox-input-quantifier
34
46
  name=${name}
@@ -39,7 +39,19 @@ const Template: Story<ArgTypes> = ({
39
39
  disabled
40
40
  }: ArgTypes) => html`
41
41
  <link href="/themes/app-theme.css" rel="stylesheet" />
42
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
42
+
43
+ <link
44
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
45
+ rel="stylesheet"
46
+ />
47
+ <link
48
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
49
+ rel="stylesheet"
50
+ />
51
+ <link
52
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
53
+ rel="stylesheet"
54
+ />
43
55
 
44
56
  <ox-input-range name=${name} value=${value} step=${step} min=${min} max=${max} ?disabled=${disabled}>
45
57
  </ox-input-range>
@@ -36,7 +36,19 @@ const Template: Story<ArgTypes> = ({
36
36
  disabled
37
37
  }: ArgTypes) => html`
38
38
  <link href="/themes/app-theme.css" rel="stylesheet" />
39
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
39
+
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
44
+ <link
45
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
46
+ rel="stylesheet"
47
+ />
48
+ <link
49
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
50
+ rel="stylesheet"
51
+ />
40
52
  <style>
41
53
  body {
42
54
  }
@@ -36,7 +36,19 @@ const Template: Story<ArgTypes> = ({
36
36
  disabled
37
37
  }: ArgTypes) => html`
38
38
  <link href="/themes/app-theme.css" rel="stylesheet" />
39
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
39
+
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
44
+ <link
45
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
46
+ rel="stylesheet"
47
+ />
48
+ <link
49
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
50
+ rel="stylesheet"
51
+ />
40
52
  <style>
41
53
  ox-input-select-buttons {
42
54
  max-width: 400px;
@@ -68,8 +68,21 @@ const Template: Story<ArgTypes> = ({
68
68
  userUnit,
69
69
  disabled
70
70
  }: ArgTypes) => html`
71
- <link href="https://fonts.googleapis.com/css?family=Material+Icons" rel="stylesheet" />
71
+ <link
72
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
73
+ rel="stylesheet"
74
+ />
75
+ <link
76
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
77
+ rel="stylesheet"
78
+ />
79
+ <link
80
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
81
+ rel="stylesheet"
82
+ />
83
+
72
84
  <link href="/themes/app-theme.css" rel="stylesheet" />
85
+
73
86
  <ox-input-unit-number
74
87
  name=${name}
75
88
  placeholder=${placeholder}
@@ -36,7 +36,19 @@ const Template: Story<ArgTypes> = ({
36
36
  disabled
37
37
  }: ArgTypes) => html`
38
38
  <link href="/themes/app-theme.css" rel="stylesheet" />
39
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
39
+
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
44
+ <link
45
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
46
+ rel="stylesheet"
47
+ />
48
+ <link
49
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
50
+ rel="stylesheet"
51
+ />
40
52
  <style>
41
53
  body {
42
54
  }
@@ -36,7 +36,19 @@ const Template: Story<ArgTypes> = ({
36
36
  disabled
37
37
  }: ArgTypes) => html`
38
38
  <link href="/themes/app-theme.css" rel="stylesheet" />
39
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
39
+
40
+ <link
41
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
42
+ rel="stylesheet"
43
+ />
44
+ <link
45
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
46
+ rel="stylesheet"
47
+ />
48
+ <link
49
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
50
+ rel="stylesheet"
51
+ />
40
52
  <style>
41
53
  body {
42
54
  }
@@ -27,7 +27,19 @@ interface ArgTypes {
27
27
 
28
28
  const Template: Story<ArgTypes> = ({ name = 'work-shift', value = [], disabled }: ArgTypes) => html`
29
29
  <link href="/themes/app-theme.css" rel="stylesheet" />
30
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
30
+
31
+ <link
32
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
33
+ rel="stylesheet"
34
+ />
35
+ <link
36
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
37
+ rel="stylesheet"
38
+ />
39
+ <link
40
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
41
+ rel="stylesheet"
42
+ />
31
43
  <style>
32
44
  body {
33
45
  }
@@ -35,7 +35,19 @@ const Template: Story<ArgTypes> = ({
35
35
  disabled
36
36
  }: ArgTypes) => html`
37
37
  <link href="/themes/app-theme.css" rel="stylesheet" />
38
- <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
38
+
39
+ <link
40
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
41
+ rel="stylesheet"
42
+ />
43
+ <link
44
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
45
+ rel="stylesheet"
46
+ />
47
+ <link
48
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
49
+ rel="stylesheet"
50
+ />
39
51
 
40
52
  <div style="height: 300px">
41
53
  <ox-select
@@ -124,7 +124,7 @@ body {
124
124
  --label-color: var(--secondary-color);
125
125
  --label-text-transform: capitalize;
126
126
  --input-margin: var(--margin-narrow) 0;
127
- --input-padding: var(--padding-default);
127
+ --input-padding: 6px 2px;
128
128
  --input-min-width: 200px;
129
129
  --input-font: normal var(--fontsize-default) var(--theme-font);
130
130
  --input-hint-font: normal var(--fontsize-small) var(--theme-font);
@@ -1,9 +1,23 @@
1
1
  body {
2
- --ox-input-border: 1px solid rgba(0, 0, 0, 0.1);
3
- --ox-input-border-radius: var(--border-radius);
4
- --ox-input-padding: var(--input-padding);
5
- --ox-input-font: normal 15px var(--theme-font);
6
- --ox-input-color: var(--secondary-color);
2
+ --input-intra-gap: 7px;
3
+ --input-border: 1px solid rgba(0, 0, 0, 0.1);
4
+ --input-border-radius: var(--border-radius);
5
+ --input-font: normal 15px var(--theme-font);
6
+ --input-color: var(--secondary-color);
7
+
8
+ --ox-checkbox-disabled-opacity: 0.5;
9
+ --ox-checkbox-border-radius: 4px;
10
+ --ox-checkbox-border: 1px solid rgba(0, 0, 0, 0.3);
11
+ --ox-checkbox-background-color: #fff;
12
+ --ox-checkbox-size: 15px;
13
+ --ox-checkbox-checked-border: 1px solid var(--primary-color);
14
+ --ox-checkbox-unchecked-border: 1px solid rgba(0, 0, 0, 0.3);
15
+ --ox-checkbox-checked-background-color: #fff;
16
+ --ox-checkbox-unchecked-background-color: #fff;
17
+ --ox-checkbox-fill-color: rgba(0, 0, 0, 0.1);
18
+ --ox-checkbox-checked-color: var(--primary-color);
19
+ --ox-checkbox-label-color: var(--label-color);
20
+ --ox-checkbox-checked-font-weight: bold;
7
21
  }
8
22
 
9
23
  @media screen and (max-width: 480px) {
@@ -13,7 +27,6 @@ body {
13
27
 
14
28
  @media (min-width: 481px) and (max-width: 1024px) {
15
29
  body {
16
- --ox-input-font: normal 16px var(--theme-font);
17
- --ox-input-padding: 4px 5px;
30
+ --input-font: normal 16px var(--theme-font);
18
31
  }
19
32
  }