@daikin-oss/design-system-web-components 1.2.0 → 1.3.0-next.2

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 (249) hide show
  1. package/CHANGELOG.md +85 -49
  2. package/dist/cjs/base/dds-element.cjs +1 -1
  3. package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +1 -0
  4. package/dist/cjs/components/avatar/daikin-avatar.cjs +1 -0
  5. package/dist/cjs/components/calendar/daikin-calendar.cjs +2 -0
  6. package/dist/cjs/components/card-header/daikin-card-header.cjs +1 -1
  7. package/dist/cjs/components/carousel/daikin-carousel.cjs +7 -3
  8. package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +2 -2
  9. package/dist/cjs/components/chip/daikin-chip.cjs +106 -0
  10. package/dist/cjs/components/chip/daikin-chip.d.cts +36 -0
  11. package/dist/cjs/components/chip/index.cjs +7 -0
  12. package/dist/cjs/components/chip/index.d.cts +1 -0
  13. package/dist/cjs/components/combobox/daikin-combobox.cjs +604 -0
  14. package/dist/cjs/components/combobox/daikin-combobox.d.cts +134 -0
  15. package/dist/cjs/components/combobox/index.cjs +8 -0
  16. package/dist/cjs/components/combobox/index.d.cts +1 -0
  17. package/dist/cjs/components/date-picker/daikin-date-picker.cjs +31 -16
  18. package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +2 -1
  19. package/dist/cjs/components/dropdown/daikin-dropdown.cjs +52 -37
  20. package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +4 -3
  21. package/dist/cjs/components/icon/daikin-icon.cjs +117 -12
  22. package/dist/cjs/components/icon/daikin-icon.d.cts +129 -9
  23. package/dist/cjs/components/icon/icons.json.cjs +6 -2
  24. package/dist/cjs/components/icon/icons.json.d.cts +0 -12
  25. package/dist/cjs/components/icon-button/daikin-icon-button.cjs +12 -2
  26. package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +8 -0
  27. package/dist/cjs/components/index.cjs +36 -0
  28. package/dist/cjs/components/index.d.cts +5 -0
  29. package/dist/cjs/components/input-group/daikin-input-group.cjs +1 -1
  30. package/dist/cjs/components/input-group/daikin-input-group.d.cts +40 -13
  31. package/dist/cjs/components/list-item/daikin-list-item.cjs +2 -2
  32. package/dist/cjs/components/modal-header/daikin-modal-header.cjs +1 -1
  33. package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +3 -3
  34. package/dist/cjs/components/select/daikin-select.cjs +6 -1
  35. package/dist/cjs/components/tab/daikin-tab.cjs +1 -0
  36. package/dist/cjs/components/table/daikin-table.cjs +33 -12
  37. package/dist/cjs/components/table/daikin-table.d.cts +67 -34
  38. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +31 -6
  39. package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +7 -0
  40. package/dist/cjs/components/text-field/daikin-text-field.cjs +191 -56
  41. package/dist/cjs/components/text-field/daikin-text-field.d.cts +32 -3
  42. package/dist/cjs/components/text-field/number-utils.cjs +61 -0
  43. package/dist/cjs/components/text-field/number-utils.d.cts +26 -0
  44. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +312 -0
  45. package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +136 -0
  46. package/dist/cjs/components/text-masked-field/index.cjs +7 -0
  47. package/dist/cjs/components/text-masked-field/index.d.cts +1 -0
  48. package/dist/cjs/components/time-picker/daikin-time-picker.cjs +577 -0
  49. package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +165 -0
  50. package/dist/cjs/components/time-picker/index.cjs +17 -0
  51. package/dist/cjs/components/time-picker/index.d.cts +1 -0
  52. package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +1 -1
  53. package/dist/cjs/components/tooltip/daikin-tooltip.cjs +12 -2
  54. package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +8 -1
  55. package/dist/cjs/controllers/floating-ui-auto-update.cjs +22 -4
  56. package/dist/cjs/controllers/floating-ui-auto-update.d.cts +12 -0
  57. package/dist/cjs/icon-registry.cjs +170 -0
  58. package/dist/cjs/icon-registry.d.cts +120 -0
  59. package/dist/cjs/index.cjs +39 -0
  60. package/dist/cjs/index.d.cts +1 -0
  61. package/dist/cjs/tailwind.css.cjs +1 -1
  62. package/dist/cjs/utils/notification-common.d.cts +2 -2
  63. package/dist/cjs-dev/base/dds-element.cjs +1 -1
  64. package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +1 -0
  65. package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +1 -0
  66. package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +2 -0
  67. package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +1 -1
  68. package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +7 -3
  69. package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +2 -2
  70. package/dist/cjs-dev/components/chip/daikin-chip.cjs +106 -0
  71. package/dist/cjs-dev/components/chip/daikin-chip.d.cts +36 -0
  72. package/dist/cjs-dev/components/chip/index.cjs +7 -0
  73. package/dist/cjs-dev/components/chip/index.d.cts +1 -0
  74. package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +604 -0
  75. package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +134 -0
  76. package/dist/cjs-dev/components/combobox/index.cjs +8 -0
  77. package/dist/cjs-dev/components/combobox/index.d.cts +1 -0
  78. package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +31 -16
  79. package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +2 -1
  80. package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +52 -37
  81. package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +4 -3
  82. package/dist/cjs-dev/components/icon/daikin-icon.cjs +141 -16
  83. package/dist/cjs-dev/components/icon/daikin-icon.d.cts +129 -9
  84. package/dist/cjs-dev/components/icon/icons.json.cjs +6 -2
  85. package/dist/cjs-dev/components/icon/icons.json.d.cts +0 -12
  86. package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +12 -2
  87. package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +8 -0
  88. package/dist/cjs-dev/components/index.cjs +36 -0
  89. package/dist/cjs-dev/components/index.d.cts +5 -0
  90. package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +1 -1
  91. package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +40 -13
  92. package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +2 -2
  93. package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +1 -1
  94. package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +3 -3
  95. package/dist/cjs-dev/components/select/daikin-select.cjs +6 -1
  96. package/dist/cjs-dev/components/tab/daikin-tab.cjs +1 -0
  97. package/dist/cjs-dev/components/table/daikin-table.cjs +36 -15
  98. package/dist/cjs-dev/components/table/daikin-table.d.cts +67 -34
  99. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +31 -6
  100. package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +7 -0
  101. package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +191 -56
  102. package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +32 -3
  103. package/dist/cjs-dev/components/text-field/number-utils.cjs +64 -0
  104. package/dist/cjs-dev/components/text-field/number-utils.d.cts +26 -0
  105. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +312 -0
  106. package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +136 -0
  107. package/dist/cjs-dev/components/text-masked-field/index.cjs +7 -0
  108. package/dist/cjs-dev/components/text-masked-field/index.d.cts +1 -0
  109. package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +589 -0
  110. package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +165 -0
  111. package/dist/cjs-dev/components/time-picker/index.cjs +17 -0
  112. package/dist/cjs-dev/components/time-picker/index.d.cts +1 -0
  113. package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +1 -1
  114. package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +12 -2
  115. package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +8 -1
  116. package/dist/cjs-dev/controllers/floating-ui-auto-update.cjs +22 -4
  117. package/dist/cjs-dev/controllers/floating-ui-auto-update.d.cts +12 -0
  118. package/dist/cjs-dev/icon-registry.cjs +170 -0
  119. package/dist/cjs-dev/icon-registry.d.cts +120 -0
  120. package/dist/cjs-dev/index.cjs +39 -0
  121. package/dist/cjs-dev/index.d.cts +1 -0
  122. package/dist/cjs-dev/tailwind.css.cjs +1 -1
  123. package/dist/cjs-dev/utils/notification-common.d.cts +2 -2
  124. package/dist/es/base/dds-element.js +1 -1
  125. package/dist/es/components/accordion-item/daikin-accordion-item.js +1 -0
  126. package/dist/es/components/avatar/daikin-avatar.js +1 -0
  127. package/dist/es/components/calendar/daikin-calendar.js +2 -0
  128. package/dist/es/components/card-header/daikin-card-header.js +1 -1
  129. package/dist/es/components/carousel/daikin-carousel.js +7 -3
  130. package/dist/es/components/carousel-item/daikin-carousel-item.js +2 -2
  131. package/dist/es/components/chip/daikin-chip.d.ts +36 -0
  132. package/dist/es/components/chip/daikin-chip.js +107 -0
  133. package/dist/es/components/chip/index.d.ts +1 -0
  134. package/dist/es/components/chip/index.js +4 -0
  135. package/dist/es/components/combobox/daikin-combobox.d.ts +134 -0
  136. package/dist/es/components/combobox/daikin-combobox.js +605 -0
  137. package/dist/es/components/combobox/index.d.ts +1 -0
  138. package/dist/es/components/combobox/index.js +5 -0
  139. package/dist/es/components/date-picker/daikin-date-picker.d.ts +2 -1
  140. package/dist/es/components/date-picker/daikin-date-picker.js +32 -17
  141. package/dist/es/components/dropdown/daikin-dropdown.d.ts +4 -3
  142. package/dist/es/components/dropdown/daikin-dropdown.js +52 -37
  143. package/dist/es/components/icon/daikin-icon.d.ts +129 -9
  144. package/dist/es/components/icon/daikin-icon.js +118 -13
  145. package/dist/es/components/icon/icons.json.d.ts +0 -12
  146. package/dist/es/components/icon/icons.json.js +5 -1
  147. package/dist/es/components/icon-button/daikin-icon-button.d.ts +8 -0
  148. package/dist/es/components/icon-button/daikin-icon-button.js +12 -2
  149. package/dist/es/components/index.d.ts +5 -0
  150. package/dist/es/components/index.js +22 -1
  151. package/dist/es/components/input-group/daikin-input-group.d.ts +40 -13
  152. package/dist/es/components/input-group/daikin-input-group.js +1 -1
  153. package/dist/es/components/list-item/daikin-list-item.js +2 -2
  154. package/dist/es/components/modal-header/daikin-modal-header.js +1 -1
  155. package/dist/es/components/progress-bar/daikin-progress-bar.js +3 -3
  156. package/dist/es/components/select/daikin-select.js +6 -1
  157. package/dist/es/components/tab/daikin-tab.js +1 -0
  158. package/dist/es/components/table/daikin-table.d.ts +67 -34
  159. package/dist/es/components/table/daikin-table.js +33 -12
  160. package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +7 -0
  161. package/dist/es/components/table-header-cell/daikin-table-header-cell.js +31 -6
  162. package/dist/es/components/text-field/daikin-text-field.d.ts +32 -3
  163. package/dist/es/components/text-field/daikin-text-field.js +191 -56
  164. package/dist/es/components/text-field/number-utils.d.ts +26 -0
  165. package/dist/es/components/text-field/number-utils.js +61 -0
  166. package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +136 -0
  167. package/dist/es/components/text-masked-field/daikin-text-masked-field.js +313 -0
  168. package/dist/es/components/text-masked-field/index.d.ts +1 -0
  169. package/dist/es/components/text-masked-field/index.js +4 -0
  170. package/dist/es/components/time-picker/daikin-time-picker.d.ts +165 -0
  171. package/dist/es/components/time-picker/daikin-time-picker.js +578 -0
  172. package/dist/es/components/time-picker/index.d.ts +1 -0
  173. package/dist/es/components/time-picker/index.js +14 -0
  174. package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +1 -1
  175. package/dist/es/components/tooltip/daikin-tooltip.d.ts +8 -1
  176. package/dist/es/components/tooltip/daikin-tooltip.js +12 -2
  177. package/dist/es/controllers/floating-ui-auto-update.d.ts +12 -0
  178. package/dist/es/controllers/floating-ui-auto-update.js +22 -4
  179. package/dist/es/icon-registry.d.ts +120 -0
  180. package/dist/es/icon-registry.js +170 -0
  181. package/dist/es/index.d.ts +1 -0
  182. package/dist/es/index.js +25 -1
  183. package/dist/es/tailwind.css.js +1 -1
  184. package/dist/es/utils/notification-common.d.ts +2 -2
  185. package/dist/es-dev/base/dds-element.js +1 -1
  186. package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +1 -0
  187. package/dist/es-dev/components/avatar/daikin-avatar.js +1 -0
  188. package/dist/es-dev/components/calendar/daikin-calendar.js +2 -0
  189. package/dist/es-dev/components/card-header/daikin-card-header.js +1 -1
  190. package/dist/es-dev/components/carousel/daikin-carousel.js +7 -3
  191. package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +2 -2
  192. package/dist/es-dev/components/chip/daikin-chip.d.ts +36 -0
  193. package/dist/es-dev/components/chip/daikin-chip.js +107 -0
  194. package/dist/es-dev/components/chip/index.d.ts +1 -0
  195. package/dist/es-dev/components/chip/index.js +4 -0
  196. package/dist/es-dev/components/combobox/daikin-combobox.d.ts +134 -0
  197. package/dist/es-dev/components/combobox/daikin-combobox.js +605 -0
  198. package/dist/es-dev/components/combobox/index.d.ts +1 -0
  199. package/dist/es-dev/components/combobox/index.js +5 -0
  200. package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +2 -1
  201. package/dist/es-dev/components/date-picker/daikin-date-picker.js +32 -17
  202. package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +4 -3
  203. package/dist/es-dev/components/dropdown/daikin-dropdown.js +52 -37
  204. package/dist/es-dev/components/icon/daikin-icon.d.ts +129 -9
  205. package/dist/es-dev/components/icon/daikin-icon.js +142 -17
  206. package/dist/es-dev/components/icon/icons.json.d.ts +0 -12
  207. package/dist/es-dev/components/icon/icons.json.js +5 -1
  208. package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +8 -0
  209. package/dist/es-dev/components/icon-button/daikin-icon-button.js +12 -2
  210. package/dist/es-dev/components/index.d.ts +5 -0
  211. package/dist/es-dev/components/index.js +22 -1
  212. package/dist/es-dev/components/input-group/daikin-input-group.d.ts +40 -13
  213. package/dist/es-dev/components/input-group/daikin-input-group.js +1 -1
  214. package/dist/es-dev/components/list-item/daikin-list-item.js +2 -2
  215. package/dist/es-dev/components/modal-header/daikin-modal-header.js +1 -1
  216. package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +3 -3
  217. package/dist/es-dev/components/select/daikin-select.js +6 -1
  218. package/dist/es-dev/components/tab/daikin-tab.js +1 -0
  219. package/dist/es-dev/components/table/daikin-table.d.ts +67 -34
  220. package/dist/es-dev/components/table/daikin-table.js +36 -15
  221. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +7 -0
  222. package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +31 -6
  223. package/dist/es-dev/components/text-field/daikin-text-field.d.ts +32 -3
  224. package/dist/es-dev/components/text-field/daikin-text-field.js +191 -56
  225. package/dist/es-dev/components/text-field/number-utils.d.ts +26 -0
  226. package/dist/es-dev/components/text-field/number-utils.js +64 -0
  227. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +136 -0
  228. package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +313 -0
  229. package/dist/es-dev/components/text-masked-field/index.d.ts +1 -0
  230. package/dist/es-dev/components/text-masked-field/index.js +4 -0
  231. package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +165 -0
  232. package/dist/es-dev/components/time-picker/daikin-time-picker.js +590 -0
  233. package/dist/es-dev/components/time-picker/index.d.ts +1 -0
  234. package/dist/es-dev/components/time-picker/index.js +14 -0
  235. package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +1 -1
  236. package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +8 -1
  237. package/dist/es-dev/components/tooltip/daikin-tooltip.js +12 -2
  238. package/dist/es-dev/controllers/floating-ui-auto-update.d.ts +12 -0
  239. package/dist/es-dev/controllers/floating-ui-auto-update.js +22 -4
  240. package/dist/es-dev/icon-registry.d.ts +120 -0
  241. package/dist/es-dev/icon-registry.js +170 -0
  242. package/dist/es-dev/index.d.ts +1 -0
  243. package/dist/es-dev/index.js +25 -1
  244. package/dist/es-dev/tailwind.css.js +1 -1
  245. package/dist/es-dev/utils/notification-common.d.ts +2 -2
  246. package/icons/number-minus.svg +5 -0
  247. package/icons/number-plus.svg +5 -0
  248. package/package.json +14 -4
  249. package/icons/dropdown-chevron-down.svg +0 -3
@@ -1,11 +1,13 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  import { unsafeCSS, css, html } from "lit";
3
- import { property } from "lit/decorators.js";
3
+ import { property, state } from "lit/decorators.js";
4
+ import { unsafeHTML } from "lit/directives/unsafe-html.js";
4
5
  import { DDSElement } from "../../base/dds-element.js";
5
6
  import { ddsElement } from "../../base/decorators.js";
6
7
  import "../../base/define.js";
8
+ import { iconRegistry } from "../../icon-registry.js";
7
9
  import tailwindStyles from "../../tailwind.css.js";
8
- import { icons } from "./icons.json.js";
10
+ import iconsJson from "./icons.json.js";
9
11
  var __defProp = Object.defineProperty;
10
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
13
  var __decorateClass = (decorators, target, key, kind) => {
@@ -16,47 +18,164 @@ var __decorateClass = (decorators, target, key, kind) => {
16
18
  if (kind && result) __defProp(target, key, result);
17
19
  return result;
18
20
  };
19
- const iconList = Object.keys(icons);
20
- const iconClassMap = Object.fromEntries(
21
- Object.entries(icons).map(([name, object]) => [name, object.class])
21
+ const { icons } = iconsJson;
22
+ const iconList = Object.keys(icons).filter(
23
+ (key) => key !== "logo-positive" && key !== "logo-negative"
22
24
  );
23
- const cvaIcon = cva(["block"], {
25
+ function svgToDataUrl(svg) {
26
+ const encoded = encodeURIComponent(svg).replaceAll("'", "%27");
27
+ return `url("data:image/svg+xml,${encoded}")`;
28
+ }
29
+ const cvaIcon = cva(["inline-flex size-full"], {
24
30
  variants: {
25
- icon: iconClassMap,
26
31
  color: {
27
32
  black: ["text-ddt-color-common-background-overlay"],
28
33
  white: ["text-ddt-color-common-text-inverse"],
29
34
  default: ["text-[--default-color]"],
30
35
  current: []
31
36
  // uses `currentColor`
37
+ },
38
+ mode: {
39
+ inline: [],
40
+ mask: [
41
+ "bg-current",
42
+ "[mask-size:100%_100%]",
43
+ "[-webkit-mask-size:100%_100%]",
44
+ "[mask-repeat:no-repeat]",
45
+ "[-webkit-mask-repeat:no-repeat]",
46
+ "[mask-image:var(--svg)]",
47
+ "[-webkit-mask-image:var(--svg)]"
48
+ ],
49
+ background: [
50
+ "bg-no-repeat",
51
+ "bg-[length:100%_100%]",
52
+ "bg-[image:var(--svg)]"
53
+ ],
54
+ static: []
55
+ // for static icons from icons.json
32
56
  }
33
57
  }
34
58
  });
35
59
  let DaikinIcon = class extends DDSElement {
36
60
  constructor() {
37
61
  super(...arguments);
62
+ this.registry = iconRegistry;
38
63
  this.icon = null;
39
64
  this.color = "default";
40
65
  this.size = "current";
66
+ this._iconData = null;
67
+ }
68
+ connectedCallback() {
69
+ super.connectedCallback();
70
+ this.loadIcon().catch((error) => {
71
+ {
72
+ console.warn(
73
+ `Error loading icon${this.icon ? ` "${this.icon}"` : ""} in <${this.tagName.toLowerCase()}>:`,
74
+ error
75
+ );
76
+ }
77
+ });
78
+ }
79
+ updated(changedProperties) {
80
+ if (changedProperties.has("icon")) {
81
+ this.loadIcon().catch((error) => {
82
+ {
83
+ console.warn(
84
+ `Error loading icon${this.icon ? ` "${this.icon}"` : ""} in <${this.tagName.toLowerCase()}>:`,
85
+ error
86
+ );
87
+ }
88
+ });
89
+ }
90
+ }
91
+ async loadIcon() {
92
+ if (!this.icon) {
93
+ this._iconData = null;
94
+ return;
95
+ }
96
+ const staticIcon = icons[this.icon];
97
+ if (staticIcon) {
98
+ this._iconData = {
99
+ mode: "static",
100
+ defaultColor: staticIcon.color,
101
+ class: staticIcon.class
102
+ };
103
+ return;
104
+ }
105
+ try {
106
+ const iconData = await this.registry.getIcon(this.icon);
107
+ if (true) {
108
+ if (!iconData) {
109
+ console.warn(`Icon "${this.icon}" not found in registry`);
110
+ }
111
+ }
112
+ this._iconData = iconData;
113
+ } catch (error) {
114
+ {
115
+ console.warn(`Failed to load custom icon "${this.icon}":`, error);
116
+ }
117
+ this._iconData = null;
118
+ }
41
119
  }
42
120
  render() {
43
- var _a;
44
- const defaultColor = (_a = icons[this.icon ?? ""]) == null ? void 0 : _a.color;
45
121
  {
46
122
  if (!this.icon) {
47
- console.warn("icon property is not specified");
48
- } else if (!(this.icon in icons)) {
49
- console.warn(`There is no icon named "${this.icon}".`);
50
- } else if (this.color === "default" && !defaultColor) {
123
+ console.warn("icon property is not specified for daikin-icon");
124
+ }
125
+ }
126
+ if (!this.icon) {
127
+ return html`<span
128
+ class=${cvaIcon({
129
+ color: this.color,
130
+ mode: "static"
131
+ })}
132
+ title="Unknown icon"
133
+ ></span>`;
134
+ }
135
+ if (!this._iconData) {
136
+ return html`<span
137
+ class=${cvaIcon({
138
+ color: this.color,
139
+ mode: "inline"
140
+ })}
141
+ title=${this.icon || "Unknown icon"}
142
+ ></span>`;
143
+ }
144
+ const defaultColor = this._iconData.defaultColor;
145
+ {
146
+ if (this.color === "default" && !defaultColor) {
51
147
  console.warn(`The icon "${this.icon}" does not have a default color.`);
52
148
  }
53
149
  }
150
+ if (this._iconData.mode === "static") {
151
+ return html`<span
152
+ class="${cvaIcon({
153
+ color: this.color,
154
+ mode: "static"
155
+ })} ${this._iconData.class}"
156
+ style=${`--default-color:${defaultColor ?? "#000000"}`}
157
+ role="presentation"
158
+ ></span>`;
159
+ }
160
+ const mode = this._iconData.mode ?? "mask";
161
+ if (mode === "inline") {
162
+ return html`<span
163
+ class=${cvaIcon({
164
+ color: this.color,
165
+ mode
166
+ })}
167
+ style=${`--default-color:${defaultColor ?? "#000000"}`}
168
+ role="presentation"
169
+ >${unsafeHTML(this._iconData.svg)}</span
170
+ >`;
171
+ }
172
+ const svgDataUrl = svgToDataUrl(this._iconData.svg);
54
173
  return html`<span
55
174
  class=${cvaIcon({
56
- icon: this.icon,
57
- color: this.color
175
+ color: this.color,
176
+ mode
58
177
  })}
59
- style=${`--default-color:${defaultColor ?? "#000000"}`}
178
+ style=${`--default-color:${defaultColor ?? "#000000"};--svg:${svgDataUrl}`}
60
179
  role="presentation"
61
180
  ></span>`;
62
181
  }
@@ -65,7 +184,7 @@ DaikinIcon.styles = css`
65
184
  ${unsafeCSS(tailwindStyles)}
66
185
 
67
186
  :host {
68
- display: inline-block;
187
+ display: inline-flex;
69
188
  width: var(--ddc-icon-size, 100%);
70
189
  height: var(--ddc-icon-size, 100%);
71
190
  }
@@ -86,6 +205,9 @@ DaikinIcon.styles = css`
86
205
  --ddc-icon-size: 24px;
87
206
  }
88
207
  `;
208
+ __decorateClass([
209
+ property({ attribute: false })
210
+ ], DaikinIcon.prototype, "registry", 2);
89
211
  __decorateClass([
90
212
  property({ type: String, reflect: true })
91
213
  ], DaikinIcon.prototype, "icon", 2);
@@ -95,6 +217,9 @@ __decorateClass([
95
217
  __decorateClass([
96
218
  property({ type: String, reflect: true })
97
219
  ], DaikinIcon.prototype, "size", 2);
220
+ __decorateClass([
221
+ state()
222
+ ], DaikinIcon.prototype, "_iconData", 2);
98
223
  DaikinIcon = __decorateClass([
99
224
  ddsElement("daikin-icon")
100
225
  ], DaikinIcon);
@@ -63,18 +63,6 @@ declare const _default: {
63
63
  "sort": {
64
64
  "class": "i-daikin-sort",
65
65
  "color": null
66
- },
67
- "negative": {
68
- "class": "i-daikin-error",
69
- "color": null
70
- },
71
- "positive": {
72
- "class": "i-daikin-success",
73
- "color": null
74
- },
75
- "cross": {
76
- "class": "i-daikin-close",
77
- "color": null
78
66
  }
79
67
  }
80
68
  }
@@ -1,4 +1,8 @@
1
- const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null }, "negative": { "class": "i-daikin-error", "color": null }, "positive": { "class": "i-daikin-success", "color": null }, "cross": { "class": "i-daikin-close", "color": null } };
1
+ const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null } };
2
+ const iconsJson = {
3
+ icons
4
+ };
2
5
  export {
6
+ iconsJson as default,
3
7
  icons
4
8
  };
@@ -75,6 +75,14 @@ export declare class DaikinIconButton extends DDSFormSubmitElement {
75
75
  * When used within a daikin-menu component, this property will be controlled by daikin-menu, so you don't need to specify it explicitly.
76
76
  */
77
77
  buttonAriaExpanded: boolean | null;
78
+ /**
79
+ * Size of the button.
80
+ * - `s`: 32px * 32px
81
+ * - `m`: 48px * 48px
82
+ *
83
+ * Default is `s`.
84
+ */
85
+ size: "s" | "m";
78
86
  private _button;
79
87
  constructor();
80
88
  render(): import('lit-html').TemplateResult<1>;
@@ -87,6 +87,7 @@ let DaikinIconButton = class extends DDSFormSubmitElement {
87
87
  this.buttonRole = null;
88
88
  this.buttonAriaHaspopup = null;
89
89
  this.buttonAriaExpanded = null;
90
+ this.size = "s";
90
91
  this.addEventListener("click", (event) => {
91
92
  if (this.disabled) {
92
93
  event.stopImmediatePropagation();
@@ -144,8 +145,14 @@ DaikinIconButton.styles = css`
144
145
 
145
146
  :host {
146
147
  display: inline-block;
147
- width: 2rem;
148
- height: 2rem;
148
+ width: var(--ddc-icon-button-size, 2rem);
149
+ height: var(--ddc-icon-button-size, 2rem);
150
+ }
151
+ :host([size="s"]) {
152
+ --ddc-icon-button-size: 2rem; /* 32px */
153
+ }
154
+ :host([size="m"]) {
155
+ --ddc-icon-button-size: 3rem; /* 48px */
149
156
  }
150
157
  `;
151
158
  __decorateClass([
@@ -175,6 +182,9 @@ __decorateClass([
175
182
  __decorateClass([
176
183
  property({ type: Boolean, reflect: true, attribute: "button-aria-expanded" })
177
184
  ], DaikinIconButton.prototype, "buttonAriaExpanded", 2);
185
+ __decorateClass([
186
+ property({ type: String, reflect: true })
187
+ ], DaikinIconButton.prototype, "size", 2);
178
188
  __decorateClass([
179
189
  query("button")
180
190
  ], DaikinIconButton.prototype, "_button", 2);
@@ -12,6 +12,8 @@ export * from "./carousel/index.js";
12
12
  export * from "./carousel-item/index.js";
13
13
  export * from "./checkbox/index.js";
14
14
  export * from "./checkbox-group/index.js";
15
+ export * from "./chip/index.js";
16
+ export * from "./combobox/index.js";
15
17
  export * from "./date-picker/index.js";
16
18
  export * from "./dropdown/index.js";
17
19
  export * from "./dropdown-item/index.js";
@@ -33,6 +35,7 @@ export * from "./progress-bar/index.js";
33
35
  export * from "./progress-indicator/index.js";
34
36
  export * from "./progress-indicator-item/index.js";
35
37
  export * from "./radio/index.js";
38
+ export * from "./radio-group/index.js";
36
39
  export * from "./select/index.js";
37
40
  export * from "./slider/index.js";
38
41
  export * from "./tab/index.js";
@@ -43,6 +46,8 @@ export * from "./table-header-cell/index.js";
43
46
  export * from "./tabs/index.js";
44
47
  export * from "./text-area/index.js";
45
48
  export * from "./text-field/index.js";
49
+ export * from "./text-masked-field/index.js";
50
+ export * from "./time-picker/index.js";
46
51
  export * from "./toast-notification/index.js";
47
52
  export * from "./toast-notification-manager/index.js";
48
53
  export * from "./toggle/index.js";
@@ -12,6 +12,8 @@ import { DaikinCarousel } from "./carousel/daikin-carousel.js";
12
12
  import { DaikinCarouselItem } from "./carousel-item/daikin-carousel-item.js";
13
13
  import { DaikinCheckbox } from "./checkbox/daikin-checkbox.js";
14
14
  import { DaikinCheckboxGroup } from "./checkbox-group/daikin-checkbox-group.js";
15
+ import { DaikinChip } from "./chip/daikin-chip.js";
16
+ import { DaikinCombobox, defaultFilterFn } from "./combobox/daikin-combobox.js";
15
17
  import { DaikinDatePicker } from "./date-picker/daikin-date-picker.js";
16
18
  import { DaikinDropdown } from "./dropdown/daikin-dropdown.js";
17
19
  import { DaikinDropdownItem } from "./dropdown-item/daikin-dropdown-item.js";
@@ -33,6 +35,7 @@ import { DaikinProgressBar } from "./progress-bar/daikin-progress-bar.js";
33
35
  import { DaikinProgressIndicator } from "./progress-indicator/daikin-progress-indicator.js";
34
36
  import { DaikinProgressIndicatorItem } from "./progress-indicator-item/daikin-progress-indicator-item.js";
35
37
  import { DaikinRadio } from "./radio/daikin-radio.js";
38
+ import { DaikinRadioGroup } from "./radio-group/daikin-radio-group.js";
36
39
  import { DaikinSelect } from "./select/daikin-select.js";
37
40
  import { DaikinSlider } from "./slider/daikin-slider.js";
38
41
  import { DaikinTab } from "./tab/daikin-tab.js";
@@ -43,6 +46,8 @@ import { DaikinTableHeaderCell } from "./table-header-cell/daikin-table-header-c
43
46
  import { DaikinTabs } from "./tabs/daikin-tabs.js";
44
47
  import { DaikinTextArea } from "./text-area/daikin-text-area.js";
45
48
  import { DaikinTextField } from "./text-field/daikin-text-field.js";
49
+ import { DaikinTextMaskedField } from "./text-masked-field/daikin-text-masked-field.js";
50
+ import { DaikinTimePicker, calcDigitInput, formatPartsForUI, formatTimeForUI, from24HourFormat, getTimeItemInSelection, isTimeOutOfRange, isValidValueTime, parsePartsFromUIValue, to24HourFormat, tryParseTimeFromUIValue } from "./time-picker/daikin-time-picker.js";
46
51
  import { DaikinToastNotification } from "./toast-notification/daikin-toast-notification.js";
47
52
  import { DaikinToastNotificationManager } from "./toast-notification-manager/daikin-toast-notification-manager.js";
48
53
  import { DaikinToggle } from "./toggle/daikin-toggle.js";
@@ -65,6 +70,8 @@ export {
65
70
  DaikinCarouselItem,
66
71
  DaikinCheckbox,
67
72
  DaikinCheckboxGroup,
73
+ DaikinChip,
74
+ DaikinCombobox,
68
75
  DaikinDatePicker,
69
76
  DaikinDropdown,
70
77
  DaikinDropdownItem,
@@ -86,6 +93,7 @@ export {
86
93
  DaikinProgressIndicator,
87
94
  DaikinProgressIndicatorItem,
88
95
  DaikinRadio,
96
+ DaikinRadioGroup,
89
97
  DaikinSelect,
90
98
  DaikinSlider,
91
99
  DaikinTab,
@@ -96,6 +104,8 @@ export {
96
104
  DaikinTabs,
97
105
  DaikinTextArea,
98
106
  DaikinTextField,
107
+ DaikinTextMaskedField,
108
+ DaikinTimePicker,
99
109
  DaikinToastNotification,
100
110
  DaikinToastNotificationManager,
101
111
  DaikinToggle,
@@ -103,6 +113,17 @@ export {
103
113
  DaikinTree,
104
114
  DaikinTreeItem,
105
115
  DaikinTreeSection,
116
+ calcDigitInput,
106
117
  cvaTreeChildren,
107
- iconList
118
+ defaultFilterFn,
119
+ formatPartsForUI,
120
+ formatTimeForUI,
121
+ from24HourFormat,
122
+ getTimeItemInSelection,
123
+ iconList,
124
+ isTimeOutOfRange,
125
+ isValidValueTime,
126
+ parsePartsFromUIValue,
127
+ to24HourFormat,
128
+ tryParseTimeFromUIValue
108
129
  };
@@ -5,12 +5,15 @@ import { DDSElement } from "../../base/index.js";
5
5
  * This component is particularly useful for creating complex forms where clear communication and guidance are essential.
6
6
  *
7
7
  * Hierarchies:
8
+ * - `daikin-input-group` > `daikin-checkbox-group` > `daikin-checkbox`
9
+ * - `daikin-input-group` > `daikin-combobox`
8
10
  * - `daikin-input-group` > `daikin-date-picker`
9
11
  * - `daikin-input-group` > `daikin-dropdown` > `daikin-dropdown-item`
10
12
  * - `daikin-input-group` > `daikin-radio-group` > `daikin-radio`
11
13
  * - `daikin-input-group` > `daikin-select`
12
14
  * - `daikin-input-group` > `daikin-text-area`
13
15
  * - `daikin-input-group` > `daikin-text-field`
16
+ * - `daikin-input-group` > `daikin-time-picker`
14
17
  *
15
18
  * @slot - A slot for an input component. See **Hierarchies** for supported components.
16
19
  *
@@ -19,14 +22,43 @@ import { DDSElement } from "../../base/index.js";
19
22
  * ```js
20
23
  * import "@daikin-oss/design-system-web-components/components/input-group/index.js";
21
24
  * <!-- Import the following as necessary. -->
25
+ * import "@daikin-oss/design-system-web-components/components/checkbox-group/index.js";
26
+ * import "@daikin-oss/design-system-web-components/components/checkbox/index.js";
27
+ * import "@daikin-oss/design-system-web-components/components/combobox/index.js";
22
28
  * import "@daikin-oss/design-system-web-components/components/date-picker/index.js";
23
29
  * import "@daikin-oss/design-system-web-components/components/dropdown/index.js";
24
30
  * import "@daikin-oss/design-system-web-components/components/dropdown-item/index.js";
25
- * import "@daikin-oss/design-system-web-components/components/radio/index.js";
26
31
  * import "@daikin-oss/design-system-web-components/components/radio-group/index.js";
32
+ * import "@daikin-oss/design-system-web-components/components/radio/index.js";
27
33
  * import "@daikin-oss/design-system-web-components/components/select/index.js";
28
34
  * import "@daikin-oss/design-system-web-components/components/text-area/index.js";
29
35
  * import "@daikin-oss/design-system-web-components/components/text-field/index.js";
36
+ * import "@daikin-oss/design-system-web-components/components/time-picker/index.js";
37
+ * ```
38
+ *
39
+ * With Checkbox Group:
40
+ *
41
+ * ```html
42
+ * <daikin-input-group>
43
+ * <daikin-checkbox-group>
44
+ * <daikin-checkbox name="name1" value="value1" label="Checkbox Item 1"></daikin-checkbox>
45
+ * <daikin-checkbox name="name2" value="value2" label="Checkbox Item 2"></daikin-checkbox>
46
+ * <daikin-checkbox name="name3" value="value3" label="Checkbox Item 3"></daikin-checkbox>
47
+ * </daikin-checkbox-group>
48
+ * </daikin-input-group>
49
+ * ```
50
+ *
51
+ * With Combobox:
52
+ *
53
+ * ```html
54
+ * <daikin-input-group>
55
+ * <daikin-combobox></daikin-combobox>
56
+ * </daikin-input-group>
57
+ *
58
+ * <script>
59
+ * const combobox = document.querySelector("daikin-combobox");
60
+ * combobox.items = ["Apple", "Banana", "Cherry"];
61
+ * </script>
30
62
  * ```
31
63
  *
32
64
  * With Date Picker:
@@ -67,18 +99,6 @@ import { DDSElement } from "../../base/index.js";
67
99
  * </daikin-input-group>
68
100
  * ```
69
101
  *
70
- * With Checkbox Group:
71
- *
72
- * ```html
73
- * <daikin-input-group>
74
- * <daikin-checkbox-group>
75
- * <daikin-checkbox name="name1" value="value1" label="Checkbox Item 1"></daikin-checkbox>
76
- * <daikin-checkbox name="name2" value="value2" label="Checkbox Item 2"></daikin-checkbox>
77
- * <daikin-checkbox name="name3" value="value3" label="Checkbox Item 3"></daikin-checkbox>
78
- * </daikin-checkbox-group>
79
- * </daikin-input-group>
80
- * ```
81
- *
82
102
  * With Select:
83
103
  *
84
104
  * ```html
@@ -108,6 +128,13 @@ import { DDSElement } from "../../base/index.js";
108
128
  * <daikin-text-area value="Content of TextArea"></daikin-text-area>
109
129
  * </daikin-input-group>
110
130
  * ```
131
+ *
132
+ * With Time Picker:
133
+ *
134
+ * ```html
135
+ * <daikin-input-group>
136
+ * <daikin-time-picker></daikin-time-picker>
137
+ * </daikin-input-group>
111
138
  * ```
112
139
  */
113
140
  export declare class DaikinInputGroup extends DDSElement {
@@ -182,7 +182,7 @@ __decorateClass([
182
182
  ], DaikinInputGroup.prototype, "_textareas", 2);
183
183
  __decorateClass([
184
184
  queryAssignedElements({
185
- selector: "daikin-date-picker,daikin-dropdown,daikin-radio-group,daikin-checkbox-group,daikin-select,daikin-text-field,daikin-text-area"
185
+ selector: "daikin-checkbox-group,daikin-combobox,daikin-date-picker,daikin-dropdown,daikin-radio-group,daikin-select,daikin-text-area,daikin-text-field,daikin-time-picker"
186
186
  })
187
187
  ], DaikinInputGroup.prototype, "_controls", 2);
188
188
  __decorateClass([
@@ -53,7 +53,7 @@ const WRAPPER = cva([
53
53
  "relative",
54
54
  "break-all"
55
55
  ])();
56
- const cvaIcon = cva(["icon-size-6"], {
56
+ const cvaIcon = cva(["icon-size-6", "slotted:flex-none"], {
57
57
  variants: {
58
58
  position: {
59
59
  left: [],
@@ -95,7 +95,7 @@ let DaikinListItem = class extends DDSElement {
95
95
  name="left-icon"
96
96
  class=${cvaIcon({ disabled: this.disabled, position: "left" })}
97
97
  >
98
- <span class="block -ml-1"></span>
98
+ <span class="flex-none block -ml-1"></span>
99
99
  </slot>
100
100
  <slot class=${cvaContent({ disabled: this.disabled })}></slot>
101
101
  </span>`;
@@ -29,7 +29,7 @@ const cvaTitle = cva([
29
29
  ])();
30
30
  const cvaDescription = cva([
31
31
  "flex-none",
32
- "text-ddt-color-common-text-secondary",
32
+ "text-ddt-color-common-text-primary",
33
33
  "font-daikinSerif",
34
34
  "text-base",
35
35
  "leading-normal",
@@ -81,9 +81,9 @@ const cvaBarContainer = cva(
81
81
  const cvaHelper = cva(["text-sm", "leading-[130%]"], {
82
82
  variants: {
83
83
  variant: {
84
- inprogress: ["text-ddt-color-common-text-primary"],
85
- completed: ["text-ddt-color-common-text-primary"],
86
- indeterminate: ["text-ddt-color-common-text-primary"],
84
+ inprogress: ["text-ddt-color-common-text-secondary"],
85
+ completed: ["text-ddt-color-common-text-secondary"],
86
+ indeterminate: ["text-ddt-color-common-text-secondary"],
87
87
  error: ["text-ddt-color-common-danger-default", "font-bold"]
88
88
  },
89
89
  visible: {
@@ -21,7 +21,7 @@ const cvaSelect = cva(
21
21
  "w-full",
22
22
  "h-full",
23
23
  "relative",
24
- "after:i-daikin-dropdown-chevron-down",
24
+ "after:i-daikin-chevron-down",
25
25
  "after:w-6",
26
26
  "after:h-6",
27
27
  "after:m-auto",
@@ -148,6 +148,11 @@ DaikinSelect.styles = css`
148
148
  background: transparent;
149
149
  }
150
150
 
151
+ ::slotted(select) {
152
+ background-color: var(--dds-color-common-surface-default) !important;
153
+ color: var(--ddt-color-common-text-primary) !important;
154
+ }
155
+
151
156
  ${unsafeCSS(tailwindStyles)}
152
157
 
153
158
  :host {
@@ -90,6 +90,7 @@ let DaikinTab = class extends DDSElement {
90
90
  render() {
91
91
  return html`
92
92
  <button
93
+ type="button"
93
94
  class=${cvaTab({ active: this.active })}
94
95
  ?disabled=${this.disabled}
95
96
  role="tab"