@lunit/design-system 1.0.0-b.4 → 2.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 (132) hide show
  1. package/dist/cjs/components/Alert/index.js +1 -1
  2. package/dist/cjs/components/Alert/index.js.map +1 -1
  3. package/dist/cjs/components/Button/index.js +1 -1
  4. package/dist/cjs/components/Button/index.js.map +1 -1
  5. package/dist/cjs/components/Checkbox/index.js +1 -1
  6. package/dist/cjs/components/Checkbox/index.js.map +1 -1
  7. package/dist/cjs/components/Chip/index.js +1 -1
  8. package/dist/cjs/components/Chip/index.js.map +1 -1
  9. package/dist/cjs/components/Dialog/index.js +2 -0
  10. package/dist/cjs/components/Dialog/index.js.map +1 -0
  11. package/dist/cjs/components/Radio/index.js +1 -1
  12. package/dist/cjs/components/Radio/index.js.map +1 -1
  13. package/dist/cjs/components/TextField/index.js +1 -1
  14. package/dist/cjs/components/TextField/index.js.map +1 -1
  15. package/dist/cjs/components/ToggleButton/index.js +1 -1
  16. package/dist/cjs/components/ToggleButton/index.js.map +1 -1
  17. package/dist/cjs/index.js +1 -1
  18. package/dist/cjs/index.js.map +1 -1
  19. package/dist/components/Button/Button.js +21 -3
  20. package/dist/components/Button/Button.js.map +1 -1
  21. package/dist/components/Button/Button.styled.js +3 -6
  22. package/dist/components/Button/Button.styled.js.map +1 -1
  23. package/dist/components/Checkbox/Checkbox.js +9 -19
  24. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  25. package/dist/components/Chip/Chip.js +6 -5
  26. package/dist/components/Chip/Chip.js.map +1 -1
  27. package/dist/components/Dialog/Dialog.js +61 -0
  28. package/dist/components/Dialog/Dialog.js.map +1 -0
  29. package/dist/components/Dialog/Dialog.styled.js +137 -0
  30. package/dist/components/Dialog/Dialog.styled.js.map +1 -0
  31. package/dist/components/Dialog/components/DialogAction.js +18 -0
  32. package/dist/components/Dialog/components/DialogAction.js.map +1 -0
  33. package/dist/components/Dialog/index.js +2 -0
  34. package/dist/components/Dialog/index.js.map +1 -0
  35. package/dist/components/Radio/Radio.js +7 -21
  36. package/dist/components/Radio/Radio.js.map +1 -1
  37. package/dist/components/TextField/TextField.js +4 -4
  38. package/dist/components/TextField/TextField.js.map +1 -1
  39. package/dist/components/ToggleButton/ToggleButton.styled.js +2 -3
  40. package/dist/components/ToggleButton/ToggleButton.styled.js.map +1 -1
  41. package/dist/foundation/Elevation/index.js +1 -1
  42. package/dist/foundation/Elevation/index.js.map +1 -1
  43. package/dist/foundation/Typography/index.js +12 -0
  44. package/dist/foundation/Typography/index.js.map +1 -1
  45. package/dist/foundation/Typography/tokens.js +1 -17
  46. package/dist/foundation/Typography/tokens.js.map +1 -1
  47. package/dist/foundation/colors/base/grey.js +3 -1
  48. package/dist/foundation/colors/base/grey.js.map +1 -1
  49. package/dist/foundation/colors/index.js +9 -6
  50. package/dist/foundation/colors/index.js.map +1 -1
  51. package/dist/foundation/colors/token/component.js +31 -115
  52. package/dist/foundation/colors/token/component.js.map +1 -1
  53. package/dist/foundation/colors/token/core.js +43 -75
  54. package/dist/foundation/colors/token/core.js.map +1 -1
  55. package/dist/foundation/index.js +1 -1
  56. package/dist/foundation/index.js.map +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/index.js.map +1 -1
  59. package/dist/types/components/Alert/Alert.utils.d.ts +3 -3
  60. package/dist/types/components/Button/Button.styled.d.ts +9 -12
  61. package/dist/types/components/Button/Button.types.d.ts +8 -5
  62. package/dist/types/components/Chip/Chip.styled.d.ts +12 -12
  63. package/dist/types/components/Chip/Chip.types.d.ts +7 -2
  64. package/dist/types/components/Dialog/Dialog.d.ts +50 -0
  65. package/dist/types/components/Dialog/Dialog.styled.d.ts +12 -0
  66. package/dist/types/components/Dialog/components/DialogAction.d.ts +8 -0
  67. package/dist/types/components/Dialog/index.d.ts +2 -0
  68. package/dist/types/components/TextField/TextField.types.d.ts +8 -3
  69. package/dist/types/components/Toast/Toast.utils.d.ts +1 -1
  70. package/dist/types/components/ToggleButton/ToggleButton.styled.d.ts +2 -2
  71. package/dist/types/foundation/Elevation/index.d.ts +1 -1
  72. package/dist/types/foundation/Typography/index.d.ts +13 -1
  73. package/dist/types/foundation/Typography/tokens.d.ts +1 -1
  74. package/dist/types/foundation/colors/base/grey.d.ts +2 -0
  75. package/dist/types/foundation/colors/index.d.ts +9 -6
  76. package/dist/types/foundation/colors/token/types.d.ts +0 -2
  77. package/dist/types/foundation/colors/types.d.ts +78 -76
  78. package/dist/types/foundation/index.d.ts +9 -0
  79. package/dist/types/index.d.ts +1 -1
  80. package/package.json +1 -1
  81. package/src/components/Button/Button.styled.ts +3 -6
  82. package/src/components/Button/Button.tsx +117 -42
  83. package/src/components/Button/Button.types.ts +8 -4
  84. package/src/components/Checkbox/Checkbox.tsx +39 -22
  85. package/src/components/Chip/Chip.tsx +15 -4
  86. package/src/components/Chip/Chip.types.ts +9 -2
  87. package/src/components/Dialog/Dialog.styled.ts +165 -0
  88. package/src/components/Dialog/Dialog.tsx +195 -0
  89. package/src/components/Dialog/components/DialogAction.tsx +36 -0
  90. package/src/components/Dialog/index.ts +14 -0
  91. package/src/components/Radio/Radio.tsx +37 -25
  92. package/src/components/TextField/TextField.tsx +10 -10
  93. package/src/components/TextField/TextField.types.ts +11 -4
  94. package/src/components/ToggleButton/ToggleButton.styled.ts +2 -3
  95. package/src/foundation/Elevation/index.ts +1 -1
  96. package/src/foundation/Typography/index.ts +12 -0
  97. package/src/foundation/Typography/tokens.ts +1 -17
  98. package/src/foundation/colors/base/grey.ts +3 -1
  99. package/src/foundation/colors/index.ts +9 -6
  100. package/src/foundation/colors/token/component.ts +24 -108
  101. package/src/foundation/colors/token/core.ts +39 -71
  102. package/src/foundation/colors/token/types.ts +0 -2
  103. package/src/foundation/colors/types.ts +78 -75
  104. package/src/foundation/index.ts +1 -1
  105. package/src/index.ts +1 -1
  106. package/src/stories/GettingStarted.mdx +88 -0
  107. package/src/stories/components/Button/BasicButton.stories.tsx +91 -52
  108. package/src/stories/components/Button/ButtonDocs.mdx +187 -0
  109. package/src/stories/components/Button/Color.stories.tsx +132 -0
  110. package/src/stories/components/Button/IconButton.stories.tsx +42 -25
  111. package/src/stories/components/Button/Kind.stories.tsx +75 -77
  112. package/src/stories/components/{SelectControl/Checkbox.stories.tsx → CheckBox/BasicCheckbox.stories.tsx} +84 -105
  113. package/src/stories/components/CheckBox/CheckboxDocs.mdx +85 -0
  114. package/src/stories/components/Chip/Chip.stories.tsx +80 -5
  115. package/src/stories/components/Chip/ChipDocs.mdx +132 -0
  116. package/src/stories/components/Dialog/Dialog.stories.tsx +320 -0
  117. package/src/stories/components/TextField/BasicTextField.stories.tsx +214 -0
  118. package/src/stories/components/TextField/TextFieldDocs.mdx +140 -0
  119. package/src/stories/components/TextField/TextFieldSize.stories.tsx +26 -3
  120. package/src/stories/components/ToggleButton/Basic.stories.tsx +312 -0
  121. package/src/stories/components/ToggleButton/ToggleButtonDocs.mdx +180 -0
  122. package/src/stories/components/ToggleButton/ToggleButtonKind.stories.tsx +65 -0
  123. package/src/stories/components/ToggleButton/WithIcon.stories.tsx +138 -0
  124. package/src/stories/foundation/Typography/Typography.mdx +31 -46
  125. package/src/stories/foundation/Typography/Typography.stories.tsx +30 -1
  126. package/src/stories/foundation/colors/ColorSystem.tsx +86 -0
  127. package/src/stories/foundation/colors/Docs.mdx +225 -0
  128. package/src/stories/foundation/colors/TokenPaletteTable.tsx +1 -5
  129. package/src/components/Modal/Modal.tsx +0 -8
  130. package/src/components/Modal/index.ts +0 -1
  131. package/src/stories/components/Modal/Modal.stories.tsx +0 -15
  132. package/src/stories/foundation/Typography/TypographyExamples.stories.tsx +0 -44
@@ -3,202 +3,170 @@ export const tokenCoreColor = {
3
3
  light1: "--grey_0",
4
4
  light2: "--grey_10",
5
5
  dark1: "--grey_90",
6
- dark2: "--grey_85",
7
- dark3: "--grey_80",
8
- dark4: "--grey_70",
6
+ dark2: "--grey_75",
9
7
  },
10
8
  bg_02: {
11
9
  light1: "--grey_0",
12
10
  light2: "--grey_0",
13
11
  dark1: "--grey_70",
14
12
  dark2: "--grey_70",
15
- dark3: "--grey_70",
16
- dark4: "--grey_70",
17
13
  },
18
14
  bg_03: {
19
15
  light1: "--grey_0",
20
16
  light2: "--grey_0",
21
17
  dark1: "--grey_85",
22
18
  dark2: "--grey_85",
23
- dark3: "--grey_85",
24
- dark4: "--grey_85",
19
+ },
20
+ layer_01: {
21
+ light1: "--grey_5",
22
+ light2: "--grey_5",
23
+ dark1: "--grey_80",
24
+ dark2: "--grey_80",
25
25
  },
26
26
  text_primary: {
27
27
  light1: "--lunit_teal_50",
28
28
  light2: "--lunit_teal_50",
29
29
  dark1: "--lunit_teal_40",
30
30
  dark2: "--lunit_teal_40",
31
- dark3: "--lunit_teal_40",
32
- dark4: "--lunit_teal_40",
33
31
  },
34
32
  text_normal: {
35
33
  light1: "--grey_95",
36
34
  light2: "--grey_95",
37
35
  dark1: "--grey_5",
38
36
  dark2: "--grey_5",
39
- dark3: "--grey_5",
40
- dark4: "--grey_5",
41
37
  },
42
38
  text_medium: {
43
39
  light1: "--grey_60",
44
40
  light2: "--grey_60",
45
- dark1: "--grey_40",
46
- dark2: "--grey_40",
47
- dark3: "--grey_40",
48
- dark4: "--grey_30",
41
+ dark1: "--grey_30",
42
+ dark2: "--grey_30",
49
43
  },
50
44
  text_light: {
51
45
  light1: "--grey_40",
52
46
  light2: "--grey_40",
53
47
  dark1: "--grey_50",
54
48
  dark2: "--grey_50",
55
- dark3: "--grey_50",
56
- dark4: "--grey_40",
57
49
  },
58
50
  text_error: {
59
51
  light1: "--red_40",
60
52
  light2: "--red_40",
61
53
  dark1: "--red_40",
62
- dark2: "--red_40",
63
- dark3: "--red_30",
64
- dark4: "--red_30",
54
+ dark2: "--red_30",
65
55
  },
66
56
  text_success: {
67
57
  light1: "--green_40",
68
58
  light2: "--green_40",
69
59
  dark1: "--green_40",
70
- dark2: "--green_40",
71
- dark3: "--green_30",
72
- dark4: "--green_30",
60
+ dark2: "--green_30",
73
61
  },
74
62
  text_warning: {
75
63
  light1: "--orange_40",
76
64
  light2: "--orange_40",
77
65
  dark1: "--orange_40",
78
- dark2: "--orange_40",
79
- dark3: "--orange_30",
80
- dark4: "--orange_30",
66
+ dark2: "--orange_30",
81
67
  },
82
68
  text_info: {
83
69
  light1: "--blue_40",
84
70
  light2: "--blue_40",
85
71
  dark1: "--blue_40",
86
- dark2: "--blue_40",
87
- dark3: "--blue_30",
88
- dark4: "--blue_30",
72
+ dark2: "--blue_30",
89
73
  },
90
74
  link_primary: {
91
75
  light1: "--blue_40",
92
76
  light2: "--blue_40",
93
- dark1: "--blue_40",
94
- dark2: "--blue_40",
95
- dark3: "--blue_30",
96
- dark4: "--blue_30",
77
+ dark1: "--blue_30",
78
+ dark2: "--blue_30",
97
79
  },
98
80
  link_hover: {
99
81
  light1: "--blue_50",
100
82
  light2: "--blue_50",
101
- dark1: "--blue_50",
102
- dark2: "--blue_50",
103
- dark3: "--blue_40",
104
- dark4: "--blue_40",
83
+ dark1: "--blue_40",
84
+ dark2: "--blue_40",
105
85
  },
106
86
  link_visited: {
107
87
  light1: "--purple_50",
108
88
  light2: "--purple_50",
109
- dark1: "--purple_50",
110
- dark2: "--purple_50",
111
- dark3: "--purple_40",
112
- dark4: "--purple_40",
89
+ dark1: "--purple_40",
90
+ dark2: "--purple_40",
113
91
  },
114
92
  icon_error_02: {
115
93
  light1: "--red_40",
116
94
  light2: "--red_40",
117
95
  dark1: "--red_30",
118
96
  dark2: "--red_30",
119
- dark3: "--red_30",
120
- dark4: "--red_30",
121
97
  },
122
98
  icon_success_02: {
123
99
  light1: "--green_40",
124
100
  light2: "--green_40",
125
101
  dark1: "--green_30",
126
102
  dark2: "--green_30",
127
- dark3: "--green_30",
128
- dark4: "--green_30",
129
103
  },
130
104
  icon_warning_02: {
131
105
  light1: "--orange_40",
132
106
  light2: "--orange_40",
133
107
  dark1: "--orange_30",
134
108
  dark2: "--orange_30",
135
- dark3: "--orange_30",
136
- dark4: "--orange_30",
137
109
  },
138
110
  icon_info_02: {
139
111
  light1: "--blue_40",
140
112
  light2: "--blue_40",
141
113
  dark1: "--blue_30",
142
114
  dark2: "--blue_30",
143
- dark3: "--blue_30",
144
- dark4: "--blue_30",
145
115
  },
146
116
  hover: {
147
117
  // TODO: 알파값 적용 코드는 일단 하드코딩. 나중에 수정할것
148
- light1: "rgba(0, 0, 0, 0.1)",
149
- light2: "rgba(0, 0, 0, 0.1)",
150
- dark1: "rgba(0, 0, 0, 0.1)",
151
- dark2: "rgba(0, 0, 0, 0.1)",
152
- dark3: "rgba(0, 0, 0, 0.1)",
153
- dark4: "rgba(0, 0, 0, 0.1)", // grey_100 10%
118
+ light1: "rgba(0, 0, 0, 0.12)",
119
+ light2: "rgba(0, 0, 0, 0.12)",
120
+ dark1: "rgba(255, 255, 255, 0.12)",
121
+ dark2: "rgba(255, 255, 255, 0.12)", // "--grey_0 12%",
154
122
  },
155
123
  focused: {
156
124
  light1: "--lunit_teal_40",
157
125
  light2: "--lunit_teal_40",
158
126
  dark1: "--lunit_teal_40",
159
127
  dark2: "--lunit_teal_40",
160
- dark3: "--lunit_teal_40",
161
- dark4: "--lunit_teal_40",
162
128
  },
163
129
  selected: {
164
130
  light1: "--lunit_teal_10",
165
131
  light2: "--lunit_teal_10",
166
132
  dark1: "--lunit_teal_80",
167
133
  dark2: "--lunit_teal_80",
168
- dark3: "--lunit_teal_80",
169
- dark4: "--lunit_teal_80",
170
134
  },
171
135
  shadow_01: {
172
136
  light1: "rgba(0, 0, 0, 0.12)",
173
137
  light2: "rgba(0, 0, 0, 0.12)",
174
- dark4: "rgba(0, 0, 0, 0.32)",
175
- dark3: "rgba(0, 0, 0, 0.32)",
176
- dark2: "rgba(0, 0, 0, 0.32)",
177
- dark1: "rgba(0, 0, 0, 0.32)", // "--grey_100 32%",
138
+ dark1: "rgba(0, 0, 0, 0.32)",
139
+ dark2: "rgba(0, 0, 0, 0.32)", // "--grey_100 32%",
178
140
  },
179
141
  shadow_02: {
180
142
  light1: "rgba(0, 0, 0, 0.18)",
181
143
  light2: "rgba(0, 0, 0, 0.18)",
182
- dark4: "rgba(0, 0, 0, 0.4)",
183
- dark3: "rgba(0, 0, 0, 0.4)",
184
- dark2: "rgba(0, 0, 0, 0.4)",
185
- dark1: "rgba(0, 0, 0, 0.4)", // "--grey_100 40%",
144
+ dark1: "rgba(0, 0, 0, 0.4)",
145
+ dark2: "rgba(0, 0, 0, 0.4)", // "--grey_100 40%",
186
146
  },
187
147
  shadow_03: {
188
148
  light1: "rgba(0, 0, 0, 0.12)",
189
149
  light2: "rgba(0, 0, 0, 0.12)",
190
- dark4: "rgba(0, 0, 0, 0.36)",
191
- dark3: "rgba(0, 0, 0, 0.36)",
192
- dark2: "rgba(0, 0, 0, 0.36)",
193
- dark1: "rgba(0, 0, 0, 0.36)", // "--grey_100 36%",
150
+ dark1: "rgba(0, 0, 0, 0.36)",
151
+ dark2: "rgba(0, 0, 0, 0.36)", // "--grey_100 36%",
194
152
  },
195
153
  shadow_04: {
196
154
  light1: "rgba(0, 0, 0, 0.18)",
197
155
  light2: "rgba(0, 0, 0, 0.18)",
198
- dark4: "rgba(0, 0, 0, 0.48)",
199
- dark3: "rgba(0, 0, 0, 0.48)",
200
- dark2: "rgba(0, 0, 0, 0.48)",
201
- dark1: "rgba(0, 0, 0, 0.48)", // "--grey_100 48%",
156
+ dark1: "rgba(0, 0, 0, 0.48)",
157
+ dark2: "rgba(0, 0, 0, 0.48)", // "--grey_100 48%",
158
+ },
159
+ border_light: {
160
+ light1: "rgba(0, 0, 0, 0.12)",
161
+ light2: "rgba(0, 0, 0, 0.12)",
162
+ dark1: "rgba(255, 255, 255, 0.12)",
163
+ dark2: "rgba(255, 255, 255, 0.12)", // "--grey_0 12%",
164
+ },
165
+ border_medium: {
166
+ light1: "rgba(0, 0, 0, 0.24)",
167
+ light2: "rgba(0, 0, 0, 0.24)",
168
+ dark1: "rgba(255, 255, 255, 0.24)",
169
+ dark2: "rgba(255, 255, 255, 0.24)", // "--grey_0 24%",
202
170
  },
203
171
  };
204
172
  //# sourceMappingURL=core.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../../src/foundation/colors/token/core.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAwB;IACjD,KAAK,EAAE;QACL,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,WAAW;QACnB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;KACnB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;KACnB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;KACnB;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,iBAAiB;QACzB,MAAM,EAAE,iBAAiB;QACzB,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,iBAAiB;KACzB;IACD,WAAW,EAAE;QACX,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,WAAW;QACnB,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;KAClB;IACD,WAAW,EAAE;QACX,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,WAAW;QACnB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,WAAW;KACnB;IACD,UAAU,EAAE;QACV,MAA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AAS,EAAE;QACT,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,qBAAqB,EAAE,oBAAoB;KACnD;IACD,SAAS,EAAE;QACT,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,oBAAoB;QAC3B,KAAK,EAAE,oBAAoB,EAAE,oBAAoB;KAClD;IACD,SAAS,EAAE;QACT,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,qBAAqB,EAAE,oBAAoB;KACnD;IACD,SAAS,EAAE;QACT,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,qBAAqB,EAAE,oBAAoB;KACnD;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,2BAA2B;QAClC,KAAK,EAAE,2BAA2B,EAAE,kBAAkB;KACvD;IACD,aAAa,EAAE;QACb,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EAAE,qBAAqB;QAC7B,KAAK,EAAE,2BAA2B;QAClC,KAAK,EAAE,2BAA2B,EAAE,kBAAkB;KACvD;CACF,CAAC"}
@@ -3,7 +3,7 @@ import paletteOptions, { createColorCssBaseline } from "./colors";
3
3
  import typographyOptions, { createTypographyCssBaseline, typographyDefaultProps, } from "./Typography";
4
4
  import { createElevationCssBaseline, elevationOptions } from "./Elevation";
5
5
  export const foundationCssBaseline = {
6
- styleOverrides: deepmerge(deepmerge(createTypographyCssBaseline(), createColorCssBaseline()), createElevationCssBaseline()),
6
+ styleOverrides: deepmerge(deepmerge(createColorCssBaseline(), createTypographyCssBaseline()), createElevationCssBaseline()),
7
7
  };
8
8
  export const typography = typographyOptions;
9
9
  export { typographyDefaultProps };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/foundation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,cAAc,EAAE,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,iBAAiB,EAAE,EACxB,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE3E,MAAM,CAAC,MAAM,qBAAqB,GAAwC;IACxE,cAAc,EAAE,SAAS,CACvB,SAAS,CAAC,2BAA2B,EAAE,EAAE,sBAAsB,EAAE,CAAC,EAClE,0BAA0B,EAAE,CAC7B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAE5C,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAElC,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,SAAS,GAAG,gBAAgB,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/foundation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,cAAc,EAAE,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,iBAAiB,EAAE,EACxB,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE3E,MAAM,CAAC,MAAM,qBAAqB,GAAwC;IACxE,cAAc,EAAE,SAAS,CACvB,SAAS,CAAC,sBAAsB,EAAE,EAAE,2BAA2B,EAAE,CAAC,EAClE,0BAA0B,EAAE,CAC7B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAE5C,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAElC,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,SAAS,GAAG,gBAAgB,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
package/dist/index.js CHANGED
@@ -4,11 +4,11 @@ export { default as Alert } from "./components/Alert";
4
4
  export { default as Button } from "./components/Button";
5
5
  export { default as Chip } from "./components/Chip";
6
6
  export { default as Checkbox } from "./components/Checkbox";
7
+ export { default as Dialog } from "./components/Dialog";
7
8
  export { default as DataTable } from "./components/DataTable";
8
9
  export { default as DatePicker } from "./components/DatePicker";
9
10
  export { default as Dropdown } from "./components/Dropdown";
10
11
  export { default as FormLabel } from "./components/FormLabel";
11
- export { default as Modal } from "./components/Modal";
12
12
  export { default as Radio } from "./components/Radio";
13
13
  export { default as RadioGroup } from "./components/RadioGroup";
14
14
  export { default as TextField } from "./components/TextField";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,I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M,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { AlertColor, Theme } from "@mui/material";
2
- export declare const getBackgroundColor: (theme: Theme, severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;
3
- export declare const getBorderColor: (theme: Theme, severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;
4
- export declare const getIconColor: (theme: Theme, severity: AlertColor | undefined) => import("csstype").Property.Color | undefined;
2
+ export declare const getBackgroundColor: (theme: Theme, severity: AlertColor | undefined) => string;
3
+ export declare const getBorderColor: (theme: Theme, severity: AlertColor | undefined) => string;
4
+ export declare const getIconColor: (theme: Theme, severity: AlertColor | undefined) => string;
@@ -823,7 +823,7 @@ export declare const sizeStyle: ({ size, kind, hasIconOnly, typography, selected
823
823
  vectorEffect?: import("csstype").Property.VectorEffect | undefined;
824
824
  };
825
825
  export declare const kindStyle: ({ kind, color, lunit_token }: KindStyleParams) => {
826
- color?: import("csstype").Property.Color | undefined;
826
+ color?: string | undefined;
827
827
  border?: string | undefined;
828
828
  "&:hover"?: {
829
829
  position: string;
@@ -838,19 +838,19 @@ export declare const kindStyle: ({ kind, color, lunit_token }: KindStyleParams)
838
838
  width: string;
839
839
  height: string;
840
840
  zIndex: number;
841
- backgroundColor: import("csstype").Property.Color | undefined;
841
+ backgroundColor: string;
842
842
  borderRadius: string;
843
843
  } | undefined;
844
844
  "&.Mui-disabled"?: {
845
845
  opacity: number;
846
846
  border: string;
847
- color: import("csstype").Property.Color | undefined;
847
+ color: string;
848
848
  } | {
849
849
  opacity: number;
850
- color: import("csstype").Property.Color | undefined;
850
+ color: string;
851
851
  border?: undefined;
852
852
  } | undefined;
853
- backgroundColor?: import("csstype").Property.Color | undefined;
853
+ backgroundColor?: string | undefined;
854
854
  };
855
855
  export declare const commonStyle: ({ lunit_token }: {
856
856
  lunit_token: ColorToken;
@@ -877,15 +877,12 @@ export declare const commonStyle: ({ lunit_token }: {
877
877
  readonly width: "100%";
878
878
  readonly height: "100%";
879
879
  readonly zIndex: -1;
880
- readonly backgroundColor: import("csstype").Property.Color | undefined;
880
+ readonly backgroundColor: string;
881
881
  readonly borderRadius: "8px";
882
882
  };
883
883
  };
884
884
  export declare const iconStyle: ({ size, hasIconOnly, }: Pick<CustomButtonProps, "size" | "hasIconOnly">) => {
885
885
  "& .MuiButton-startIcon": {
886
- width: string;
887
- height: string;
888
- padding: string;
889
886
  margin: number;
890
887
  marginRight: string;
891
888
  "*:nth-of-type(1)": {
@@ -896,7 +893,7 @@ export declare const iconStyle: ({ size, hasIconOnly, }: Pick<CustomButtonProps,
896
893
  export declare const CustomButton: import("@emotion/styled").StyledComponent<{
897
894
  children?: import("react").ReactNode;
898
895
  classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
899
- color?: "success" | "info" | "warning" | "error" | "inherit" | "primary" | "secondary" | undefined;
896
+ color?: "inherit" | "primary" | "secondary" | "success" | "info" | "warning" | "error" | undefined;
900
897
  disabled?: boolean | undefined;
901
898
  disableElevation?: boolean | undefined;
902
899
  disableFocusRipple?: boolean | undefined;
@@ -906,7 +903,7 @@ export declare const CustomButton: import("@emotion/styled").StyledComponent<{
906
903
  size?: "small" | "medium" | "large" | undefined;
907
904
  startIcon?: import("react").ReactNode;
908
905
  sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
909
- variant?: "text" | "outlined" | "contained" | undefined;
906
+ variant?: "outlined" | "text" | "contained" | undefined;
910
907
  } & Omit<{
911
908
  action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
912
909
  centerRipple?: boolean | undefined;
@@ -925,5 +922,5 @@ export declare const CustomButton: import("@emotion/styled").StyledComponent<{
925
922
  touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
926
923
  }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
927
924
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
928
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "tabIndex" | "color" | "action" | "href" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CustomButtonProps, {}, {}>;
925
+ }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & CustomButtonProps, {}, {}>;
929
926
  export {};
@@ -5,19 +5,23 @@ import type { OverridableComponent } from "@mui/material/OverridableComponent";
5
5
  * TODO: Omit 을 사용할 경우 component prop 타입 추론이 안되는 이슈 발생
6
6
  * https://github.com/lunit-io/design-system/pull/133#discussion_r1354277785
7
7
  * */
8
- interface BaseButtonProps extends Omit<MuiButtonProps, "variant"> {
8
+ export interface BaseButtonProps extends Omit<MuiButtonProps, "variant"> {
9
9
  icon?: React.ReactNode;
10
+ variant?: "contained" | "outlined" | "text" | "ghost";
10
11
  }
11
- interface ContainedButtonProps extends BaseButtonProps {
12
+ export interface ContainedButtonProps extends BaseButtonProps {
12
13
  kind?: "contained";
14
+ variant?: "contained";
13
15
  color?: "primary" | "secondary" | "error";
14
16
  }
15
- interface GhostButtonProps extends BaseButtonProps {
17
+ export interface GhostButtonProps extends BaseButtonProps {
16
18
  kind?: "ghost";
19
+ variant?: "text" | "ghost";
17
20
  color?: "primary" | "secondary" | "error";
18
21
  }
19
- interface OutlinedButtonProps extends BaseButtonProps {
22
+ export interface OutlinedButtonProps extends BaseButtonProps {
20
23
  kind?: "outlined";
24
+ variant?: "outlined";
21
25
  color?: "primary" | "secondary";
22
26
  }
23
27
  export type ButtonProps = ContainedButtonProps | GhostButtonProps | OutlinedButtonProps;
@@ -26,4 +30,3 @@ export type ButtonTypeMap<P = {}, D extends React.ElementType = MuiButtonTypeMap
26
30
  defaultComponent: D;
27
31
  };
28
32
  export type ButtonType = OverridableComponent<ButtonTypeMap>;
29
- export {};
@@ -6,7 +6,7 @@ export declare const StyledOutlinedChip: import("@emotion/styled").StyledCompone
6
6
  children?: null | undefined;
7
7
  classes?: Partial<import("@mui/material").ChipClasses> | undefined;
8
8
  clickable?: boolean | undefined;
9
- color?: "success" | "info" | "warning" | "error" | "default" | "primary" | "secondary" | undefined;
9
+ color?: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "default" | undefined;
10
10
  deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
11
11
  disabled?: boolean | undefined;
12
12
  icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
@@ -16,16 +16,16 @@ export declare const StyledOutlinedChip: import("@emotion/styled").StyledCompone
16
16
  skipFocusWhenDisabled?: boolean | undefined;
17
17
  sx?: import("@mui/material").SxProps<Theme> | undefined;
18
18
  tabIndex?: number | undefined;
19
- variant?: "filled" | "outlined" | undefined;
19
+ variant?: "outlined" | "filled" | undefined;
20
20
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
21
21
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
22
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "color" | "icon" | "disabled" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & OutlinedChipProps, {}, {}>;
22
+ }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & OutlinedChipProps, {}, {}>;
23
23
  export declare const StyledContainedChipBase: import("@emotion/styled").StyledComponent<{
24
24
  avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
25
25
  children?: null | undefined;
26
26
  classes?: Partial<import("@mui/material").ChipClasses> | undefined;
27
27
  clickable?: boolean | undefined;
28
- color?: "success" | "info" | "warning" | "error" | "default" | "primary" | "secondary" | undefined;
28
+ color?: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "default" | undefined;
29
29
  deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
30
30
  disabled?: boolean | undefined;
31
31
  icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
@@ -35,16 +35,16 @@ export declare const StyledContainedChipBase: import("@emotion/styled").StyledCo
35
35
  skipFocusWhenDisabled?: boolean | undefined;
36
36
  sx?: import("@mui/material").SxProps<Theme> | undefined;
37
37
  tabIndex?: number | undefined;
38
- variant?: "filled" | "outlined" | undefined;
38
+ variant?: "outlined" | "filled" | undefined;
39
39
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
40
40
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
41
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "color" | "icon" | "disabled" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
41
+ }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
42
42
  export declare const StyledContainedChipEnable: import("@emotion/styled").StyledComponent<{
43
43
  avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
44
44
  children?: null | undefined;
45
45
  classes?: Partial<import("@mui/material").ChipClasses> | undefined;
46
46
  clickable?: boolean | undefined;
47
- color?: "success" | "info" | "warning" | "error" | "default" | "primary" | "secondary" | undefined;
47
+ color?: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "default" | undefined;
48
48
  deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
49
49
  disabled?: boolean | undefined;
50
50
  icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
@@ -54,16 +54,16 @@ export declare const StyledContainedChipEnable: import("@emotion/styled").Styled
54
54
  skipFocusWhenDisabled?: boolean | undefined;
55
55
  sx?: import("@mui/material").SxProps<Theme> | undefined;
56
56
  tabIndex?: number | undefined;
57
- variant?: "filled" | "outlined" | undefined;
57
+ variant?: "outlined" | "filled" | undefined;
58
58
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
59
59
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
60
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "color" | "icon" | "disabled" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps & EnableContainedChipProps, {}, {}>;
60
+ }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps & EnableContainedChipProps, {}, {}>;
61
61
  export declare const StyledContainedChipDeletable: import("@emotion/styled").StyledComponent<{
62
62
  avatar?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
63
63
  children?: null | undefined;
64
64
  classes?: Partial<import("@mui/material").ChipClasses> | undefined;
65
65
  clickable?: boolean | undefined;
66
- color?: "success" | "info" | "warning" | "error" | "default" | "primary" | "secondary" | undefined;
66
+ color?: "primary" | "secondary" | "success" | "info" | "warning" | "error" | "default" | undefined;
67
67
  deleteIcon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
68
68
  disabled?: boolean | undefined;
69
69
  icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
@@ -73,7 +73,7 @@ export declare const StyledContainedChipDeletable: import("@emotion/styled").Sty
73
73
  skipFocusWhenDisabled?: boolean | undefined;
74
74
  sx?: import("@mui/material").SxProps<Theme> | undefined;
75
75
  tabIndex?: number | undefined;
76
- variant?: "filled" | "outlined" | undefined;
76
+ variant?: "outlined" | "filled" | undefined;
77
77
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
78
78
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
79
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "color" | "icon" | "disabled" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
79
+ }, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "label" | "tabIndex" | "disabled" | "icon" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<Theme> & BaseContainedChipProps, {}, {}>;
@@ -2,6 +2,8 @@
2
2
  import { CHIP_COLORS } from "./consts";
3
3
  import type { ChipProps as MuiChipProps, ChipTypeMap as MuiChipTypeMap } from "@mui/material";
4
4
  import type { OverridableComponent } from "@mui/material/OverridableComponent";
5
+ type DesignSystemChipKind = "outlined" | "contained";
6
+ type DesignSystemAndMuiContainedChipKind = "filled" | "contained";
5
7
  type ColorKeys = keyof typeof CHIP_COLORS;
6
8
  export type ChipColor = (typeof CHIP_COLORS)[ColorKeys];
7
9
  export type ChipThumbnail = string | JSX.Element;
@@ -9,16 +11,19 @@ export type ChipThumbnail = string | JSX.Element;
9
11
  * Mui Chip's variant is 'kind' in our design system
10
12
  */
11
13
  export interface BaseChipProps extends Pick<MuiChipProps, "label" | "sx" | "style" | "classes" | "onDelete"> {
12
- kind?: "outlined" | "contained";
14
+ kind?: DesignSystemChipKind;
15
+ variant?: "outlined" | DesignSystemAndMuiContainedChipKind;
13
16
  color?: ChipColor;
14
17
  }
15
18
  export interface OutlinedChipProps extends BaseChipProps {
16
19
  kind?: "outlined";
20
+ variant?: "outlined";
17
21
  onClick?: never;
18
22
  onDelete?: never;
19
23
  }
20
- export interface BaseContainedChipProps extends BaseChipProps, Omit<MuiChipProps, "color" | "size" | "variant" | "avatar" | "deleteIcon" | "icon"> {
24
+ export interface BaseContainedChipProps extends BaseChipProps, Omit<MuiChipProps, "color" | "size" | "avatar" | "deleteIcon" | "icon" | "variant"> {
21
25
  kind?: "contained";
26
+ variant?: DesignSystemAndMuiContainedChipKind;
22
27
  thumbnail?: ChipThumbnail;
23
28
  onClick?: () => void;
24
29
  }
@@ -0,0 +1,50 @@
1
+ import React from "react";
2
+ import type { SxProps } from "@mui/material/styles";
3
+ import type { TypographyProps } from "@mui/material";
4
+ export interface DialogBase {
5
+ isOpen: boolean;
6
+ onClose(): void;
7
+ type?: "passive" | "action";
8
+ nonModal?: boolean;
9
+ title: string;
10
+ titleIcon?: React.ReactNode;
11
+ titleVariant?: TypographyProps["variant"];
12
+ children: React.ReactNode;
13
+ actions?: React.ReactNode;
14
+ enableBackButtonClose?: boolean;
15
+ enableBackdropClose?: boolean;
16
+ size?: "small" | "medium";
17
+ sx?: SxProps;
18
+ style?: React.CSSProperties;
19
+ className?: string;
20
+ }
21
+ export interface PassiveDialogType extends DialogBase {
22
+ type: "passive";
23
+ actions?: undefined;
24
+ enableBackButtonClose?: true;
25
+ enableBackdropClose?: true;
26
+ }
27
+ export interface ActionDialogType extends DialogBase {
28
+ type: "action";
29
+ actions: React.ReactNode;
30
+ enableBackButtonClose?: boolean;
31
+ enableBackdropClose?: boolean;
32
+ }
33
+ export interface PassiveModalProps extends PassiveDialogType {
34
+ nonModal?: false;
35
+ }
36
+ export interface ActionModalProps extends ActionDialogType {
37
+ nonModal?: false;
38
+ }
39
+ export type ModalProps = PassiveModalProps | ActionModalProps;
40
+ export interface PassiveNonModalProps extends PassiveDialogType {
41
+ nonModal?: true;
42
+ }
43
+ export interface ActionNonModalProps extends ActionDialogType {
44
+ nonModal?: true;
45
+ enableBackdropClose?: false;
46
+ }
47
+ export type NonModalProps = PassiveNonModalProps | ActionNonModalProps;
48
+ export type DialogProps = ModalProps | NonModalProps;
49
+ declare function Dialog(props: DialogProps): React.ReactPortal | null;
50
+ export default Dialog;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { DialogBase } from "./Dialog";
3
+ import type { CSSObject } from "@mui/material/styles";
4
+ export interface DialogElementStyle {
5
+ [key: string]: CSSObject;
6
+ }
7
+ export type DialogStyle = Pick<DialogBase, "size" | "type" | "nonModal">;
8
+ export declare const StyledBackdrop: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const StyledDialog: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & DialogStyle, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export declare const StyledDialogTitle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
11
+ export declare const StyledDialogTitleIconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const StyledDialogContent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface DialogActionProps {
3
+ children: React.ReactNode;
4
+ justifyContent?: React.CSSProperties["justifyContent"];
5
+ sx?: React.CSSProperties;
6
+ }
7
+ export declare function DialogAction(props: DialogActionProps): import("react/jsx-runtime").JSX.Element;
8
+ export default DialogAction;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Dialog";
2
+ export type { DialogBase, PassiveDialogType, ActionDialogType, PassiveModalProps, ActionModalProps, PassiveNonModalProps, ActionNonModalProps, ModalProps, NonModalProps, DialogProps, } from "./Dialog";