@lunit/design-system 2.0.1 → 2.1.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 (138) hide show
  1. package/README.md +107 -7
  2. package/dist/cjs/components/Checkbox/index.js +1 -1
  3. package/dist/cjs/components/Checkbox/index.js.map +1 -1
  4. package/dist/cjs/components/Chip/index.js +1 -1
  5. package/dist/cjs/components/Chip/index.js.map +1 -1
  6. package/dist/cjs/components/Dialog/index.js +1 -1
  7. package/dist/cjs/components/Dialog/index.js.map +1 -1
  8. package/dist/cjs/components/Dropdown/index.js +1 -1
  9. package/dist/cjs/components/Dropdown/index.js.map +1 -1
  10. package/dist/cjs/components/Radio/index.js +1 -1
  11. package/dist/cjs/components/Radio/index.js.map +1 -1
  12. package/dist/cjs/components/TextField/index.js +1 -1
  13. package/dist/cjs/components/TextField/index.js.map +1 -1
  14. package/dist/cjs/index.js +1 -1
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/components/Checkbox/Checkbox.js +2 -2
  17. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  18. package/dist/components/Chip/Chip.styled.js +9 -16
  19. package/dist/components/Chip/Chip.styled.js.map +1 -1
  20. package/dist/components/Dialog/Dialog.js +0 -6
  21. package/dist/components/Dialog/Dialog.js.map +1 -1
  22. package/dist/components/Dropdown/Dropdown.js +37 -4
  23. package/dist/components/Dropdown/Dropdown.js.map +1 -1
  24. package/dist/components/Dropdown/Dropdown.styled.js +161 -0
  25. package/dist/components/Dropdown/Dropdown.styled.js.map +1 -0
  26. package/dist/components/Dropdown/Dropdown.types.js +2 -0
  27. package/dist/components/Dropdown/Dropdown.types.js.map +1 -0
  28. package/dist/components/Dropdown/DropdownItem.js +36 -0
  29. package/dist/components/Dropdown/DropdownItem.js.map +1 -0
  30. package/dist/components/Dropdown/index.js +1 -0
  31. package/dist/components/Dropdown/index.js.map +1 -1
  32. package/dist/components/Radio/Radio.js +2 -2
  33. package/dist/components/Radio/Radio.js.map +1 -1
  34. package/dist/components/TextField/TextField.js +1 -1
  35. package/dist/components/TextField/TextField.js.map +1 -1
  36. package/dist/components/TextField/TextField.style.js +27 -3
  37. package/dist/components/TextField/TextField.style.js.map +1 -1
  38. package/dist/foundation/Typography/index.js +5 -0
  39. package/dist/foundation/Typography/index.js.map +1 -1
  40. package/dist/foundation/Typography/tokens.js +44 -0
  41. package/dist/foundation/Typography/tokens.js.map +1 -1
  42. package/dist/foundation/colors/base/blue.js +12 -10
  43. package/dist/foundation/colors/base/blue.js.map +1 -1
  44. package/dist/foundation/colors/base/green.js +11 -9
  45. package/dist/foundation/colors/base/green.js.map +1 -1
  46. package/dist/foundation/colors/base/grey.js +30 -15
  47. package/dist/foundation/colors/base/grey.js.map +1 -1
  48. package/dist/foundation/colors/base/lunitTeal.js +2 -0
  49. package/dist/foundation/colors/base/lunitTeal.js.map +1 -1
  50. package/dist/foundation/colors/base/magenta.js +3 -1
  51. package/dist/foundation/colors/base/magenta.js.map +1 -1
  52. package/dist/foundation/colors/base/orange.js +11 -9
  53. package/dist/foundation/colors/base/orange.js.map +1 -1
  54. package/dist/foundation/colors/base/purple.js +3 -1
  55. package/dist/foundation/colors/base/purple.js.map +1 -1
  56. package/dist/foundation/colors/base/red.js +5 -3
  57. package/dist/foundation/colors/base/red.js.map +1 -1
  58. package/dist/foundation/colors/base/yellow.js +12 -10
  59. package/dist/foundation/colors/base/yellow.js.map +1 -1
  60. package/dist/foundation/colors/index.js +3 -0
  61. package/dist/foundation/colors/index.js.map +1 -1
  62. package/dist/foundation/colors/token/component.js +26 -22
  63. package/dist/foundation/colors/token/component.js.map +1 -1
  64. package/dist/foundation/colors/token/core.js +21 -0
  65. package/dist/foundation/colors/token/core.js.map +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/index.js.map +1 -1
  68. package/dist/types/components/Button/Button.styled.d.ts +3 -3
  69. package/dist/types/components/Chip/Chip.styled.d.ts +8 -8
  70. package/dist/types/components/Dialog/Dialog.d.ts +0 -3
  71. package/dist/types/components/Dropdown/Dropdown.d.ts +3 -1
  72. package/dist/types/components/Dropdown/Dropdown.styled.d.ts +41 -0
  73. package/dist/types/components/Dropdown/Dropdown.types.d.ts +11 -0
  74. package/dist/types/components/Dropdown/DropdownItem.d.ts +13 -0
  75. package/dist/types/components/Dropdown/index.d.ts +2 -0
  76. package/dist/types/components/ToggleButton/ToggleButton.styled.d.ts +2 -2
  77. package/dist/types/foundation/Typography/index.d.ts +21 -1
  78. package/dist/types/foundation/Typography/tokens.d.ts +15 -0
  79. package/dist/types/foundation/colors/base/blue.d.ts +2 -0
  80. package/dist/types/foundation/colors/base/green.d.ts +2 -0
  81. package/dist/types/foundation/colors/base/grey.d.ts +15 -0
  82. package/dist/types/foundation/colors/base/lunitTeal.d.ts +2 -0
  83. package/dist/types/foundation/colors/base/magenta.d.ts +2 -0
  84. package/dist/types/foundation/colors/base/orange.d.ts +2 -0
  85. package/dist/types/foundation/colors/base/purple.d.ts +2 -0
  86. package/dist/types/foundation/colors/base/red.d.ts +2 -0
  87. package/dist/types/foundation/colors/base/yellow.d.ts +2 -0
  88. package/dist/types/foundation/colors/index.d.ts +3 -0
  89. package/dist/types/foundation/colors/types.d.ts +3 -0
  90. package/dist/types/foundation/index.d.ts +3 -0
  91. package/dist/types/index.d.ts +1 -1
  92. package/package.json +2 -2
  93. package/src/components/Checkbox/Checkbox.tsx +4 -4
  94. package/src/components/Chip/Chip.styled.ts +9 -16
  95. package/src/components/Dialog/Dialog.tsx +0 -8
  96. package/src/components/Dropdown/Dropdown.styled.tsx +170 -0
  97. package/src/components/Dropdown/Dropdown.tsx +59 -8
  98. package/src/components/Dropdown/Dropdown.types.ts +15 -0
  99. package/src/components/Dropdown/DropdownItem.tsx +107 -0
  100. package/src/components/Dropdown/index.ts +6 -0
  101. package/src/components/Radio/Radio.tsx +4 -4
  102. package/src/components/TextField/TextField.style.ts +28 -3
  103. package/src/components/TextField/TextField.tsx +1 -7
  104. package/src/foundation/Typography/index.ts +10 -0
  105. package/src/foundation/Typography/tokens.ts +45 -0
  106. package/src/foundation/colors/base/blue.ts +12 -10
  107. package/src/foundation/colors/base/green.ts +11 -9
  108. package/src/foundation/colors/base/grey.ts +30 -15
  109. package/src/foundation/colors/base/lunitTeal.ts +2 -0
  110. package/src/foundation/colors/base/magenta.ts +3 -1
  111. package/src/foundation/colors/base/orange.ts +11 -9
  112. package/src/foundation/colors/base/purple.ts +3 -1
  113. package/src/foundation/colors/base/red.ts +5 -3
  114. package/src/foundation/colors/base/yellow.ts +12 -10
  115. package/src/foundation/colors/index.ts +3 -0
  116. package/src/foundation/colors/token/component.ts +26 -22
  117. package/src/foundation/colors/token/core.ts +21 -0
  118. package/src/foundation/colors/types.ts +3 -0
  119. package/src/index.ts +6 -1
  120. package/src/stories/components/Chip/Chip.stories.tsx +18 -0
  121. package/src/stories/components/Chip/ChipDocs.mdx +20 -0
  122. package/src/stories/components/Dialog/DialogDocs.mdx +2 -10
  123. package/src/stories/components/Dropdown/Dropdown.stories.tsx +299 -10
  124. package/src/stories/components/Dropdown/DropdownExamples.stories.tsx +221 -0
  125. package/src/stories/components/Dropdown/DropdownItem.stories.tsx +360 -0
  126. package/src/stories/components/TextField/BasicTextField.stories.tsx +28 -0
  127. package/src/stories/components/TextField/TextFieldDocs.mdx +12 -0
  128. package/src/stories/foundation/Typography/Typography.stories.tsx +13 -0
  129. package/src/stories/foundation/Typography/const.ts +6 -1
  130. package/src/stories/foundation/colors/TokenPaletteTable.tsx +19 -1
  131. package/dist/cjs/components/Modal/index.js +0 -2
  132. package/dist/cjs/components/Modal/index.js.map +0 -1
  133. package/dist/components/Modal/Modal.js +0 -7
  134. package/dist/components/Modal/Modal.js.map +0 -1
  135. package/dist/components/Modal/index.js +0 -2
  136. package/dist/components/Modal/index.js.map +0 -1
  137. package/dist/types/components/Modal/Modal.d.ts +0 -2
  138. package/dist/types/components/Modal/index.d.ts +0 -1
@@ -1,21 +1,23 @@
1
1
  import { grey } from "./grey";
2
2
 
3
3
  export const blue = {
4
- 5: "#DAECFF",
5
- 10: "#D0E2FF",
6
- 20: "#9DCEFF",
7
- 30: "#78A9FF",
8
- 40: "#4589FF",
9
- 50: "#0F62FE",
10
- 60: "#0043CE",
11
- 70: "#0055AB",
12
- 80: "#001D6C",
13
- 90: "#002041",
4
+ 5: "#EDF6FE",
5
+ 10: "#D9E9FD",
6
+ 15: "#BFD9FC",
7
+ 20: "#A5C8FC",
8
+ 30: "#71A9FA",
9
+ 40: "#3D88FA",
10
+ 50: "#0D68F2",
11
+ 60: "#0E51BA",
12
+ 70: "#0C3F8F",
13
+ 80: "#032765",
14
+ 90: "#03183F",
14
15
  };
15
16
 
16
17
  export const blueText = {
17
18
  5: grey[95],
18
19
  10: grey[95],
20
+ 15: grey[95],
19
21
  20: grey[95],
20
22
  30: grey[95],
21
23
  40: grey[95],
@@ -1,21 +1,23 @@
1
1
  import { grey } from "./grey";
2
2
 
3
3
  export const green = {
4
- 5: "#EBFFF0",
5
- 10: "#B4EFC4",
4
+ 5: "#E6FDEB",
5
+ 10: "#C4F5D1",
6
+ 15: "#A0E5B3",
6
7
  20: "#6FDC8C",
7
- 30: "#42BE65",
8
- 40: "#24A148",
9
- 50: "#198038",
10
- 60: "#0E6027",
11
- 70: "#044317",
12
- 80: "#022D0D",
13
- 90: "#071908",
8
+ 30: "#44BE67",
9
+ 40: "#1A9F3F",
10
+ 50: "#138231",
11
+ 60: "#0D6222",
12
+ 70: "#0B4F1A",
13
+ 80: "#01380F",
14
+ 90: "#082209",
14
15
  };
15
16
 
16
17
  export const greenText = {
17
18
  5: grey[95],
18
19
  10: grey[95],
20
+ 15: grey[95],
19
21
  20: grey[95],
20
22
  30: grey[95],
21
23
  40: grey[95],
@@ -1,20 +1,27 @@
1
1
  export const grey = {
2
2
  0: "#FFFFFF",
3
- 5: "#FAFAFB",
4
- 10: "#F1F1F4",
5
- 15: "#DFDFE2",
6
- 20: "#CFCFD1",
7
- 25: "#C0C0C2",
8
- 30: "#AFAFB1",
9
- 40: "#99999B",
10
- 50: "#747477",
11
- 60: "#626264",
12
- 70: "#4E4E50",
13
- 75: "#404042",
14
- 80: "#333336",
15
- 85: "#2D2D2F",
16
- 90: "#1F1F21",
17
- 95: "#111113",
3
+ 5: "#F5F5F6",
4
+ 10: "#EAEAEC",
5
+ 15: "#DFDFE1",
6
+ 20: "#D5D5D7",
7
+ 25: "#C8C8CA",
8
+ 30: "#BCBCBE",
9
+ 35: "#B1B1B4",
10
+ 40: "#A4A4A8",
11
+ 45: "#9A9A9D",
12
+ 50: "#8D8D90",
13
+ 55: "#808084",
14
+ 60: "#747479",
15
+ 65: "#68686C",
16
+ 70: "#59595D",
17
+ 75: "#4A4A4E",
18
+ 80: "#3B3B3F",
19
+ 82: "#343438",
20
+ 85: "#2E2E32",
21
+ 88: "#27272B",
22
+ 90: "#1F1F23",
23
+ 93: "#16161A",
24
+ 95: "#0F0F12",
18
25
  100: "#000000",
19
26
  };
20
27
 
@@ -26,13 +33,21 @@ export const greyText = {
26
33
  20: grey[95],
27
34
  25: grey[95],
28
35
  30: grey[95],
36
+ 35: grey[95],
29
37
  40: grey[95],
38
+ 45: grey[95],
30
39
  50: grey[5],
40
+ 55: grey[5],
31
41
  60: grey[5],
42
+ 65: grey[5],
32
43
  70: grey[5],
44
+ 75: grey[5],
33
45
  80: grey[5],
46
+ 82: grey[5],
34
47
  85: grey[5],
48
+ 88: grey[5],
35
49
  90: grey[5],
50
+ 93: grey[5],
36
51
  95: grey[5],
37
52
  100: grey[5],
38
53
  };
@@ -3,6 +3,7 @@ import { grey } from "./grey";
3
3
  export const lunit_teal = {
4
4
  5: "#EAFAFF",
5
5
  10: "#D1F7FF",
6
+ 15: "#BDF4FF",
6
7
  20: "#96EDFF",
7
8
  30: "#30DFFC",
8
9
  40: "#00C9EA",
@@ -16,6 +17,7 @@ export const lunit_teal = {
16
17
  export const lunit_tealText = {
17
18
  5: lunit_teal[90],
18
19
  10: lunit_teal[90],
20
+ 15: lunit_teal[90],
19
21
  20: grey[95],
20
22
  30: grey[95],
21
23
  40: grey[95],
@@ -2,7 +2,8 @@ import { grey } from "./grey";
2
2
 
3
3
  export const magenta = {
4
4
  5: "#FFF0F7",
5
- 10: "#FFD6E8",
5
+ 10: "#FFE3F0",
6
+ 15: "#FDCDE3",
6
7
  20: "#FAB2D3",
7
8
  30: "#F681B7",
8
9
  40: "#FF50A0",
@@ -16,6 +17,7 @@ export const magenta = {
16
17
  export const magentaText = {
17
18
  5: grey[95],
18
19
  10: grey[95],
20
+ 15: grey[95],
19
21
  20: grey[95],
20
22
  30: grey[95],
21
23
  40: grey[95],
@@ -2,20 +2,22 @@ import { grey } from "./grey";
2
2
 
3
3
  export const orange = {
4
4
  5: "#FFF2E8",
5
- 10: "#FFD9BE",
6
- 20: "#FFB784",
7
- 30: "#FF9B54",
8
- 40: "#F58636",
9
- 50: "#D36210",
10
- 60: "#AB4800",
11
- 70: "#6F3209",
12
- 80: "#3E1A00",
13
- 90: "#231000",
5
+ 10: "#FFE4CD",
6
+ 15: "#FFCEA6",
7
+ 20: "#FFB375",
8
+ 30: "#FF9945",
9
+ 40: "#FF811A",
10
+ 50: "#D35F00",
11
+ 60: "#AB4D00",
12
+ 70: "#733400",
13
+ 80: "#472000",
14
+ 90: "#2B1400",
14
15
  };
15
16
 
16
17
  export const orangeText = {
17
18
  5: grey[95],
18
19
  10: grey[95],
20
+ 15: grey[95],
19
21
  20: grey[95],
20
22
  30: grey[95],
21
23
  40: grey[95],
@@ -2,7 +2,8 @@ import { grey } from "./grey";
2
2
 
3
3
  export const purple = {
4
4
  5: "#F6F2FF",
5
- 10: "#E6D7FF",
5
+ 10: "#ECE1FF",
6
+ 15: "#E1CEFF",
6
7
  20: "#D4BBFF",
7
8
  30: "#BE95FF",
8
9
  40: "#9E6BF0",
@@ -16,6 +17,7 @@ export const purple = {
16
17
  export const purpleText = {
17
18
  5: grey[95],
18
19
  10: grey[95],
20
+ 15: grey[95],
19
21
  20: grey[95],
20
22
  30: grey[95],
21
23
  40: grey[95],
@@ -2,20 +2,22 @@ import { grey } from "./grey";
2
2
 
3
3
  export const red = {
4
4
  5: "#FFF1F1",
5
- 10: "#FFD7D9",
6
- 20: "#FFB3B8",
5
+ 10: "#FFE3E4",
6
+ 15: "#FFC9CC",
7
+ 20: "#FFA1A7",
7
8
  30: "#FF7077",
8
9
  40: "#FA464F",
9
10
  50: "#DA1E28",
10
11
  60: "#A2191F",
11
12
  70: "#750E13",
12
13
  80: "#520408",
13
- 90: "#3E0600",
14
+ 90: "#2E0905",
14
15
  };
15
16
 
16
17
  export const redText = {
17
18
  5: grey[95],
18
19
  10: grey[95],
20
+ 15: grey[95],
19
21
  20: grey[95],
20
22
  30: grey[95],
21
23
  40: grey[95],
@@ -1,21 +1,23 @@
1
1
  import { grey } from "./grey";
2
2
 
3
3
  export const yellow = {
4
- 5: "#FCF4D6",
5
- 10: "#FFF9C7",
6
- 20: "#FFF296",
7
- 30: "#FFEA5D",
8
- 40: "#FFDE03",
9
- 50: "#E1B000",
10
- 60: "#A67B0E",
11
- 70: "#6E5002",
12
- 80: "#584106",
13
- 90: "#3B2B00",
4
+ 5: "#FFFEE9",
5
+ 10: "#FFFDC6",
6
+ 15: "#FFFC9C",
7
+ 20: "#FFF870",
8
+ 30: "#FEF71C",
9
+ 40: "#FFE81B",
10
+ 50: "#EACC37",
11
+ 60: "#BBA11F",
12
+ 70: "#736A03",
13
+ 80: "#4C4800",
14
+ 90: "#3C3900",
14
15
  };
15
16
 
16
17
  export const yellowText = {
17
18
  5: grey[95],
18
19
  10: grey[95],
20
+ 15: grey[95],
19
21
  20: grey[95],
20
22
  30: grey[95],
21
23
  40: grey[95],
@@ -193,8 +193,11 @@ const paletteOptions = {
193
193
  icon_warning_02: "var(--icon_warning_02)",
194
194
  icon_info_02: "var(--icon_info_02)",
195
195
  hover: "var(--hover)",
196
+ status_hover: "var(--status_hover)",
196
197
  focused: "var(--focused)",
198
+ status_focused: "var(--status_focused)",
197
199
  selected: "var(--selected)",
200
+ status_selected: "var(--status_selected)",
198
201
  shadow_01: "var(--shadow_01)",
199
202
  shadow_02: "var(--shadow_02)",
200
203
  shadow_03: "var(--shadow_03)",
@@ -33,10 +33,11 @@ export const tokenComponentColor: TokenComponentColorValue = {
33
33
  dark2: "--lunit_teal_40",
34
34
  },
35
35
  btn_secondary_border: {
36
+ // Deprecated. Please use core.border_medium instead.
36
37
  light1: "--grey_15",
37
38
  light2: "--grey_15",
38
- dark1: "--grey_5",
39
- dark2: "--grey_5",
39
+ dark1: "--grey_60",
40
+ dark2: "--grey_60",
40
41
  },
41
42
  btn_primary_text_1: {
42
43
  light1: "--lunit_teal_50",
@@ -75,6 +76,7 @@ export const tokenComponentColor: TokenComponentColorValue = {
75
76
  dark2: "--lunit_teal_80",
76
77
  },
77
78
  btn_selected_secondary_bg: {
79
+ // Deprecated. Please use btn_secondary_bg instead.
78
80
  light1: "--lunit_teal_10",
79
81
  light2: "--lunit_teal_10",
80
82
  dark1: "--grey_80",
@@ -149,12 +151,14 @@ export const tokenComponentColor: TokenComponentColorValue = {
149
151
  },
150
152
  dataTable: {
151
153
  datatable_border_01: {
154
+ // Deprecated. Please use core.border_medium instead.
152
155
  light1: "--grey_20",
153
156
  light2: "--grey_30",
154
157
  dark1: "--grey_50",
155
158
  dark2: "--grey_40",
156
159
  },
157
160
  datatable_border_02: {
161
+ // Deprecated. Please use core.border_light instead.
158
162
  light1: "--grey_10",
159
163
  light2: "--grey_15",
160
164
  dark1: "--grey_80",
@@ -189,10 +193,10 @@ export const tokenComponentColor: TokenComponentColorValue = {
189
193
  },
190
194
  modal: {
191
195
  modal_overlay: {
192
- light1: "rgba(17, 17, 19, 0.7)", // "--grey_95 70%",
193
- light2: "rgba(17, 17, 19, 0.7)", // "--grey_95 70%",
194
- dark1: "rgba(17, 17, 19, 0.7)", // "--grey_95 70%",
195
- dark2: "rgba(17, 17, 19, 0.7)", // "--grey_95 70%",
196
+ light1: "rgba(15, 15, 18, 0.7)", // "--grey_95 70%", = #0F0F12 70%
197
+ light2: "rgba(15, 15, 18, 0.7)", // "--grey_95 70%",
198
+ dark1: "rgba(15, 15, 18, 0.7)", // "--grey_95 70%",
199
+ dark2: "rgba(15, 15, 18, 0.7)", // "--grey_95 70%",
196
200
  },
197
201
  },
198
202
  tooltip: {
@@ -217,10 +221,10 @@ export const tokenComponentColor: TokenComponentColorValue = {
217
221
  },
218
222
  alert: {
219
223
  alert_error_bg: {
220
- light1: "rgba(250, 77, 86, 0.16)", // "--red_40 16%",
221
- light2: "rgba(250, 77, 86, 0.16)", // "--red_40 16%",
222
- dark1: "rgba(255, 131, 137, 0.32)", // "--red_30 32%",
223
- dark2: "rgba(255, 131, 137, 0.32)", // "--red_30 32%",
224
+ light1: "rgba(250, 70, 79, 0.16)", // "--red_40 16%",
225
+ light2: "rgba(250, 70, 79, 0.16)", // "--red_40 16%",
226
+ dark1: "rgba(255, 112, 119, 0.32)", // "--red_30 32%",
227
+ dark2: "rgba(255, 112, 119, 0.32)", // "--red_30 32%",
224
228
  },
225
229
  alert_error_border: {
226
230
  light1: "--red_40",
@@ -229,10 +233,10 @@ export const tokenComponentColor: TokenComponentColorValue = {
229
233
  dark2: "--red_30",
230
234
  },
231
235
  alert_success_bg: {
232
- light1: "rgba(36, 161, 72, 0.16)", // "--green_40 16%",
233
- light2: "rgba(36, 161, 72, 0.16)", // "--green_40 16%",
234
- dark1: "rgba(66, 190, 101, 0.32)", // "--green_30 32%",
235
- dark2: "rgba(66, 190, 101, 0.32)", // "--green_30 32%",
236
+ light1: "rgba(26, 159, 63, 0.16)", // "--green_40 16%",
237
+ light2: "rgba(26, 159, 63, 0.16)", // "--green_40 16%",
238
+ dark1: "rgba(68, 190, 103, 0.32)", // "--green_30 32%",
239
+ dark2: "rgba(68, 190, 103, 0.32)", // "--green_30 32%",
236
240
  },
237
241
  alert_success_border: {
238
242
  light1: "--green_30",
@@ -241,10 +245,10 @@ export const tokenComponentColor: TokenComponentColorValue = {
241
245
  dark2: "--green_30",
242
246
  },
243
247
  alert_info_bg: {
244
- light1: "rgba(69, 137, 255, 0.16)", // "--blue_40 16%",
245
- light2: "rgba(69, 137, 255, 0.16)", // "--blue_40 16%",
246
- dark1: "rgba(120, 169, 255, 0.32)", // "--blue_30 32%",
247
- dark2: "rgba(120, 169, 255, 0.32)", // "--blue_30 32%",
248
+ light1: "rgba(61, 136, 250, 0.16)", // "--blue_40 16%",
249
+ light2: "rgba(61, 136, 250, 0.16)", // "--blue_40 16%",
250
+ dark1: "rgba(113, 169, 250, 0.32)", // "--blue_30 32%",
251
+ dark2: "rgba(113, 169, 250, 0.32)", // "--blue_30 32%",
248
252
  },
249
253
  alert_info_border: {
250
254
  light1: "--blue_40",
@@ -253,10 +257,10 @@ export const tokenComponentColor: TokenComponentColorValue = {
253
257
  dark2: "--blue_30",
254
258
  },
255
259
  alert_warning_bg: {
256
- light1: "rgba(245, 134, 54, 0.16)", // "--orange_40 16%",
257
- light2: "rgba(245, 134, 54, 0.16)", // "--orange_40 16%",
258
- dark1: "rgba(255, 155, 84, 0.32)", // "--orange_30 32%",
259
- dark2: "rgba(255, 155, 84, 0.32)", // "--orange_30 32%",
260
+ light1: "rgba(255, 129, 26, 0.16)", // "--orange_40 16%",
261
+ light2: "rgba(255, 129, 26, 0.16)", // "--orange_40 16%",
262
+ dark1: "rgba(255, 153, 69, 0.32)", // "--orange_30 32%",
263
+ dark2: "rgba(255, 153, 69, 0.32)", // "--orange_30 32%",
260
264
  },
261
265
  alert_warning_border: {
262
266
  light1: "--orange_40",
@@ -120,6 +120,13 @@ export const tokenCoreColor: TokenCoreColorValue = {
120
120
  dark2: "--blue_30",
121
121
  },
122
122
  hover: {
123
+ // Deprecated. Please use core.status_hover instead.
124
+ light1: "rgba(0, 0, 0, 0.12)", // "--grey_100 12%",
125
+ light2: "rgba(0, 0, 0, 0.12)", // "--grey_100 12%",
126
+ dark1: "rgba(255, 255, 255, 0.12)", // "--grey_0 12%",
127
+ dark2: "rgba(255, 255, 255, 0.12)", // "--grey_0 12%",
128
+ },
129
+ status_hover: {
123
130
  // TODO: 알파값 적용 코드는 일단 하드코딩. 나중에 수정할것
124
131
  light1: "rgba(0, 0, 0, 0.12)", // "--grey_100 12%",
125
132
  light2: "rgba(0, 0, 0, 0.12)", // "--grey_100 12%",
@@ -127,12 +134,26 @@ export const tokenCoreColor: TokenCoreColorValue = {
127
134
  dark2: "rgba(255, 255, 255, 0.12)", // "--grey_0 12%",
128
135
  },
129
136
  focused: {
137
+ // Deprecated. Please use core.status_focused instead.
138
+ light1: "--lunit_teal_40",
139
+ light2: "--lunit_teal_40",
140
+ dark1: "--lunit_teal_40",
141
+ dark2: "--lunit_teal_40",
142
+ },
143
+ status_focused: {
130
144
  light1: "--lunit_teal_40",
131
145
  light2: "--lunit_teal_40",
132
146
  dark1: "--lunit_teal_40",
133
147
  dark2: "--lunit_teal_40",
134
148
  },
135
149
  selected: {
150
+ // Deprecated. Please use core.status_selected instead.
151
+ light1: "--lunit_teal_10",
152
+ light2: "--lunit_teal_10",
153
+ dark1: "--lunit_teal_80",
154
+ dark2: "--lunit_teal_80",
155
+ },
156
+ status_selected: {
136
157
  light1: "--lunit_teal_10",
137
158
  light2: "--lunit_teal_10",
138
159
  dark1: "--lunit_teal_80",
@@ -20,8 +20,11 @@ export interface ColorToken {
20
20
  icon_warning_02: string;
21
21
  icon_info_02: string;
22
22
  hover: string;
23
+ status_hover: string;
23
24
  focused: string;
25
+ status_focused: string;
24
26
  selected: string;
27
+ status_selected: string;
25
28
  shadow_01: string;
26
29
  shadow_02: string;
27
30
  shadow_03: string;
package/src/index.ts CHANGED
@@ -8,7 +8,12 @@ export { default as Checkbox } from "./components/Checkbox";
8
8
  export { default as Dialog } from "./components/Dialog";
9
9
  export { default as DataTable } from "./components/DataTable";
10
10
  export { default as DatePicker } from "./components/DatePicker";
11
- export { default as Dropdown } from "./components/Dropdown";
11
+ export {
12
+ default as Dropdown,
13
+ DropdownItem,
14
+ DropdownDivider,
15
+ DropdownSubtitle,
16
+ } from "./components/Dropdown";
12
17
  export { default as FormLabel } from "./components/FormLabel";
13
18
  export { default as Radio } from "./components/Radio";
14
19
  export { default as RadioGroup } from "./components/RadioGroup";
@@ -281,3 +281,21 @@ export const ContainedWithDeleteAndThumbnail = {
281
281
 
282
282
  name: "Kind(Variant): Contained with Thumbnail and Deletable",
283
283
  };
284
+
285
+ export const Multiline = {
286
+ render: () => (
287
+ <Box sx={{ width: 100 }}>
288
+ <Chip
289
+ sx={{
290
+ height: "auto",
291
+ "& .MuiChip-label": {
292
+ display: "block",
293
+ whiteSpace: "normal",
294
+ },
295
+ }}
296
+ label="This is a chip that has multiple lines."
297
+ />
298
+ <Chip label="This is a chip that has ellipsis." />
299
+ </Box>
300
+ ),
301
+ };
@@ -120,6 +120,26 @@ The hover/pressed effects are only applied to the delete icon. <br />
120
120
  <Chip label="label@lunit.io" onDelete={() => console.log("onDelete")} thumbnail="W as initial" />
121
121
  ````
122
122
 
123
+ ### Multiline
124
+ By default, Chips displays labels only in a single line. To have them support multiline content, use the `sx` prop to add `height:auto` to the Chip component, and `whiteSpace: normal` to the `label` styles.
125
+
126
+ <Canvas of={ChipStories.Multiline} />
127
+ ```tsx
128
+ <Chip
129
+ sx={{
130
+ height: "auto",
131
+ "& .MuiChip-label": {
132
+ display: "block",
133
+ whiteSpace: "normal",
134
+ },
135
+ }}
136
+ label="This is a chip that has multiple lines."
137
+ />
138
+ <Chip label="This is a chip that has ellipsis." />
139
+ ````
140
+
141
+
142
+
123
143
  ## Reference
124
144
 
125
145
  - [Material-UI Chip](https://mui.com/material-ui/react-chip/)
@@ -41,24 +41,16 @@ If it is set to `false`, the Dialog will not be rendered in the DOM.
41
41
  </Dialog>
42
42
  ```
43
43
 
44
- ### Dismiss(onClose, enableBackButtonClose, enableBackdropClick)
44
+ ### Dismiss(onClose, enableBackdropClick)
45
45
 
46
46
  The `onClose` prop is used to close the Dialog. You can pass a function to the prop to close the Dialog. <br />
47
- If the `enableBackButtonClick` prop is set to `true`, the Dialog will be closed when the back button(escape/backspace key) is pressed. <br />
48
47
  If the `enableBackdropClose` prop is set to `true`, the Dialog will be closed when the backdrop(outside of the dialog area) is clicked. <br />
49
-
50
- <br />
51
- The `enableBackButtonClick` is awalys `true` in Passive Modal, but it is optional
52
- in Action Modal. <br />
53
- The `enableBackdropClose` is awalys `true` only in Passive Modal.
48
+ The `enableBackdropClose` is always `true` only in Passive Modal.
54
49
 
55
50
  ```tsx
56
51
  <Dialog isOpen={true} onClose={close} type="passive" title="Title area">
57
52
  Lorem Ipsum is simply dummy text of the a printing and typesetting industry
58
53
  </Dialog>
59
- <Dialog isOpen={true} onClose={close} type="action" title="Title area" actions={actionsChildren} enableBackButtonClick>
60
- Lorem Ipsum is simply dummy text of the a printing and typesetting industry
61
- </Dialog>
62
54
  ```
63
55
 
64
56
  ### Type