smarthr-ui 99.3.1 → 99.3.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 (189) hide show
  1. package/lib/_virtual/index.cjs +2 -2
  2. package/lib/_virtual/index.js +2 -2
  3. package/lib/_virtual/index2.cjs +2 -2
  4. package/lib/_virtual/index2.js +2 -2
  5. package/lib/components/Combobox/ItemButton.cjs +11 -2
  6. package/lib/components/Combobox/ItemButton.cjs.map +1 -1
  7. package/lib/components/Combobox/ItemButton.js +11 -2
  8. package/lib/components/Combobox/ItemButton.js.map +1 -1
  9. package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs +1 -1
  10. package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs.map +1 -1
  11. package/lib/components/Combobox/MultiCombobox/MultiCombobox.js +1 -1
  12. package/lib/components/Combobox/MultiCombobox/MultiCombobox.js.map +1 -1
  13. package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs +1 -1
  14. package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs.map +1 -1
  15. package/lib/components/Combobox/SingleCombobox/SingleCombobox.js +1 -1
  16. package/lib/components/Combobox/SingleCombobox/SingleCombobox.js.map +1 -1
  17. package/lib/components/DatePicker/DatePicker.cjs +1 -1
  18. package/lib/components/DatePicker/DatePicker.cjs.map +1 -1
  19. package/lib/components/DatePicker/DatePicker.js +1 -1
  20. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  21. package/lib/components/Dialog/FocusTrap.cjs +8 -8
  22. package/lib/components/Dialog/FocusTrap.cjs.map +1 -1
  23. package/lib/components/Dialog/FocusTrap.js +9 -9
  24. package/lib/components/Dialog/FocusTrap.js.map +1 -1
  25. package/lib/components/Dialog/ModelessDialog/ModelessDialog.cjs +2 -1
  26. package/lib/components/Dialog/ModelessDialog/ModelessDialog.cjs.map +1 -1
  27. package/lib/components/Dialog/ModelessDialog/ModelessDialog.js +2 -1
  28. package/lib/components/Dialog/ModelessDialog/ModelessDialog.js.map +1 -1
  29. package/lib/components/Input/CurrencyInput/CurrencyInput.cjs +2 -2
  30. package/lib/components/Input/CurrencyInput/CurrencyInput.cjs.map +1 -1
  31. package/lib/components/Input/CurrencyInput/CurrencyInput.js +2 -2
  32. package/lib/components/Input/CurrencyInput/CurrencyInput.js.map +1 -1
  33. package/lib/components/Input/Input.cjs +14 -16
  34. package/lib/components/Input/Input.cjs.map +1 -1
  35. package/lib/components/Input/Input.js +14 -16
  36. package/lib/components/Input/Input.js.map +1 -1
  37. package/lib/components/InputFile/InputFileMultiplyAppendable.cjs +8 -7
  38. package/lib/components/InputFile/InputFileMultiplyAppendable.cjs.map +1 -1
  39. package/lib/components/InputFile/InputFileMultiplyAppendable.js +8 -7
  40. package/lib/components/InputFile/InputFileMultiplyAppendable.js.map +1 -1
  41. package/lib/components/InputFile/InputFileNative.cjs +6 -5
  42. package/lib/components/InputFile/InputFileNative.cjs.map +1 -1
  43. package/lib/components/InputFile/InputFileNative.js +6 -5
  44. package/lib/components/InputFile/InputFileNative.js.map +1 -1
  45. package/lib/components/Layout/Container/Container.cjs.map +1 -1
  46. package/lib/components/Layout/Container/Container.js.map +1 -1
  47. package/lib/components/Pagination/Pagination.cjs +3 -2
  48. package/lib/components/Pagination/Pagination.cjs.map +1 -1
  49. package/lib/components/Pagination/Pagination.js +2 -1
  50. package/lib/components/Pagination/Pagination.js.map +1 -1
  51. package/lib/components/Panel/Groupbox/Groupbox.cjs +1 -0
  52. package/lib/components/Panel/Groupbox/Groupbox.cjs.map +1 -1
  53. package/lib/components/Panel/Groupbox/Groupbox.js +1 -0
  54. package/lib/components/Panel/Groupbox/Groupbox.js.map +1 -1
  55. package/lib/components/Select/Select.cjs +12 -14
  56. package/lib/components/Select/Select.cjs.map +1 -1
  57. package/lib/components/Select/Select.js +12 -14
  58. package/lib/components/Select/Select.js.map +1 -1
  59. package/lib/components/Table/TableScroller.cjs +13 -15
  60. package/lib/components/Table/TableScroller.cjs.map +1 -1
  61. package/lib/components/Table/TableScroller.js +14 -16
  62. package/lib/components/Table/TableScroller.js.map +1 -1
  63. package/lib/components/Textarea/Textarea.cjs +18 -12
  64. package/lib/components/Textarea/Textarea.cjs.map +1 -1
  65. package/lib/components/Textarea/Textarea.js +19 -13
  66. package/lib/components/Textarea/Textarea.js.map +1 -1
  67. package/lib/components/Tooltip/TooltipPortal.cjs +1 -0
  68. package/lib/components/Tooltip/TooltipPortal.cjs.map +1 -1
  69. package/lib/components/Tooltip/TooltipPortal.js +1 -0
  70. package/lib/components/Tooltip/TooltipPortal.js.map +1 -1
  71. package/lib/hooks/useClick.cjs +7 -4
  72. package/lib/hooks/useClick.cjs.map +1 -1
  73. package/lib/hooks/useClick.js +7 -4
  74. package/lib/hooks/useClick.js.map +1 -1
  75. package/lib/hooks/useOuterClick.cjs +5 -6
  76. package/lib/hooks/useOuterClick.cjs.map +1 -1
  77. package/lib/hooks/useOuterClick.js +6 -7
  78. package/lib/hooks/useOuterClick.js.map +1 -1
  79. package/lib/hooks/usePortal.cjs +24 -17
  80. package/lib/hooks/usePortal.cjs.map +1 -1
  81. package/lib/hooks/usePortal.d.ts +1 -1
  82. package/lib/hooks/usePortal.js +25 -18
  83. package/lib/hooks/usePortal.js.map +1 -1
  84. package/lib/hooks/useResponseStatus.cjs +20 -23
  85. package/lib/hooks/useResponseStatus.cjs.map +1 -1
  86. package/lib/hooks/useResponseStatus.js +20 -23
  87. package/lib/hooks/useResponseStatus.js.map +1 -1
  88. package/lib/intl/locales/en_us.json.cjs +1 -0
  89. package/lib/intl/locales/en_us.json.cjs.map +1 -1
  90. package/lib/intl/locales/en_us.json.js +1 -0
  91. package/lib/intl/locales/en_us.json.js.map +1 -1
  92. package/lib/intl/locales/id_id.json.cjs +0 -8
  93. package/lib/intl/locales/id_id.json.cjs.map +1 -1
  94. package/lib/intl/locales/id_id.json.js +0 -8
  95. package/lib/intl/locales/id_id.json.js.map +1 -1
  96. package/lib/intl/locales/index.d.ts +6 -16
  97. package/lib/intl/locales/ja_easy.json.cjs +1 -0
  98. package/lib/intl/locales/ja_easy.json.cjs.map +1 -1
  99. package/lib/intl/locales/ja_easy.json.js +1 -0
  100. package/lib/intl/locales/ja_easy.json.js.map +1 -1
  101. package/lib/intl/locales/ko_kr.json.cjs +1 -0
  102. package/lib/intl/locales/ko_kr.json.cjs.map +1 -1
  103. package/lib/intl/locales/ko_kr.json.js +1 -0
  104. package/lib/intl/locales/ko_kr.json.js.map +1 -1
  105. package/lib/intl/locales/pt_br.json.cjs +0 -8
  106. package/lib/intl/locales/pt_br.json.cjs.map +1 -1
  107. package/lib/intl/locales/pt_br.json.js +0 -8
  108. package/lib/intl/locales/pt_br.json.js.map +1 -1
  109. package/lib/intl/locales/vi_vn.json.cjs +1 -0
  110. package/lib/intl/locales/vi_vn.json.cjs.map +1 -1
  111. package/lib/intl/locales/vi_vn.json.js +1 -0
  112. package/lib/intl/locales/vi_vn.json.js.map +1 -1
  113. package/lib/intl/locales/zh_hans_cn.json.cjs +1 -0
  114. package/lib/intl/locales/zh_hans_cn.json.cjs.map +1 -1
  115. package/lib/intl/locales/zh_hans_cn.json.js +1 -0
  116. package/lib/intl/locales/zh_hans_cn.json.js.map +1 -1
  117. package/lib/intl/locales/zh_hant_tw.json.cjs +1 -0
  118. package/lib/intl/locales/zh_hant_tw.json.cjs.map +1 -1
  119. package/lib/intl/locales/zh_hant_tw.json.js +1 -0
  120. package/lib/intl/locales/zh_hant_tw.json.js.map +1 -1
  121. package/lib/intl/useDateFormat.cjs +1 -2
  122. package/lib/intl/useDateFormat.cjs.map +1 -1
  123. package/lib/intl/useDateFormat.js +1 -2
  124. package/lib/intl/useDateFormat.js.map +1 -1
  125. package/lib/intl/useIntl.cjs +2 -4
  126. package/lib/intl/useIntl.cjs.map +1 -1
  127. package/lib/intl/useIntl.js +2 -4
  128. package/lib/intl/useIntl.js.map +1 -1
  129. package/lib/libs/debounce.cjs +10 -2
  130. package/lib/libs/debounce.cjs.map +1 -1
  131. package/lib/libs/debounce.d.ts +4 -2
  132. package/lib/libs/debounce.js +10 -2
  133. package/lib/libs/debounce.js.map +1 -1
  134. package/lib/libs/lodash.cjs +3 -4
  135. package/lib/libs/lodash.cjs.map +1 -1
  136. package/lib/libs/lodash.d.ts +2 -11
  137. package/lib/libs/lodash.js +2 -7
  138. package/lib/libs/lodash.js.map +1 -1
  139. package/lib/libs/map.cjs +1 -5
  140. package/lib/libs/map.cjs.map +1 -1
  141. package/lib/libs/map.js +1 -5
  142. package/lib/libs/map.js.map +1 -1
  143. package/lib/themes/createBackgroundColor.cjs +3 -2
  144. package/lib/themes/createBackgroundColor.cjs.map +1 -1
  145. package/lib/themes/createBackgroundColor.js +2 -1
  146. package/lib/themes/createBackgroundColor.js.map +1 -1
  147. package/lib/themes/createBorder.cjs +3 -2
  148. package/lib/themes/createBorder.cjs.map +1 -1
  149. package/lib/themes/createBorder.js +2 -1
  150. package/lib/themes/createBorder.js.map +1 -1
  151. package/lib/themes/createBreakpoint.cjs +3 -2
  152. package/lib/themes/createBreakpoint.cjs.map +1 -1
  153. package/lib/themes/createBreakpoint.js +2 -1
  154. package/lib/themes/createBreakpoint.js.map +1 -1
  155. package/lib/themes/createColor.cjs +3 -2
  156. package/lib/themes/createColor.cjs.map +1 -1
  157. package/lib/themes/createColor.js +2 -1
  158. package/lib/themes/createColor.js.map +1 -1
  159. package/lib/themes/createFontSize.cjs +3 -2
  160. package/lib/themes/createFontSize.cjs.map +1 -1
  161. package/lib/themes/createFontSize.js +2 -1
  162. package/lib/themes/createFontSize.js.map +1 -1
  163. package/lib/themes/createInteraction.cjs +3 -2
  164. package/lib/themes/createInteraction.cjs.map +1 -1
  165. package/lib/themes/createInteraction.js +2 -1
  166. package/lib/themes/createInteraction.js.map +1 -1
  167. package/lib/themes/createLeading.cjs +3 -2
  168. package/lib/themes/createLeading.cjs.map +1 -1
  169. package/lib/themes/createLeading.js +2 -1
  170. package/lib/themes/createLeading.js.map +1 -1
  171. package/lib/themes/createRadius.cjs +3 -2
  172. package/lib/themes/createRadius.cjs.map +1 -1
  173. package/lib/themes/createRadius.js +2 -1
  174. package/lib/themes/createRadius.js.map +1 -1
  175. package/lib/themes/createShadow/createShadow.cjs +3 -2
  176. package/lib/themes/createShadow/createShadow.cjs.map +1 -1
  177. package/lib/themes/createShadow/createShadow.js +2 -1
  178. package/lib/themes/createShadow/createShadow.js.map +1 -1
  179. package/lib/themes/createTextColor.cjs +3 -2
  180. package/lib/themes/createTextColor.cjs.map +1 -1
  181. package/lib/themes/createTextColor.js +2 -1
  182. package/lib/themes/createTextColor.js.map +1 -1
  183. package/lib/themes/createZIndex.cjs +3 -2
  184. package/lib/themes/createZIndex.cjs.map +1 -1
  185. package/lib/themes/createZIndex.js +2 -1
  186. package/lib/themes/createZIndex.js.map +1 -1
  187. package/metadata.json +1 -1
  188. package/package.json +1 -1
  189. package/smarthr-ui.css +27 -7
@@ -1 +1 @@
1
- {"version":3,"file":"createBackgroundColor.cjs","sources":["../../src/themes/createBackgroundColor.ts"],"sourcesContent":["import { darken } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nexport type CreatedBackgroundColorTheme = {\n black: string\n white: string\n 'white-darken': string\n background: string\n border: string\n brand: string\n column: string\n 'column-darken': string\n 'base-grey': string\n 'over-background': string\n head: string\n 'head-darken': string\n 'action-background': string\n main: string\n 'main-darken': string\n danger: string\n 'danger-darken': string\n 'warning-yellow': string\n 'warning-yellow-darken': string\n overlay: string\n scrim: string\n green: string\n grey: {\n 9: string\n '9-darken': string\n }\n inherit: 'inherit'\n transparent: 'transparent'\n}\n\nexport const defaultBackgroundColor: CreatedBackgroundColorTheme = {\n black: defaultColor.GREY_100,\n white: defaultColor.WHITE,\n 'white-darken': darken(0.05, defaultColor.WHITE),\n background: defaultColor.BACKGROUND,\n border: defaultColor.GREY_20,\n brand: defaultColor.BRAND,\n column: defaultColor.COLUMN,\n 'column-darken': darken(0.05, defaultColor.COLUMN),\n 'base-grey': defaultColor.BASE_GREY,\n 'over-background': defaultColor.OVER_BACKGROUND,\n head: defaultColor.HEAD,\n 'head-darken': darken(0.05, defaultColor.HEAD),\n 'action-background': defaultColor.ACTION_BACKGROUND,\n main: defaultColor.MAIN,\n 'main-darken': darken(0.05, defaultColor.MAIN),\n danger: defaultColor.DANGER,\n 'danger-darken': darken(0.05, defaultColor.DANGER),\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n 'warning-yellow-darken': darken(0.05, defaultColor.WARNING_YELLOW),\n overlay: defaultColor.OVERLAY,\n scrim: defaultColor.SCRIM,\n green: '#0f7f85',\n grey: {\n 9: defaultColor.GREY_9,\n '9-darken': darken(0.05, defaultColor.GREY_9),\n },\n inherit: 'inherit',\n transparent: 'transparent',\n}\n\nexport const createBackgroundColor = (userColor?: ColorProperty): CreatedBackgroundColorTheme => {\n if (!userColor) {\n return defaultBackgroundColor\n }\n\n // userColorでマージされた色パレットを取得し、背景色を再生成\n const color = merge(defaultColor, userColor)\n\n return {\n black: color.GREY_100,\n white: color.WHITE,\n 'white-darken': darken(0.05, color.WHITE),\n background: color.BACKGROUND,\n border: color.GREY_20,\n brand: color.BRAND,\n column: color.COLUMN,\n 'column-darken': darken(0.05, color.COLUMN),\n 'base-grey': color.BASE_GREY,\n 'over-background': color.OVER_BACKGROUND,\n head: color.HEAD,\n 'head-darken': darken(0.05, color.HEAD),\n 'action-background': color.ACTION_BACKGROUND,\n main: color.MAIN,\n 'main-darken': darken(0.05, color.MAIN),\n danger: color.DANGER,\n 'danger-darken': darken(0.05, color.DANGER),\n 'warning-yellow': color.WARNING_YELLOW,\n 'warning-yellow-darken': darken(0.05, color.WARNING_YELLOW),\n overlay: color.OVERLAY,\n scrim: color.SCRIM,\n green: '#0f7f85',\n grey: {\n 9: color.GREY_9,\n '9-darken': darken(0.05, color.GREY_9),\n },\n inherit: 'inherit' as const,\n transparent: 'transparent' as const,\n }\n}\n"],"names":["defaultColor","darken","merge"],"mappings":";;;;;;AAqCO,M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AAS;AAChB,QAAA,IAAI,EAAE;YACJ,CAAC,EAAE,KAAK,CAAC,MAAM;YACf,UAAU,EAAEA,mBAAM,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;AACvC,SAAA;AACD,QAAA,OAAO,EAAE,SAAkB;AAC3B,QAAA,WAAW,EAAE,aAAsB;KACpC;AACH;;;;;"}
1
+ {"version":3,"file":"createBackgroundColor.cjs","sources":["../../src/themes/createBackgroundColor.ts"],"sourcesContent":["import { darken } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nexport type CreatedBackgroundColorTheme = {\n black: string\n white: string\n 'white-darken': string\n background: string\n border: string\n brand: string\n column: string\n 'column-darken': string\n 'base-grey': string\n 'over-background': string\n head: string\n 'head-darken': string\n 'action-background': string\n main: string\n 'main-darken': string\n danger: string\n 'danger-darken': string\n 'warning-yellow': string\n 'warning-yellow-darken': string\n overlay: string\n scrim: string\n green: string\n grey: {\n 9: string\n '9-darken': string\n }\n inherit: 'inherit'\n transparent: 'transparent'\n}\n\nexport const defaultBackgroundColor: CreatedBackgroundColorTheme = {\n black: defaultColor.GREY_100,\n white: defaultColor.WHITE,\n 'white-darken': darken(0.05, defaultColor.WHITE),\n background: defaultColor.BACKGROUND,\n border: defaultColor.GREY_20,\n brand: defaultColor.BRAND,\n column: defaultColor.COLUMN,\n 'column-darken': darken(0.05, defaultColor.COLUMN),\n 'base-grey': defaultColor.BASE_GREY,\n 'over-background': defaultColor.OVER_BACKGROUND,\n head: defaultColor.HEAD,\n 'head-darken': darken(0.05, defaultColor.HEAD),\n 'action-background': defaultColor.ACTION_BACKGROUND,\n main: defaultColor.MAIN,\n 'main-darken': darken(0.05, defaultColor.MAIN),\n danger: defaultColor.DANGER,\n 'danger-darken': darken(0.05, defaultColor.DANGER),\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n 'warning-yellow-darken': darken(0.05, defaultColor.WARNING_YELLOW),\n overlay: defaultColor.OVERLAY,\n scrim: defaultColor.SCRIM,\n green: '#0f7f85',\n grey: {\n 9: defaultColor.GREY_9,\n '9-darken': darken(0.05, defaultColor.GREY_9),\n },\n inherit: 'inherit',\n transparent: 'transparent',\n}\n\nexport const createBackgroundColor = (userColor?: ColorProperty): CreatedBackgroundColorTheme => {\n if (!userColor) {\n return defaultBackgroundColor\n }\n\n // userColorでマージされた色パレットを取得し、背景色を再生成\n const color = merge(defaultColor, userColor)\n\n return {\n black: color.GREY_100,\n white: color.WHITE,\n 'white-darken': darken(0.05, color.WHITE),\n background: color.BACKGROUND,\n border: color.GREY_20,\n brand: color.BRAND,\n column: color.COLUMN,\n 'column-darken': darken(0.05, color.COLUMN),\n 'base-grey': color.BASE_GREY,\n 'over-background': color.OVER_BACKGROUND,\n head: color.HEAD,\n 'head-darken': darken(0.05, color.HEAD),\n 'action-background': color.ACTION_BACKGROUND,\n main: color.MAIN,\n 'main-darken': darken(0.05, color.MAIN),\n danger: color.DANGER,\n 'danger-darken': darken(0.05, color.DANGER),\n 'warning-yellow': color.WARNING_YELLOW,\n 'warning-yellow-darken': darken(0.05, color.WARNING_YELLOW),\n overlay: color.OVERLAY,\n scrim: color.SCRIM,\n green: '#0f7f85',\n grey: {\n 9: color.GREY_9,\n '9-darken': darken(0.05, color.GREY_9),\n },\n inherit: 'inherit' as const,\n transparent: 'transparent' as const,\n }\n}\n"],"names":["defaultColor","darken","merge"],"mappings":";;;;;;;AAqCO,MAAM,sBAAsB,GAAgC;IACjE,KAAK,EAAEA,+BAAY,CAAC,QAAQ;IAC5B,KAAK,EAAEA,+BAAY,CAAC,KAAK;IACzB,cAAc,EAAEC,mBAAM,CAAC,IAAI,EAAED,+BAAY,CAAC,KAAK,CAAC;IAChD,UAAU,EAAEA,+BAAY,CAAC,UAAU;IACnC,MAAM,EAAEA,+BAAY,CAAC,OAAO;IAC5B,KAAK,EAAEA,+BAAY,CAAC,KAAK;IACzB,MAAM,EAAEA,+BAAY,CAAC,MAAM;IAC3B,eAA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odash.js';
2
+ import merge from '../_virtual/index.js';
3
+ import '../_virtual/index2.js';
3
4
  import { defaultColor } from './createColor.js';
4
5
 
5
6
  const defaultBackgroundColor = {
@@ -1 +1 @@
1
- {"version":3,"file":"createBackgroundColor.js","sources":["../../src/themes/createBackgroundColor.ts"],"sourcesContent":["import { darken } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nexport type CreatedBackgroundColorTheme = {\n black: string\n white: string\n 'white-darken': string\n background: string\n border: string\n brand: string\n column: string\n 'column-darken': string\n 'base-grey': string\n 'over-background': string\n head: string\n 'head-darken': string\n 'action-background': string\n main: string\n 'main-darken': string\n danger: string\n 'danger-darken': string\n 'warning-yellow': string\n 'warning-yellow-darken': string\n overlay: string\n scrim: string\n green: string\n grey: {\n 9: string\n '9-darken': string\n }\n inherit: 'inherit'\n transparent: 'transparent'\n}\n\nexport const defaultBackgroundColor: CreatedBackgroundColorTheme = {\n black: defaultColor.GREY_100,\n white: defaultColor.WHITE,\n 'white-darken': darken(0.05, defaultColor.WHITE),\n background: defaultColor.BACKGROUND,\n border: defaultColor.GREY_20,\n brand: defaultColor.BRAND,\n column: defaultColor.COLUMN,\n 'column-darken': darken(0.05, defaultColor.COLUMN),\n 'base-grey': defaultColor.BASE_GREY,\n 'over-background': defaultColor.OVER_BACKGROUND,\n head: defaultColor.HEAD,\n 'head-darken': darken(0.05, defaultColor.HEAD),\n 'action-background': defaultColor.ACTION_BACKGROUND,\n main: defaultColor.MAIN,\n 'main-darken': darken(0.05, defaultColor.MAIN),\n danger: defaultColor.DANGER,\n 'danger-darken': darken(0.05, defaultColor.DANGER),\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n 'warning-yellow-darken': darken(0.05, defaultColor.WARNING_YELLOW),\n overlay: defaultColor.OVERLAY,\n scrim: defaultColor.SCRIM,\n green: '#0f7f85',\n grey: {\n 9: defaultColor.GREY_9,\n '9-darken': darken(0.05, defaultColor.GREY_9),\n },\n inherit: 'inherit',\n transparent: 'transparent',\n}\n\nexport const createBackgroundColor = (userColor?: ColorProperty): CreatedBackgroundColorTheme => {\n if (!userColor) {\n return defaultBackgroundColor\n }\n\n // userColorでマージされた色パレットを取得し、背景色を再生成\n const color = merge(defaultColor, userColor)\n\n return {\n black: color.GREY_100,\n white: color.WHITE,\n 'white-darken': darken(0.05, color.WHITE),\n background: color.BACKGROUND,\n border: color.GREY_20,\n brand: color.BRAND,\n column: color.COLUMN,\n 'column-darken': darken(0.05, color.COLUMN),\n 'base-grey': color.BASE_GREY,\n 'over-background': color.OVER_BACKGROUND,\n head: color.HEAD,\n 'head-darken': darken(0.05, color.HEAD),\n 'action-background': color.ACTION_BACKGROUND,\n main: color.MAIN,\n 'main-darken': darken(0.05, color.MAIN),\n danger: color.DANGER,\n 'danger-darken': darken(0.05, color.DANGER),\n 'warning-yellow': color.WARNING_YELLOW,\n 'warning-yellow-darken': darken(0.05, color.WARNING_YELLOW),\n overlay: color.OVERLAY,\n scrim: color.SCRIM,\n green: '#0f7f85',\n grey: {\n 9: color.GREY_9,\n '9-darken': darken(0.05, color.GREY_9),\n },\n inherit: 'inherit' as const,\n transparent: 'transparent' as const,\n }\n}\n"],"names":["darken"],"mappings":";;;;AAqCO,MAAM,sBAAsB,GAAgC;IACjE,KAAK,EAAE,YAAY,CAAC,QAAQ;IAC5B,KAAK,EAAE,YAAY,CAAC,KAAK;IACzB,cAAc,EAAEA,eAAM,CAAC,IAAI,EAAE,YAAY,CAAC,KAAK,CAAC;IAChD,UAAU,EAAE,YAAY,CAAC,UAAU;IACnC,MAAM,EAAE,YAAY,CAAC,OAAO;IAC5B,KAAK,EAAE,YAAY,CAAC,KAAK;IACzB,MAAM,EAAE,YAAY,CAAC,MAAM;IAC3B,eAAe,EAAEA,eAAM,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC;IAClD,WAAW,EAAE,YAAY,CAAC,SAAS;IACnC,iBAAiB,EAAE,YAAY,CAAC,eAAe;IAC/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AAM;QACpB,eAAe,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;QAC3C,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,iBAAiB,EAAE,KAAK,CAAC,eAAe;QACxC,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,aAAa,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACvC,mBAAmB,EAAE,KAAK,CAAC,iBAAiB;QAC5C,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,aAAa,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACvC,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,eAAe,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;QAC3C,gBAAgB,EAAE,KAAK,CAAC,cAAc;QACtC,uBAAuB,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC;QAC3D,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,KAAK,EAAE,KAAK,CAAC,KAAK;AAClB,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,IAAI,EAAE;YACJ,CAAC,EAAE,KAAK,CAAC,MAAM;YACf,UAAU,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;AACvC,SAAA;AACD,QAAA,OAAO,EAAE,SAAkB;AAC3B,QAAA,WAAW,EAAE,aAAsB;KACpC;AACH;;;;"}
1
+ {"version":3,"file":"createBackgroundColor.js","sources":["../../src/themes/createBackgroundColor.ts"],"sourcesContent":["import { darken } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nexport type CreatedBackgroundColorTheme = {\n black: string\n white: string\n 'white-darken': string\n background: string\n border: string\n brand: string\n column: string\n 'column-darken': string\n 'base-grey': string\n 'over-background': string\n head: string\n 'head-darken': string\n 'action-background': string\n main: string\n 'main-darken': string\n danger: string\n 'danger-darken': string\n 'warning-yellow': string\n 'warning-yellow-darken': string\n overlay: string\n scrim: string\n green: string\n grey: {\n 9: string\n '9-darken': string\n }\n inherit: 'inherit'\n transparent: 'transparent'\n}\n\nexport const defaultBackgroundColor: CreatedBackgroundColorTheme = {\n black: defaultColor.GREY_100,\n white: defaultColor.WHITE,\n 'white-darken': darken(0.05, defaultColor.WHITE),\n background: defaultColor.BACKGROUND,\n border: defaultColor.GREY_20,\n brand: defaultColor.BRAND,\n column: defaultColor.COLUMN,\n 'column-darken': darken(0.05, defaultColor.COLUMN),\n 'base-grey': defaultColor.BASE_GREY,\n 'over-background': defaultColor.OVER_BACKGROUND,\n head: defaultColor.HEAD,\n 'head-darken': darken(0.05, defaultColor.HEAD),\n 'action-background': defaultColor.ACTION_BACKGROUND,\n main: defaultColor.MAIN,\n 'main-darken': darken(0.05, defaultColor.MAIN),\n danger: defaultColor.DANGER,\n 'danger-darken': darken(0.05, defaultColor.DANGER),\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n 'warning-yellow-darken': darken(0.05, defaultColor.WARNING_YELLOW),\n overlay: defaultColor.OVERLAY,\n scrim: defaultColor.SCRIM,\n green: '#0f7f85',\n grey: {\n 9: defaultColor.GREY_9,\n '9-darken': darken(0.05, defaultColor.GREY_9),\n },\n inherit: 'inherit',\n transparent: 'transparent',\n}\n\nexport const createBackgroundColor = (userColor?: ColorProperty): CreatedBackgroundColorTheme => {\n if (!userColor) {\n return defaultBackgroundColor\n }\n\n // userColorでマージされた色パレットを取得し、背景色を再生成\n const color = merge(defaultColor, userColor)\n\n return {\n black: color.GREY_100,\n white: color.WHITE,\n 'white-darken': darken(0.05, color.WHITE),\n background: color.BACKGROUND,\n border: color.GREY_20,\n brand: color.BRAND,\n column: color.COLUMN,\n 'column-darken': darken(0.05, color.COLUMN),\n 'base-grey': color.BASE_GREY,\n 'over-background': color.OVER_BACKGROUND,\n head: color.HEAD,\n 'head-darken': darken(0.05, color.HEAD),\n 'action-background': color.ACTION_BACKGROUND,\n main: color.MAIN,\n 'main-darken': darken(0.05, color.MAIN),\n danger: color.DANGER,\n 'danger-darken': darken(0.05, color.DANGER),\n 'warning-yellow': color.WARNING_YELLOW,\n 'warning-yellow-darken': darken(0.05, color.WARNING_YELLOW),\n overlay: color.OVERLAY,\n scrim: color.SCRIM,\n green: '#0f7f85',\n grey: {\n 9: color.GREY_9,\n '9-darken': darken(0.05, color.GREY_9),\n },\n inherit: 'inherit' as const,\n transparent: 'transparent' as const,\n }\n}\n"],"names":["darken"],"mappings":";;;;;AAqCO,MAAM,sBAAsB,GAAgC;IACjE,KAAK,EAAE,YAAY,CAAC,QAAQ;IAC5B,KAAK,EAAE,YAAY,CAAC,KAAK;IACzB,cAAc,EAAEA,eAAM,CAAC,IAAI,EAAE,YAAY,CAAC,KAAK,CAAC;IAChD,UAAU,EAAE,YAAY,CAAC,UAAU;IACnC,MAAM,EAAE,YAAY,CAAC,OAAO;IAC5B,KAAK,EAAE,YAAY,CAAC,KAAK;IACzB,MAAM,EAAE,YAAY,CAAC,MAAM;IAC3B,eAAe,EAAEA,eAAM,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC;IAClD,WAAW,EAAE,YAAY,CAAC,SAAS;IACnC,iBAAiB,EAAE,YAAY,CAAC,eAAe;IAC/C,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,aAAa,EAAEA,eAAM,CAAC,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC;IAC9C,mBAAmB,EAAE,YAAY,CAAC,iBAAiB;IACnD,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,aAAa,EAAEA,eAAM,CAAC,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC;IAC9C,MAAM,EAAE,YAAY,CAAC,MAAM;IAC3B,eAAe,EAAEA,eAAM,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC;IAClD,gBAAgB,EAAE,YAAY,CAAC,cAAc;IAC7C,uBAAuB,EAAEA,eAAM,C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K,CAAC,MAAM;QACpB,eAAe,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;QAC3C,gBAAgB,EAAE,KAAK,CAAC,cAAc;QACtC,uBAAuB,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC;QAC3D,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,KAAK,EAAE,KAAK,CAAC,KAAK;AAClB,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,IAAI,EAAE;YACJ,CAAC,EAAE,KAAK,CAAC,MAAM;YACf,UAAU,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;AACvC,SAAA;AACD,QAAA,OAAO,EAAE,SAAkB;AAC3B,QAAA,WAAW,EAAE,aAAsB;KACpC;AACH;;;;"}
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var libs_lodash = require('../libs/lodash.cjs');
3
+ var index = require('../_virtual/index.cjs');
4
+ require('../_virtual/index2.cjs');
4
5
  var themes_createColor = require('./createColor.cjs');
5
6
 
6
7
  const defaultLineWidth = '1px';
@@ -22,7 +23,7 @@ const createBorder = (userBorder, userColor) => {
22
23
  if (!userBorder) {
23
24
  return borders;
24
25
  }
25
- return libs_lodash.merge(borders, userBorder);
26
+ return index(borders, userBorder);
26
27
  };
27
28
 
28
29
  exports.createBorder = createBorder;
@@ -1 +1 @@
1
- {"version":3,"file":"createBorder.cjs","sources":["../../src/themes/createBorder.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nconst defaultLineWidth = '1px'\nconst defaultLineStyle = 'solid'\nconst defaultLineColor = defaultColor.BORDER\nconst highContrastBorderColor = defaultColor.GREY_100\n\nexport type BorderProperty = {\n lineWidth?: string\n lineStyle?: string\n shorthand?: string\n}\n\nexport type CreatedBorderTheme = {\n lineWidth: string\n lineStyle: string\n shorthand: string\n highContrast: string\n}\n\nexport const defaultBorder: CreatedBorderTheme = {\n lineWidth: defaultLineWidth,\n lineStyle: defaultLineStyle,\n shorthand: `${defaultLineWidth} ${defaultLineStyle} ${defaultLineColor}`,\n highContrast: `${defaultLineWidth} ${defaultLineStyle} ${highContrastBorderColor}`,\n}\n\nexport const createBorder = (\n userBorder?: BorderProperty,\n userColor?: ColorProperty,\n): CreatedBorderTheme => {\n const color = userColor?.BORDER || defaultColor.BORDER\n const borders = {\n ...defaultBorder,\n shorthand: `${defaultLineWidth} ${defaultLineStyle} ${color}`,\n }\n\n if (!userBorder) {\n return borders\n }\n\n return merge(borders, userBorder)\n}\n"],"names":["defaultColor","merge"],"mappings":";;;;;AAIA,MAAM,gBAAgB,GAAG,KAAK;AAC9B,MAAM,gBAAgB,GAAG,OAAO;AAChC,MAAM,gBAAgB,GAAGA,+BAAY,CAAC,MAAM;AAC5C,MAAM,uBAAuB,GAAGA,+BAAY,CAAC,QAAQ;AAe9C,MAAM,aAAa,GAAuB;AAC/C,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,SAAS,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,gBAAgB,CAAA,CAAE;AACxE,IAAA,YAAY,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,uBAAuB,CAAA,CAAE;;MAGvE,YAAY,GAAG,CAC1B,UAA2B,EAC3B,SAAyB,KACH;IACtB,MAAM,KAAK,GAAG,SAAS,EAAE,MAAM,IAAIA,+BAAY,CAAC,MAAM;AACtD,IAAA,MAAM,OAAO,GAAG;AACd,QAAA,GAAG,aAAa;AAChB,QAAA,SAAS,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,KAAK,CAAA,CAAE;KAC9D;IAED,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,OAAO;IAChB;AAEA,IAAA,OAAOC,iBAAK,CAAC,OAAO,EAAE,UAAU,CAAC;AACnC;;;;;"}
1
+ {"version":3,"file":"createBorder.cjs","sources":["../../src/themes/createBorder.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nconst defaultLineWidth = '1px'\nconst defaultLineStyle = 'solid'\nconst defaultLineColor = defaultColor.BORDER\nconst highContrastBorderColor = defaultColor.GREY_100\n\nexport type BorderProperty = {\n lineWidth?: string\n lineStyle?: string\n shorthand?: string\n}\n\nexport type CreatedBorderTheme = {\n lineWidth: string\n lineStyle: string\n shorthand: string\n highContrast: string\n}\n\nexport const defaultBorder: CreatedBorderTheme = {\n lineWidth: defaultLineWidth,\n lineStyle: defaultLineStyle,\n shorthand: `${defaultLineWidth} ${defaultLineStyle} ${defaultLineColor}`,\n highContrast: `${defaultLineWidth} ${defaultLineStyle} ${highContrastBorderColor}`,\n}\n\nexport const createBorder = (\n userBorder?: BorderProperty,\n userColor?: ColorProperty,\n): CreatedBorderTheme => {\n const color = userColor?.BORDER || defaultColor.BORDER\n const borders = {\n ...defaultBorder,\n shorthand: `${defaultLineWidth} ${defaultLineStyle} ${color}`,\n }\n\n if (!userBorder) {\n return borders\n }\n\n return merge(borders, userBorder)\n}\n"],"names":["defaultColor","merge"],"mappings":";;;;;;AAIA,MAAM,gBAAgB,GAAG,KAAK;AAC9B,MAAM,gBAAgB,GAAG,OAAO;AAChC,MAAM,gBAAgB,GAAGA,+BAAY,CAAC,MAAM;AAC5C,MAAM,uBAAuB,GAAGA,+BAAY,CAAC,QAAQ;AAe9C,MAAM,aAAa,GAAuB;AAC/C,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,SAAS,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,gBAAgB,CAAA,CAAE;AACxE,IAAA,YAAY,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,uBAAuB,CAAA,CAAE;;MAGvE,YAAY,GAAG,CAC1B,UAA2B,EAC3B,SAAyB,KACH;IACtB,MAAM,KAAK,GAAG,SAAS,EAAE,MAAM,IAAIA,+BAAY,CAAC,MAAM;AACtD,IAAA,MAAM,OAAO,GAAG;AACd,QAAA,GAAG,aAAa;AAChB,QAAA,SAAS,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,KAAK,CAAA,CAAE;KAC9D;IAED,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,OAAO;IAChB;AAEA,IAAA,OAAOC,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC;AACnC;;;;;"}
@@ -1,4 +1,5 @@
1
- import { merge } from '../libs/lodash.js';
1
+ import merge from '../_virtual/index.js';
2
+ import '../_virtual/index2.js';
2
3
  import { defaultColor } from './createColor.js';
3
4
 
4
5
  const defaultLineWidth = '1px';
@@ -1 +1 @@
1
- {"version":3,"file":"createBorder.js","sources":["../../src/themes/createBorder.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nconst defaultLineWidth = '1px'\nconst defaultLineStyle = 'solid'\nconst defaultLineColor = defaultColor.BORDER\nconst highContrastBorderColor = defaultColor.GREY_100\n\nexport type BorderProperty = {\n lineWidth?: string\n lineStyle?: string\n shorthand?: string\n}\n\nexport type CreatedBorderTheme = {\n lineWidth: string\n lineStyle: string\n shorthand: string\n highContrast: string\n}\n\nexport const defaultBorder: CreatedBorderTheme = {\n lineWidth: defaultLineWidth,\n lineStyle: defaultLineStyle,\n shorthand: `${defaultLineWidth} ${defaultLineStyle} ${defaultLineColor}`,\n highContrast: `${defaultLineWidth} ${defaultLineStyle} ${highContrastBorderColor}`,\n}\n\nexport const createBorder = (\n userBorder?: BorderProperty,\n userColor?: ColorProperty,\n): CreatedBorderTheme => {\n const color = userColor?.BORDER || defaultColor.BORDER\n const borders = {\n ...defaultBorder,\n shorthand: `${defaultLineWidth} ${defaultLineStyle} ${color}`,\n }\n\n if (!userBorder) {\n return borders\n }\n\n return merge(borders, userBorder)\n}\n"],"names":[],"mappings":";;;AAIA,MAAM,gBAAgB,GAAG,KAAK;AAC9B,MAAM,gBAAgB,GAAG,OAAO;AAChC,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM;AAC5C,MAAM,uBAAuB,GAAG,YAAY,CAAC,QAAQ;AAe9C,MAAM,aAAa,GAAuB;AAC/C,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,SAAS,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,gBAAgB,CAAA,CAAE;AACxE,IAAA,YAAY,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,uBAAuB,CAAA,CAAE;;MAGvE,YAAY,GAAG,CAC1B,UAA2B,EAC3B,SAAyB,KACH;IACtB,MAAM,KAAK,GAAG,SAAS,EAAE,MAAM,IAAI,YAAY,CAAC,MAAM;AACtD,IAAA,MAAM,OAAO,GAAG;AACd,QAAA,GAAG,aAAa;AAChB,QAAA,SAAS,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,KAAK,CAAA,CAAE;KAC9D;IAED,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,OAAO;IAChB;AAEA,IAAA,OAAO,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC;AACnC;;;;"}
1
+ {"version":3,"file":"createBorder.js","sources":["../../src/themes/createBorder.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nconst defaultLineWidth = '1px'\nconst defaultLineStyle = 'solid'\nconst defaultLineColor = defaultColor.BORDER\nconst highContrastBorderColor = defaultColor.GREY_100\n\nexport type BorderProperty = {\n lineWidth?: string\n lineStyle?: string\n shorthand?: string\n}\n\nexport type CreatedBorderTheme = {\n lineWidth: string\n lineStyle: string\n shorthand: string\n highContrast: string\n}\n\nexport const defaultBorder: CreatedBorderTheme = {\n lineWidth: defaultLineWidth,\n lineStyle: defaultLineStyle,\n shorthand: `${defaultLineWidth} ${defaultLineStyle} ${defaultLineColor}`,\n highContrast: `${defaultLineWidth} ${defaultLineStyle} ${highContrastBorderColor}`,\n}\n\nexport const createBorder = (\n userBorder?: BorderProperty,\n userColor?: ColorProperty,\n): CreatedBorderTheme => {\n const color = userColor?.BORDER || defaultColor.BORDER\n const borders = {\n ...defaultBorder,\n shorthand: `${defaultLineWidth} ${defaultLineStyle} ${color}`,\n }\n\n if (!userBorder) {\n return borders\n }\n\n return merge(borders, userBorder)\n}\n"],"names":[],"mappings":";;;;AAIA,MAAM,gBAAgB,GAAG,KAAK;AAC9B,MAAM,gBAAgB,GAAG,OAAO;AAChC,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM;AAC5C,MAAM,uBAAuB,GAAG,YAAY,CAAC,QAAQ;AAe9C,MAAM,aAAa,GAAuB;AAC/C,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,SAAS,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,gBAAgB,CAAA,CAAE;AACxE,IAAA,YAAY,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,uBAAuB,CAAA,CAAE;;MAGvE,YAAY,GAAG,CAC1B,UAA2B,EAC3B,SAAyB,KACH;IACtB,MAAM,KAAK,GAAG,SAAS,EAAE,MAAM,IAAI,YAAY,CAAC,MAAM;AACtD,IAAA,MAAM,OAAO,GAAG;AACd,QAAA,GAAG,aAAa;AAChB,QAAA,SAAS,EAAE,CAAA,EAAG,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,KAAK,CAAA,CAAE;KAC9D;IAED,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,OAAO;IAChB;AAEA,IAAA,OAAO,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC;AACnC;;;;"}
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var libs_lodash = require('../libs/lodash.cjs');
3
+ var index = require('../_virtual/index.cjs');
4
+ require('../_virtual/index2.cjs');
4
5
 
5
6
  const defaultBreakpoint = { SP: 599, TABLET: 959 };
6
7
  const createBreakpoint = (userBreakpoint) => {
7
8
  if (!userBreakpoint) {
8
9
  return defaultBreakpoint;
9
10
  }
10
- return libs_lodash.merge({ ...defaultBreakpoint }, userBreakpoint);
11
+ return index({ ...defaultBreakpoint }, userBreakpoint);
11
12
  };
12
13
 
13
14
  exports.createBreakpoint = createBreakpoint;
@@ -1 +1 @@
1
- {"version":3,"file":"createBreakpoint.cjs","sources":["../../src/themes/createBreakpoint.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport type BreakpointProperty = {\n SP?: number\n TABLET?: number\n}\n\nexport type CreatedBreakpointTheme = {\n SP: number\n TABLET: number\n}\n\nexport const defaultBreakpoint: CreatedBreakpointTheme = { SP: 599, TABLET: 959 }\n\nexport const createBreakpoint = (userBreakpoint?: BreakpointProperty): CreatedBreakpointTheme => {\n if (!userBreakpoint) {\n return defaultBreakpoint\n }\n\n return merge({ ...defaultBreakpoint }, userBreakpoint)\n}\n"],"names":["merge"],"mappings":";;;;AAYO,MAAM,iBAAiB,GAA2B,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG;AAExE,MAAM,gBAAgB,GAAG,CAAC,cAAmC,KAA4B;IAC9F,IAAI,CAAC,cAAc,EAAE;AACnB,QAAA,OAAO,iBAAiB;IAC1B;IAEA,OAAOA,iBAAK,CAAC,EAAE,GAAG,iBAAiB,EAAE,EAAE,cAAc,CAAC;AACxD;;;;;"}
1
+ {"version":3,"file":"createBreakpoint.cjs","sources":["../../src/themes/createBreakpoint.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport type BreakpointProperty = {\n SP?: number\n TABLET?: number\n}\n\nexport type CreatedBreakpointTheme = {\n SP: number\n TABLET: number\n}\n\nexport const defaultBreakpoint: CreatedBreakpointTheme = { SP: 599, TABLET: 959 }\n\nexport const createBreakpoint = (userBreakpoint?: BreakpointProperty): CreatedBreakpointTheme => {\n if (!userBreakpoint) {\n return defaultBreakpoint\n }\n\n return merge({ ...defaultBreakpoint }, userBreakpoint)\n}\n"],"names":["merge"],"mappings":";;;;;AAYO,MAAM,iBAAiB,GAA2B,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG;AAExE,MAAM,gBAAgB,GAAG,CAAC,cAAmC,KAA4B;IAC9F,IAAI,CAAC,cAAc,EAAE;AACnB,QAAA,OAAO,iBAAiB;IAC1B;IAEA,OAAOA,KAAK,CAAC,EAAE,GAAG,iBAAiB,EAAE,EAAE,cAAc,CAAC;AACxD;;;;;"}
@@ -1,4 +1,5 @@
1
- import { merge } from '../libs/lodash.js';
1
+ import merge from '../_virtual/index.js';
2
+ import '../_virtual/index2.js';
2
3
 
3
4
  const defaultBreakpoint = { SP: 599, TABLET: 959 };
4
5
  const createBreakpoint = (userBreakpoint) => {
@@ -1 +1 @@
1
- {"version":3,"file":"createBreakpoint.js","sources":["../../src/themes/createBreakpoint.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport type BreakpointProperty = {\n SP?: number\n TABLET?: number\n}\n\nexport type CreatedBreakpointTheme = {\n SP: number\n TABLET: number\n}\n\nexport const defaultBreakpoint: CreatedBreakpointTheme = { SP: 599, TABLET: 959 }\n\nexport const createBreakpoint = (userBreakpoint?: BreakpointProperty): CreatedBreakpointTheme => {\n if (!userBreakpoint) {\n return defaultBreakpoint\n }\n\n return merge({ ...defaultBreakpoint }, userBreakpoint)\n}\n"],"names":[],"mappings":";;AAYO,MAAM,iBAAiB,GAA2B,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG;AAExE,MAAM,gBAAgB,GAAG,CAAC,cAAmC,KAA4B;IAC9F,IAAI,CAAC,cAAc,EAAE;AACnB,QAAA,OAAO,iBAAiB;IAC1B;IAEA,OAAO,KAAK,CAAC,EAAE,GAAG,iBAAiB,EAAE,EAAE,cAAc,CAAC;AACxD;;;;"}
1
+ {"version":3,"file":"createBreakpoint.js","sources":["../../src/themes/createBreakpoint.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport type BreakpointProperty = {\n SP?: number\n TABLET?: number\n}\n\nexport type CreatedBreakpointTheme = {\n SP: number\n TABLET: number\n}\n\nexport const defaultBreakpoint: CreatedBreakpointTheme = { SP: 599, TABLET: 959 }\n\nexport const createBreakpoint = (userBreakpoint?: BreakpointProperty): CreatedBreakpointTheme => {\n if (!userBreakpoint) {\n return defaultBreakpoint\n }\n\n return merge({ ...defaultBreakpoint }, userBreakpoint)\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,iBAAiB,GAA2B,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG;AAExE,MAAM,gBAAgB,GAAG,CAAC,cAAmC,KAA4B;IAC9F,IAAI,CAAC,cAAc,EAAE;AACnB,QAAA,OAAO,iBAAiB;IAC1B;IAEA,OAAO,KAAK,CAAC,EAAE,GAAG,iBAAiB,EAAE,EAAE,cAAc,CAAC;AACxD;;;;"}
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var polished_esm = require('./../vendor/.pnpm/polished@4.3.1/vendor/polished/dist/polished.esm.cjs');
4
- var libs_lodash = require('../libs/lodash.cjs');
4
+ var index = require('../_virtual/index.cjs');
5
+ require('../_virtual/index2.cjs');
5
6
 
6
7
  const BLACK = '#030302'; // hwb(56, 17, 1)
7
8
  const greyScale = {
@@ -59,7 +60,7 @@ const createColor = (userColor) => {
59
60
  if (!userColor) {
60
61
  return colors;
61
62
  }
62
- return libs_lodash.merge(colors, userColor, !userColor.OUTLINE && userColor.MAIN ? { OUTLINE: polished_esm.transparentize(0.5, userColor.MAIN) } : null);
63
+ return index(colors, userColor, !userColor.OUTLINE && userColor.MAIN ? { OUTLINE: polished_esm.transparentize(0.5, userColor.MAIN) } : null);
63
64
  };
64
65
 
65
66
  exports.createColor = createColor;
@@ -1 +1 @@
1
- {"version":3,"file":"createColor.cjs","sources":["../../src/themes/createColor.ts"],"sourcesContent":["import { darken, rgba, transparentize } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nexport type TextColors = 'TEXT_BLACK' | 'TEXT_WHITE' | 'TEXT_GREY' | 'TEXT_DISABLED' | 'TEXT_LINK'\nexport type GreyScaleColors =\n | keyof typeof greyScale\n | 'BACKGROUND'\n | 'COLUMN'\n | 'BASE_GREY'\n | 'OVER_BACKGROUND'\n | 'HEAD'\n | 'BORDER'\n | 'ACTION_BACKGROUND'\n\nconst BLACK = '#030302' // hwb(56, 17, 1)\nconst greyScale = {\n GREY_5: '#f8f7f6', // hwb(31, 1, 97)\n GREY_6: '#f5f4f3', // hwb(31, 1, 96)\n GREY_7: '#f2f1f0', // hwb(31, 1, 95)\n GREY_9: '#edebe8', // hwb(31, 2, 92)\n GREY_20: '#d6d3d0', // hwb(33, 3, 84)\n GREY_30: '#c1bdb7', // hwb(36, 5, 76)\n GREY_65: '#706d65', // hwb(44, 10, 44)\n GREY_100: '#23221e', // hwb(52, 15, 14)\n}\nconst transparencyScale = {\n TRANSPARENCY_15: rgba(BLACK, 0.15),\n TRANSPARENCY_30: rgba(BLACK, 0.3),\n TRANSPARENCY_50: rgba(BLACK, 0.5),\n}\nconst primitiveTokens = {\n WHITE: '#fff',\n BLUE_100: '#0077c7',\n BLUE_101: '#0071c1',\n GREEN_100: '#0f7f85',\n ORANGE_100: '#f56121',\n RED_100: '#e01e5a',\n YELLOW_100: '#ffcc17',\n SMARTHR_BLUE: '#00c4cc',\n}\n\nconst semanticTokens = {\n TEXT_BLACK: greyScale.GREY_100,\n TEXT_WHITE: primitiveTokens.WHITE,\n TEXT_GREY: greyScale.GREY_65,\n TEXT_DISABLED: greyScale.GREY_30,\n TEXT_LINK: primitiveTokens.BLUE_101,\n WHITE: primitiveTokens.WHITE,\n BACKGROUND: greyScale.GREY_5,\n COLUMN: greyScale.GREY_5,\n BASE_GREY: greyScale.GREY_6,\n OVER_BACKGROUND: greyScale.GREY_7,\n HEAD: greyScale.GREY_9,\n BORDER: greyScale.GREY_20,\n ACTION_BACKGROUND: greyScale.GREY_20,\n MAIN: primitiveTokens.BLUE_100,\n OUTLINE: primitiveTokens.BLUE_100,\n DANGER: primitiveTokens.RED_100,\n WARNING_YELLOW: primitiveTokens.YELLOW_100,\n OVERLAY: transparencyScale.TRANSPARENCY_15,\n SCRIM: transparencyScale.TRANSPARENCY_50,\n BRAND: primitiveTokens.SMARTHR_BLUE,\n}\n\nexport const defaultColor = { ...semanticTokens, ...greyScale, ...transparencyScale }\n\ntype Palette = typeof defaultColor\nexport type ColorProperty = Partial<Palette>\nexport type CreatedColorTheme = Palette & {\n hoverColor: (value: string) => string\n disableColor: (value: string) => string\n}\n\nexport const createColor = (userColor?: ColorProperty): CreatedColorTheme => {\n const colors = {\n ...defaultColor,\n hoverColor: (value: string): string => darken(0.05, value),\n disableColor: (value: string): string => rgba(value, 0.5),\n }\n\n if (!userColor) {\n return colors\n }\n\n return merge(\n colors,\n userColor,\n !userColor.OUTLINE && userColor.MAIN ? { OUTLINE: transparentize(0.5, userColor.MAIN) } : null,\n )\n}\n"],"names":["rgba","darken","merge","transparentize"],"mappings":";;;;;AAeA,MAAM,KAAK,GAAG,SAAS,CAAA;AACvB,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,SAAS;CACpB;AACD,MAAM,iBAAiB,GAAG;AACxB,IAAA,eAAe,EAAEA,iBAAI,CAAC,KAAK,EAAE,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,CAAC,SAAyB,KAAuB;AAC1E,IAAA,MAAM,MAAM,GAAG;AACb,QAAA,GAAG,YAAY;QACf,UAAU,EAAE,CAAC,KAAa,KAAaC,mBAAM,CAAC,IAAI,EAAE,KAAK,CAAC;QAC1D,YAAY,EAAE,CAAC,KAAa,KAAaD,iBAAI,CAAC,KAAK,EAAE,GAAG,CAAC;KAC1D;IAED,IAAI,CAAC,SAAS,EAAE;AACd,QAAA,OAAO,MAAM;IACf;AAEA,IAAA,OAAOE,iBAAK,CACV,MAAM,EACN,SAAS,EACT,CAAC,SAAS,CAAC,OAAO,IAAI,SAAS,CAAC,IAAI,GAAG,EAAE,OAAO,EAAEC,2BAAc,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI,CAC/F;AACH;;;;;"}
1
+ {"version":3,"file":"createColor.cjs","sources":["../../src/themes/createColor.ts"],"sourcesContent":["import { darken, rgba, transparentize } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nexport type TextColors = 'TEXT_BLACK' | 'TEXT_WHITE' | 'TEXT_GREY' | 'TEXT_DISABLED' | 'TEXT_LINK'\nexport type GreyScaleColors =\n | keyof typeof greyScale\n | 'BACKGROUND'\n | 'COLUMN'\n | 'BASE_GREY'\n | 'OVER_BACKGROUND'\n | 'HEAD'\n | 'BORDER'\n | 'ACTION_BACKGROUND'\n\nconst BLACK = '#030302' // hwb(56, 17, 1)\nconst greyScale = {\n GREY_5: '#f8f7f6', // hwb(31, 1, 97)\n GREY_6: '#f5f4f3', // hwb(31, 1, 96)\n GREY_7: '#f2f1f0', // hwb(31, 1, 95)\n GREY_9: '#edebe8', // hwb(31, 2, 92)\n GREY_20: '#d6d3d0', // hwb(33, 3, 84)\n GREY_30: '#c1bdb7', // hwb(36, 5, 76)\n GREY_65: '#706d65', // hwb(44, 10, 44)\n GREY_100: '#23221e', // hwb(52, 15, 14)\n}\nconst transparencyScale = {\n TRANSPARENCY_15: rgba(BLACK, 0.15),\n TRANSPARENCY_30: rgba(BLACK, 0.3),\n TRANSPARENCY_50: rgba(BLACK, 0.5),\n}\nconst primitiveTokens = {\n WHITE: '#fff',\n BLUE_100: '#0077c7',\n BLUE_101: '#0071c1',\n GREEN_100: '#0f7f85',\n ORANGE_100: '#f56121',\n RED_100: '#e01e5a',\n YELLOW_100: '#ffcc17',\n SMARTHR_BLUE: '#00c4cc',\n}\n\nconst semanticTokens = {\n TEXT_BLACK: greyScale.GREY_100,\n TEXT_WHITE: primitiveTokens.WHITE,\n TEXT_GREY: greyScale.GREY_65,\n TEXT_DISABLED: greyScale.GREY_30,\n TEXT_LINK: primitiveTokens.BLUE_101,\n WHITE: primitiveTokens.WHITE,\n BACKGROUND: greyScale.GREY_5,\n COLUMN: greyScale.GREY_5,\n BASE_GREY: greyScale.GREY_6,\n OVER_BACKGROUND: greyScale.GREY_7,\n HEAD: greyScale.GREY_9,\n BORDER: greyScale.GREY_20,\n ACTION_BACKGROUND: greyScale.GREY_20,\n MAIN: primitiveTokens.BLUE_100,\n OUTLINE: primitiveTokens.BLUE_100,\n DANGER: primitiveTokens.RED_100,\n WARNING_YELLOW: primitiveTokens.YELLOW_100,\n OVERLAY: transparencyScale.TRANSPARENCY_15,\n SCRIM: transparencyScale.TRANSPARENCY_50,\n BRAND: primitiveTokens.SMARTHR_BLUE,\n}\n\nexport const defaultColor = { ...semanticTokens, ...greyScale, ...transparencyScale }\n\ntype Palette = typeof defaultColor\nexport type ColorProperty = Partial<Palette>\nexport type CreatedColorTheme = Palette & {\n hoverColor: (value: string) => string\n disableColor: (value: string) => string\n}\n\nexport const createColor = (userColor?: ColorProperty): CreatedColorTheme => {\n const colors = {\n ...defaultColor,\n hoverColor: (value: string): string => darken(0.05, value),\n disableColor: (value: string): string => rgba(value, 0.5),\n }\n\n if (!userColor) {\n return colors\n }\n\n return merge(\n colors,\n userColor,\n !userColor.OUTLINE && userColor.MAIN ? { OUTLINE: transparentize(0.5, userColor.MAIN) } : null,\n )\n}\n"],"names":["rgba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,EAAE,eAAe,CAAC,QAAQ;IAC9B,OAAO,EAAE,eAAe,CAAC,QAAQ;IACjC,MAAM,EAAE,eAAe,CAAC,OAAO;IAC/B,cAAc,EAAE,eAAe,CAAC,UAAU;IAC1C,OAAO,EAAE,iBAAiB,CAAC,eAAe;IAC1C,KAAK,EAAE,iBAAiB,CAAC,eAAe;IACxC,KAAK,EAAE,eAAe,CAAC,YAAY;CACpC;AAEM,MAAM,YAAY,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,SAAS,EAAE,GAAG,iBAAiB;AAS5E,MAAM,WAAW,GAAG,CAAC,SAAyB,KAAuB;AAC1E,IAAA,MAAM,MAAM,GAAG;AACb,QAAA,GAAG,YAAY;QACf,UAAU,EAAE,CAAC,KAAa,KAAaC,mBAAM,CAAC,IAAI,EAAE,KAAK,CAAC;QAC1D,YAAY,EAAE,CAAC,KAAa,KAAaD,iBAAI,CAAC,KAAK,EAAE,GAAG,CAAC;KAC1D;IAED,IAAI,CAAC,SAAS,EAAE;AACd,QAAA,OAAO,MAAM;IACf;AAEA,IAAA,OAAOE,KAAK,CACV,MAAM,EACN,SAAS,EACT,CAAC,SAAS,CAAC,OAAO,IAAI,SAAS,CAAC,IAAI,GAAG,EAAE,OAAO,EAAEC,2BAAc,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI,CAC/F;AACH;;;;;"}
@@ -1,5 +1,6 @@
1
1
  import { rgba, transparentize as curriedTransparentize$1, darken as curriedDarken$1 } from './../vendor/.pnpm/polished@4.3.1/vendor/polished/dist/polished.esm.js';
2
- import { merge } from '../libs/lodash.js';
2
+ import merge from '../_virtual/index.js';
3
+ import '../_virtual/index2.js';
3
4
 
4
5
  const BLACK = '#030302'; // hwb(56, 17, 1)
5
6
  const greyScale = {
@@ -1 +1 @@
1
- {"version":3,"file":"createColor.js","sources":["../../src/themes/createColor.ts"],"sourcesContent":["import { darken, rgba, transparentize } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nexport type TextColors = 'TEXT_BLACK' | 'TEXT_WHITE' | 'TEXT_GREY' | 'TEXT_DISABLED' | 'TEXT_LINK'\nexport type GreyScaleColors =\n | keyof typeof greyScale\n | 'BACKGROUND'\n | 'COLUMN'\n | 'BASE_GREY'\n | 'OVER_BACKGROUND'\n | 'HEAD'\n | 'BORDER'\n | 'ACTION_BACKGROUND'\n\nconst BLACK = '#030302' // hwb(56, 17, 1)\nconst greyScale = {\n GREY_5: '#f8f7f6', // hwb(31, 1, 97)\n GREY_6: '#f5f4f3', // hwb(31, 1, 96)\n GREY_7: '#f2f1f0', // hwb(31, 1, 95)\n GREY_9: '#edebe8', // hwb(31, 2, 92)\n GREY_20: '#d6d3d0', // hwb(33, 3, 84)\n GREY_30: '#c1bdb7', // hwb(36, 5, 76)\n GREY_65: '#706d65', // hwb(44, 10, 44)\n GREY_100: '#23221e', // hwb(52, 15, 14)\n}\nconst transparencyScale = {\n TRANSPARENCY_15: rgba(BLACK, 0.15),\n TRANSPARENCY_30: rgba(BLACK, 0.3),\n TRANSPARENCY_50: rgba(BLACK, 0.5),\n}\nconst primitiveTokens = {\n WHITE: '#fff',\n BLUE_100: '#0077c7',\n BLUE_101: '#0071c1',\n GREEN_100: '#0f7f85',\n ORANGE_100: '#f56121',\n RED_100: '#e01e5a',\n YELLOW_100: '#ffcc17',\n SMARTHR_BLUE: '#00c4cc',\n}\n\nconst semanticTokens = {\n TEXT_BLACK: greyScale.GREY_100,\n TEXT_WHITE: primitiveTokens.WHITE,\n TEXT_GREY: greyScale.GREY_65,\n TEXT_DISABLED: greyScale.GREY_30,\n TEXT_LINK: primitiveTokens.BLUE_101,\n WHITE: primitiveTokens.WHITE,\n BACKGROUND: greyScale.GREY_5,\n COLUMN: greyScale.GREY_5,\n BASE_GREY: greyScale.GREY_6,\n OVER_BACKGROUND: greyScale.GREY_7,\n HEAD: greyScale.GREY_9,\n BORDER: greyScale.GREY_20,\n ACTION_BACKGROUND: greyScale.GREY_20,\n MAIN: primitiveTokens.BLUE_100,\n OUTLINE: primitiveTokens.BLUE_100,\n DANGER: primitiveTokens.RED_100,\n WARNING_YELLOW: primitiveTokens.YELLOW_100,\n OVERLAY: transparencyScale.TRANSPARENCY_15,\n SCRIM: transparencyScale.TRANSPARENCY_50,\n BRAND: primitiveTokens.SMARTHR_BLUE,\n}\n\nexport const defaultColor = { ...semanticTokens, ...greyScale, ...transparencyScale }\n\ntype Palette = typeof defaultColor\nexport type ColorProperty = Partial<Palette>\nexport type CreatedColorTheme = Palette & {\n hoverColor: (value: string) => string\n disableColor: (value: string) => string\n}\n\nexport const createColor = (userColor?: ColorProperty): CreatedColorTheme => {\n const colors = {\n ...defaultColor,\n hoverColor: (value: string): string => darken(0.05, value),\n disableColor: (value: string): string => rgba(value, 0.5),\n }\n\n if (!userColor) {\n return colors\n }\n\n return merge(\n colors,\n userColor,\n !userColor.OUTLINE && userColor.MAIN ? { OUTLINE: transparentize(0.5, userColor.MAIN) } : null,\n )\n}\n"],"names":["darken","transparentize"],"mappings":";;;AAeA,MAAM,KAAK,GAAG,SAAS,CAAA;AACvB,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,SAAS;CACpB;AACD,MAAM,iBAAiB,GAAG;AACxB,IAAA,eAAe,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC;AAClC,IAAA,eAAe,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC;AACjC,IAAA,eAAe,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC;CAClC;AACD,MAAM,eAAe,GAAG;AACtB,IAAA,KAAK,EAAE,MAAM;AACb,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,QAAQ,EAAE,SAAS;AACnB,I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AA,OAAO,MAAM;IACf;AAEA,IAAA,OAAO,KAAK,CACV,MAAM,EACN,SAAS,EACT,CAAC,SAAS,CAAC,OAAO,IAAI,SAAS,CAAC,IAAI,GAAG,EAAE,OAAO,EAAEC,uBAAc,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI,CAC/F;AACH;;;;"}
1
+ {"version":3,"file":"createColor.js","sources":["../../src/themes/createColor.ts"],"sourcesContent":["import { darken, rgba, transparentize } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nexport type TextColors = 'TEXT_BLACK' | 'TEXT_WHITE' | 'TEXT_GREY' | 'TEXT_DISABLED' | 'TEXT_LINK'\nexport type GreyScaleColors =\n | keyof typeof greyScale\n | 'BACKGROUND'\n | 'COLUMN'\n | 'BASE_GREY'\n | 'OVER_BACKGROUND'\n | 'HEAD'\n | 'BORDER'\n | 'ACTION_BACKGROUND'\n\nconst BLACK = '#030302' // hwb(56, 17, 1)\nconst greyScale = {\n GREY_5: '#f8f7f6', // hwb(31, 1, 97)\n GREY_6: '#f5f4f3', // hwb(31, 1, 96)\n GREY_7: '#f2f1f0', // hwb(31, 1, 95)\n GREY_9: '#edebe8', // hwb(31, 2, 92)\n GREY_20: '#d6d3d0', // hwb(33, 3, 84)\n GREY_30: '#c1bdb7', // hwb(36, 5, 76)\n GREY_65: '#706d65', // hwb(44, 10, 44)\n GREY_100: '#23221e', // hwb(52, 15, 14)\n}\nconst transparencyScale = {\n TRANSPARENCY_15: rgba(BLACK, 0.15),\n TRANSPARENCY_30: rgba(BLACK, 0.3),\n TRANSPARENCY_50: rgba(BLACK, 0.5),\n}\nconst primitiveTokens = {\n WHITE: '#fff',\n BLUE_100: '#0077c7',\n BLUE_101: '#0071c1',\n GREEN_100: '#0f7f85',\n ORANGE_100: '#f56121',\n RED_100: '#e01e5a',\n YELLOW_100: '#ffcc17',\n SMARTHR_BLUE: '#00c4cc',\n}\n\nconst semanticTokens = {\n TEXT_BLACK: greyScale.GREY_100,\n TEXT_WHITE: primitiveTokens.WHITE,\n TEXT_GREY: greyScale.GREY_65,\n TEXT_DISABLED: greyScale.GREY_30,\n TEXT_LINK: primitiveTokens.BLUE_101,\n WHITE: primitiveTokens.WHITE,\n BACKGROUND: greyScale.GREY_5,\n COLUMN: greyScale.GREY_5,\n BASE_GREY: greyScale.GREY_6,\n OVER_BACKGROUND: greyScale.GREY_7,\n HEAD: greyScale.GREY_9,\n BORDER: greyScale.GREY_20,\n ACTION_BACKGROUND: greyScale.GREY_20,\n MAIN: primitiveTokens.BLUE_100,\n OUTLINE: primitiveTokens.BLUE_100,\n DANGER: primitiveTokens.RED_100,\n WARNING_YELLOW: primitiveTokens.YELLOW_100,\n OVERLAY: transparencyScale.TRANSPARENCY_15,\n SCRIM: transparencyScale.TRANSPARENCY_50,\n BRAND: primitiveTokens.SMARTHR_BLUE,\n}\n\nexport const defaultColor = { ...semanticTokens, ...greyScale, ...transparencyScale }\n\ntype Palette = typeof defaultColor\nexport type ColorProperty = Partial<Palette>\nexport type CreatedColorTheme = Palette & {\n hoverColor: (value: string) => string\n disableColor: (value: string) => string\n}\n\nexport const createColor = (userColor?: ColorProperty): CreatedColorTheme => {\n const colors = {\n ...defaultColor,\n hoverColor: (value: string): string => darken(0.05, value),\n disableColor: (value: string): string => rgba(value, 0.5),\n }\n\n if (!userColor) {\n return colors\n }\n\n return merge(\n colors,\n userColor,\n !userColor.OUTLINE && userColor.MAIN ? { OUTLINE: transparentize(0.5, userColor.MAIN) } : null,\n )\n}\n"],"names":["darken","transparentize"],"mappings":";;;;AAeA,MAAM,KAAK,GAAG,SAAS,CAAA;AACvB,MAAM,SAAS,GAAG;IAChB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,SAAS;CAC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AG,cAAc,EAAE,GAAG,SAAS,EAAE,GAAG,iBAAiB;AAS5E,MAAM,WAAW,GAAG,CAAC,SAAyB,KAAuB;AAC1E,IAAA,MAAM,MAAM,GAAG;AACb,QAAA,GAAG,YAAY;QACf,UAAU,EAAE,CAAC,KAAa,KAAaA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC;QAC1D,YAAY,EAAE,CAAC,KAAa,KAAa,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC;KAC1D;IAED,IAAI,CAAC,SAAS,EAAE;AACd,QAAA,OAAO,MAAM;IACf;AAEA,IAAA,OAAO,KAAK,CACV,MAAM,EACN,SAAS,EACT,CAAC,SAAS,CAAC,OAAO,IAAI,SAAS,CAAC,IAAI,GAAG,EAAE,OAAO,EAAEC,uBAAc,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI,CAC/F;AACH;;;;"}
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var libs_lodash = require('../libs/lodash.cjs');
3
+ var index = require('../_virtual/index.cjs');
4
+ require('../_virtual/index2.cjs');
4
5
 
5
6
  const defaultHtmlFontSize = 16;
6
7
  const defaultScaleFactor = 6;
@@ -22,7 +23,7 @@ const createFontSize = (userFontSize) => {
22
23
  return defaultFontSize;
23
24
  }
24
25
  const { scaleFactor, ...rest } = userFontSize;
25
- return libs_lodash.merge({
26
+ return index({
26
27
  ...defaultFontSize,
27
28
  }, scaleFactor ? getSizes(scaleFactor) : {}, rest);
28
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"createFontSize.cjs","sources":["../../src/themes/createFontSize.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport const defaultHtmlFontSize = 16\nconst defaultScaleFactor = 6\n\nexport type FontSizeProperty = {\n scaleFactor?: number\n XXS?: string\n XS?: string\n S?: string\n M?: string\n L?: string\n XL?: string\n XXL?: string\n}\n\nexport type CreatedFontSizeTheme = {\n XXS: string\n XS: string\n S: string\n M: string\n L: string\n XL: string\n XXL: string\n}\n\n// smarthr-design-systemでdeep importされています:\n// import type { FontSizes } from 'smarthr-ui/lib/themes/createFontSize'\nexport type FontSizes = 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL'\n\nconst getFontSize = (scaleFactor: number, diff: number = 0) =>\n // calc(1rem * scaleFactor / (scaleFactor + diff))\n `${scaleFactor / (scaleFactor + diff)}rem`\nconst getSizes = (scaleFactor: number) => ({\n XXS: getFontSize(scaleFactor, 3),\n XS: getFontSize(scaleFactor, 2),\n S: getFontSize(scaleFactor, 1),\n M: getFontSize(scaleFactor),\n L: getFontSize(scaleFactor, -1),\n XL: getFontSize(scaleFactor, -2),\n XXL: getFontSize(scaleFactor, -3),\n})\n\nexport const defaultFontSize: CreatedFontSizeTheme = getSizes(defaultScaleFactor)\n\nexport const createFontSize = (userFontSize?: FontSizeProperty): CreatedFontSizeTheme => {\n if (!userFontSize) {\n return defaultFontSize\n }\n\n const { scaleFactor, ...rest } = userFontSize\n\n return merge(\n {\n ...defaultFontSize,\n },\n scaleFactor ? getSizes(scaleFactor) : {},\n rest,\n )\n}\n"],"names":["merge"],"mappings":";;;;AAEO,MAAM,mBAAmB,GAAG;AACnC,MAAM,kBAAkB,GAAG,CAAC;AA2B5B,MAAM,WAAW,GAAG,CAAC,WAAmB,EAAE,IAAA,GAAe,CAAC;AACxD;AACA,CAAA,EAAG,WAAW,IAAI,WAAW,GAAG,IAAI,CAAC,KAAK;AAC5C,MAAM,QAAQ,GAAG,CAAC,WAAmB,MAAM;AACzC,IAAA,GAAG,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAChC,IAAA,EAAE,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAC/B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAC9B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC;AAC3B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAC/B,IAAA,EAAE,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAChC,IAAA,GAAG,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAClC,CAAA,CAAC;MAEW,eAAe,GAAyB,QAAQ,CAAC,kBAAkB;AAEzE,MAAM,cAAc,GAAG,CAAC,YAA+B,KAA0B;IACtF,IAAI,CAAC,YAAY,EAAE;AACjB,QAAA,OAAO,eAAe;IACxB;IAEA,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,YAAY;AAE7C,IAAA,OAAOA,iBAAK,CACV;AACE,QAAA,GAAG,eAAe;AACnB,KAAA,EACD,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,EACxC,IAAI,CACL;AACH;;;;;;"}
1
+ {"version":3,"file":"createFontSize.cjs","sources":["../../src/themes/createFontSize.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport const defaultHtmlFontSize = 16\nconst defaultScaleFactor = 6\n\nexport type FontSizeProperty = {\n scaleFactor?: number\n XXS?: string\n XS?: string\n S?: string\n M?: string\n L?: string\n XL?: string\n XXL?: string\n}\n\nexport type CreatedFontSizeTheme = {\n XXS: string\n XS: string\n S: string\n M: string\n L: string\n XL: string\n XXL: string\n}\n\n// smarthr-design-systemでdeep importされています:\n// import type { FontSizes } from 'smarthr-ui/lib/themes/createFontSize'\nexport type FontSizes = 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL'\n\nconst getFontSize = (scaleFactor: number, diff: number = 0) =>\n // calc(1rem * scaleFactor / (scaleFactor + diff))\n `${scaleFactor / (scaleFactor + diff)}rem`\nconst getSizes = (scaleFactor: number) => ({\n XXS: getFontSize(scaleFactor, 3),\n XS: getFontSize(scaleFactor, 2),\n S: getFontSize(scaleFactor, 1),\n M: getFontSize(scaleFactor),\n L: getFontSize(scaleFactor, -1),\n XL: getFontSize(scaleFactor, -2),\n XXL: getFontSize(scaleFactor, -3),\n})\n\nexport const defaultFontSize: CreatedFontSizeTheme = getSizes(defaultScaleFactor)\n\nexport const createFontSize = (userFontSize?: FontSizeProperty): CreatedFontSizeTheme => {\n if (!userFontSize) {\n return defaultFontSize\n }\n\n const { scaleFactor, ...rest } = userFontSize\n\n return merge(\n {\n ...defaultFontSize,\n },\n scaleFactor ? getSizes(scaleFactor) : {},\n rest,\n )\n}\n"],"names":["merge"],"mappings":";;;;;AAEO,MAAM,mBAAmB,GAAG;AACnC,MAAM,kBAAkB,GAAG,CAAC;AA2B5B,MAAM,WAAW,GAAG,CAAC,WAAmB,EAAE,IAAA,GAAe,CAAC;AACxD;AACA,CAAA,EAAG,WAAW,IAAI,WAAW,GAAG,IAAI,CAAC,KAAK;AAC5C,MAAM,QAAQ,GAAG,CAAC,WAAmB,MAAM;AACzC,IAAA,GAAG,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAChC,IAAA,EAAE,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAC/B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAC9B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC;AAC3B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAC/B,IAAA,EAAE,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAChC,IAAA,GAAG,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAClC,CAAA,CAAC;MAEW,eAAe,GAAyB,QAAQ,CAAC,kBAAkB;AAEzE,MAAM,cAAc,GAAG,CAAC,YAA+B,KAA0B;IACtF,IAAI,CAAC,YAAY,EAAE;AACjB,QAAA,OAAO,eAAe;IACxB;IAEA,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,YAAY;AAE7C,IAAA,OAAOA,KAAK,CACV;AACE,QAAA,GAAG,eAAe;AACnB,KAAA,EACD,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,EACxC,IAAI,CACL;AACH;;;;;;"}
@@ -1,4 +1,5 @@
1
- import { merge } from '../libs/lodash.js';
1
+ import merge from '../_virtual/index.js';
2
+ import '../_virtual/index2.js';
2
3
 
3
4
  const defaultHtmlFontSize = 16;
4
5
  const defaultScaleFactor = 6;
@@ -1 +1 @@
1
- {"version":3,"file":"createFontSize.js","sources":["../../src/themes/createFontSize.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport const defaultHtmlFontSize = 16\nconst defaultScaleFactor = 6\n\nexport type FontSizeProperty = {\n scaleFactor?: number\n XXS?: string\n XS?: string\n S?: string\n M?: string\n L?: string\n XL?: string\n XXL?: string\n}\n\nexport type CreatedFontSizeTheme = {\n XXS: string\n XS: string\n S: string\n M: string\n L: string\n XL: string\n XXL: string\n}\n\n// smarthr-design-systemでdeep importされています:\n// import type { FontSizes } from 'smarthr-ui/lib/themes/createFontSize'\nexport type FontSizes = 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL'\n\nconst getFontSize = (scaleFactor: number, diff: number = 0) =>\n // calc(1rem * scaleFactor / (scaleFactor + diff))\n `${scaleFactor / (scaleFactor + diff)}rem`\nconst getSizes = (scaleFactor: number) => ({\n XXS: getFontSize(scaleFactor, 3),\n XS: getFontSize(scaleFactor, 2),\n S: getFontSize(scaleFactor, 1),\n M: getFontSize(scaleFactor),\n L: getFontSize(scaleFactor, -1),\n XL: getFontSize(scaleFactor, -2),\n XXL: getFontSize(scaleFactor, -3),\n})\n\nexport const defaultFontSize: CreatedFontSizeTheme = getSizes(defaultScaleFactor)\n\nexport const createFontSize = (userFontSize?: FontSizeProperty): CreatedFontSizeTheme => {\n if (!userFontSize) {\n return defaultFontSize\n }\n\n const { scaleFactor, ...rest } = userFontSize\n\n return merge(\n {\n ...defaultFontSize,\n },\n scaleFactor ? getSizes(scaleFactor) : {},\n rest,\n )\n}\n"],"names":[],"mappings":";;AAEO,MAAM,mBAAmB,GAAG;AACnC,MAAM,kBAAkB,GAAG,CAAC;AA2B5B,MAAM,WAAW,GAAG,CAAC,WAAmB,EAAE,IAAA,GAAe,CAAC;AACxD;AACA,CAAA,EAAG,WAAW,IAAI,WAAW,GAAG,IAAI,CAAC,KAAK;AAC5C,MAAM,QAAQ,GAAG,CAAC,WAAmB,MAAM;AACzC,IAAA,GAAG,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAChC,IAAA,EAAE,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAC/B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAC9B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC;AAC3B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAC/B,IAAA,EAAE,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAChC,IAAA,GAAG,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAClC,CAAA,CAAC;MAEW,eAAe,GAAyB,QAAQ,CAAC,kBAAkB;AAEzE,MAAM,cAAc,GAAG,CAAC,YAA+B,KAA0B;IACtF,IAAI,CAAC,YAAY,EAAE;AACjB,QAAA,OAAO,eAAe;IACxB;IAEA,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,YAAY;AAE7C,IAAA,OAAO,KAAK,CACV;AACE,QAAA,GAAG,eAAe;AACnB,KAAA,EACD,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,EACxC,IAAI,CACL;AACH;;;;"}
1
+ {"version":3,"file":"createFontSize.js","sources":["../../src/themes/createFontSize.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport const defaultHtmlFontSize = 16\nconst defaultScaleFactor = 6\n\nexport type FontSizeProperty = {\n scaleFactor?: number\n XXS?: string\n XS?: string\n S?: string\n M?: string\n L?: string\n XL?: string\n XXL?: string\n}\n\nexport type CreatedFontSizeTheme = {\n XXS: string\n XS: string\n S: string\n M: string\n L: string\n XL: string\n XXL: string\n}\n\n// smarthr-design-systemでdeep importされています:\n// import type { FontSizes } from 'smarthr-ui/lib/themes/createFontSize'\nexport type FontSizes = 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL'\n\nconst getFontSize = (scaleFactor: number, diff: number = 0) =>\n // calc(1rem * scaleFactor / (scaleFactor + diff))\n `${scaleFactor / (scaleFactor + diff)}rem`\nconst getSizes = (scaleFactor: number) => ({\n XXS: getFontSize(scaleFactor, 3),\n XS: getFontSize(scaleFactor, 2),\n S: getFontSize(scaleFactor, 1),\n M: getFontSize(scaleFactor),\n L: getFontSize(scaleFactor, -1),\n XL: getFontSize(scaleFactor, -2),\n XXL: getFontSize(scaleFactor, -3),\n})\n\nexport const defaultFontSize: CreatedFontSizeTheme = getSizes(defaultScaleFactor)\n\nexport const createFontSize = (userFontSize?: FontSizeProperty): CreatedFontSizeTheme => {\n if (!userFontSize) {\n return defaultFontSize\n }\n\n const { scaleFactor, ...rest } = userFontSize\n\n return merge(\n {\n ...defaultFontSize,\n },\n scaleFactor ? getSizes(scaleFactor) : {},\n rest,\n )\n}\n"],"names":[],"mappings":";;;AAEO,MAAM,mBAAmB,GAAG;AACnC,MAAM,kBAAkB,GAAG,CAAC;AA2B5B,MAAM,WAAW,GAAG,CAAC,WAAmB,EAAE,IAAA,GAAe,CAAC;AACxD;AACA,CAAA,EAAG,WAAW,IAAI,WAAW,GAAG,IAAI,CAAC,KAAK;AAC5C,MAAM,QAAQ,GAAG,CAAC,WAAmB,MAAM;AACzC,IAAA,GAAG,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAChC,IAAA,EAAE,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAC/B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC;AAC9B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC;AAC3B,IAAA,CAAC,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAC/B,IAAA,EAAE,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAChC,IAAA,GAAG,EAAE,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;AAClC,CAAA,CAAC;MAEW,eAAe,GAAyB,QAAQ,CAAC,kBAAkB;AAEzE,MAAM,cAAc,GAAG,CAAC,YAA+B,KAA0B;IACtF,IAAI,CAAC,YAAY,EAAE;AACjB,QAAA,OAAO,eAAe;IACxB;IAEA,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,YAAY;AAE7C,IAAA,OAAO,KAAK,CACV;AACE,QAAA,GAAG,eAAe;AACnB,KAAA,EACD,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,EAAE,EACxC,IAAI,CACL;AACH;;;;"}
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var libs_lodash = require('../libs/lodash.cjs');
3
+ var index = require('../_virtual/index.cjs');
4
+ require('../_virtual/index2.cjs');
4
5
 
5
6
  const hoverAnimationDuration = '.3s';
6
7
  const hoverAnimationTiming = 'ease-out';
@@ -16,7 +17,7 @@ const createInteraction = (userInteraction) => {
16
17
  if (!userInteraction) {
17
18
  return defaultInteraction;
18
19
  }
19
- return libs_lodash.merge({
20
+ return index({
20
21
  ...defaultInteraction,
21
22
  }, userInteraction);
22
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"createInteraction.cjs","sources":["../../src/themes/createInteraction.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nconst hoverAnimationDuration = '.3s'\nconst hoverAnimationTiming = 'ease-out'\n\nexport type InteractionProperty = {\n hover?: {\n feedbackOpacity?: string\n animationDuration?: string\n animationTiming?: string\n animation?: string\n }\n}\n\nexport type CreatedInteractionTheme = {\n hover: {\n feedbackOpacity: string\n animationDuration: string\n animationTiming: string\n animation: string\n }\n}\n\nexport const defaultInteraction: CreatedInteractionTheme = {\n hover: {\n feedbackOpacity: '.7',\n animationDuration: hoverAnimationDuration,\n animationTiming: hoverAnimationTiming,\n animation: `${hoverAnimationDuration} ${hoverAnimationTiming}`,\n },\n}\n\nexport const createInteraction = (\n userInteraction?: InteractionProperty,\n): CreatedInteractionTheme => {\n if (!userInteraction) {\n return defaultInteraction\n }\n\n return merge(\n {\n ...defaultInteraction,\n },\n userInteraction,\n )\n}\n"],"names":["merge"],"mappings":";;;;AAEA,MAAM,sBAAsB,GAAG,KAAK;AACpC,MAAM,oBAAoB,GAAG,UAAU;AAoBhC,MAAM,kBAAkB,GAA4B;AACzD,IAAA,KAAK,EAAE;AACL,QAAA,eAAe,EAAE,IAAI;AACrB,QAAA,iBAAiB,EAAE,sBAAsB;AACzC,QAAA,eAAe,EAAE,oBAAoB;AACrC,QAAA,SAAS,EAAE,CAAA,EAAG,sBAAsB,CAAA,CAAA,EAAI,oBAAoB,CAAA,CAAE;AAC/D,KAAA;;AAGI,MAAM,iBAAiB,GAAG,CAC/B,eAAqC,KACV;IAC3B,IAAI,CAAC,eAAe,EAAE;AACpB,QAAA,OAAO,kBAAkB;IAC3B;AAEA,IAAA,OAAOA,iBAAK,CACV;AACE,QAAA,GAAG,kBAAkB;KACtB,EACD,eAAe,CAChB;AACH;;;;;"}
1
+ {"version":3,"file":"createInteraction.cjs","sources":["../../src/themes/createInteraction.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nconst hoverAnimationDuration = '.3s'\nconst hoverAnimationTiming = 'ease-out'\n\nexport type InteractionProperty = {\n hover?: {\n feedbackOpacity?: string\n animationDuration?: string\n animationTiming?: string\n animation?: string\n }\n}\n\nexport type CreatedInteractionTheme = {\n hover: {\n feedbackOpacity: string\n animationDuration: string\n animationTiming: string\n animation: string\n }\n}\n\nexport const defaultInteraction: CreatedInteractionTheme = {\n hover: {\n feedbackOpacity: '.7',\n animationDuration: hoverAnimationDuration,\n animationTiming: hoverAnimationTiming,\n animation: `${hoverAnimationDuration} ${hoverAnimationTiming}`,\n },\n}\n\nexport const createInteraction = (\n userInteraction?: InteractionProperty,\n): CreatedInteractionTheme => {\n if (!userInteraction) {\n return defaultInteraction\n }\n\n return merge(\n {\n ...defaultInteraction,\n },\n userInteraction,\n )\n}\n"],"names":["merge"],"mappings":";;;;;AAEA,MAAM,sBAAsB,GAAG,KAAK;AACpC,MAAM,oBAAoB,GAAG,UAAU;AAoBhC,MAAM,kBAAkB,GAA4B;AACzD,IAAA,KAAK,EAAE;AACL,QAAA,eAAe,EAAE,IAAI;AACrB,QAAA,iBAAiB,EAAE,sBAAsB;AACzC,QAAA,eAAe,EAAE,oBAAoB;AACrC,QAAA,SAAS,EAAE,CAAA,EAAG,sBAAsB,CAAA,CAAA,EAAI,oBAAoB,CAAA,CAAE;AAC/D,KAAA;;AAGI,MAAM,iBAAiB,GAAG,CAC/B,eAAqC,KACV;IAC3B,IAAI,CAAC,eAAe,EAAE;AACpB,QAAA,OAAO,kBAAkB;IAC3B;AAEA,IAAA,OAAOA,KAAK,CACV;AACE,QAAA,GAAG,kBAAkB;KACtB,EACD,eAAe,CAChB;AACH;;;;;"}
@@ -1,4 +1,5 @@
1
- import { merge } from '../libs/lodash.js';
1
+ import merge from '../_virtual/index.js';
2
+ import '../_virtual/index2.js';
2
3
 
3
4
  const hoverAnimationDuration = '.3s';
4
5
  const hoverAnimationTiming = 'ease-out';
@@ -1 +1 @@
1
- {"version":3,"file":"createInteraction.js","sources":["../../src/themes/createInteraction.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nconst hoverAnimationDuration = '.3s'\nconst hoverAnimationTiming = 'ease-out'\n\nexport type InteractionProperty = {\n hover?: {\n feedbackOpacity?: string\n animationDuration?: string\n animationTiming?: string\n animation?: string\n }\n}\n\nexport type CreatedInteractionTheme = {\n hover: {\n feedbackOpacity: string\n animationDuration: string\n animationTiming: string\n animation: string\n }\n}\n\nexport const defaultInteraction: CreatedInteractionTheme = {\n hover: {\n feedbackOpacity: '.7',\n animationDuration: hoverAnimationDuration,\n animationTiming: hoverAnimationTiming,\n animation: `${hoverAnimationDuration} ${hoverAnimationTiming}`,\n },\n}\n\nexport const createInteraction = (\n userInteraction?: InteractionProperty,\n): CreatedInteractionTheme => {\n if (!userInteraction) {\n return defaultInteraction\n }\n\n return merge(\n {\n ...defaultInteraction,\n },\n userInteraction,\n )\n}\n"],"names":[],"mappings":";;AAEA,MAAM,sBAAsB,GAAG,KAAK;AACpC,MAAM,oBAAoB,GAAG,UAAU;AAoBhC,MAAM,kBAAkB,GAA4B;AACzD,IAAA,KAAK,EAAE;AACL,QAAA,eAAe,EAAE,IAAI;AACrB,QAAA,iBAAiB,EAAE,sBAAsB;AACzC,QAAA,eAAe,EAAE,oBAAoB;AACrC,QAAA,SAAS,EAAE,CAAA,EAAG,sBAAsB,CAAA,CAAA,EAAI,oBAAoB,CAAA,CAAE;AAC/D,KAAA;;AAGI,MAAM,iBAAiB,GAAG,CAC/B,eAAqC,KACV;IAC3B,IAAI,CAAC,eAAe,EAAE;AACpB,QAAA,OAAO,kBAAkB;IAC3B;AAEA,IAAA,OAAO,KAAK,CACV;AACE,QAAA,GAAG,kBAAkB;KACtB,EACD,eAAe,CAChB;AACH;;;;"}
1
+ {"version":3,"file":"createInteraction.js","sources":["../../src/themes/createInteraction.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nconst hoverAnimationDuration = '.3s'\nconst hoverAnimationTiming = 'ease-out'\n\nexport type InteractionProperty = {\n hover?: {\n feedbackOpacity?: string\n animationDuration?: string\n animationTiming?: string\n animation?: string\n }\n}\n\nexport type CreatedInteractionTheme = {\n hover: {\n feedbackOpacity: string\n animationDuration: string\n animationTiming: string\n animation: string\n }\n}\n\nexport const defaultInteraction: CreatedInteractionTheme = {\n hover: {\n feedbackOpacity: '.7',\n animationDuration: hoverAnimationDuration,\n animationTiming: hoverAnimationTiming,\n animation: `${hoverAnimationDuration} ${hoverAnimationTiming}`,\n },\n}\n\nexport const createInteraction = (\n userInteraction?: InteractionProperty,\n): CreatedInteractionTheme => {\n if (!userInteraction) {\n return defaultInteraction\n }\n\n return merge(\n {\n ...defaultInteraction,\n },\n userInteraction,\n )\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG,KAAK;AACpC,MAAM,oBAAoB,GAAG,UAAU;AAoBhC,MAAM,kBAAkB,GAA4B;AACzD,IAAA,KAAK,EAAE;AACL,QAAA,eAAe,EAAE,IAAI;AACrB,QAAA,iBAAiB,EAAE,sBAAsB;AACzC,QAAA,eAAe,EAAE,oBAAoB;AACrC,QAAA,SAAS,EAAE,CAAA,EAAG,sBAAsB,CAAA,CAAA,EAAI,oBAAoB,CAAA,CAAE;AAC/D,KAAA;;AAGI,MAAM,iBAAiB,GAAG,CAC/B,eAAqC,KACV;IAC3B,IAAI,CAAC,eAAe,EAAE;AACpB,QAAA,OAAO,kBAAkB;IAC3B;AAEA,IAAA,OAAO,KAAK,CACV;AACE,QAAA,GAAG,kBAAkB;KACtB,EACD,eAAe,CAChB;AACH;;;;"}
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var libs_lodash = require('../libs/lodash.cjs');
3
+ var index = require('../_virtual/index.cjs');
4
+ require('../_virtual/index2.cjs');
4
5
 
5
6
  const defaultLeading = {
6
7
  NONE: 1,
@@ -12,7 +13,7 @@ const createLeading = (userLeading) => {
12
13
  if (!userLeading) {
13
14
  return defaultLeading;
14
15
  }
15
- return libs_lodash.merge({ ...defaultLeading }, userLeading);
16
+ return index({ ...defaultLeading }, userLeading);
16
17
  };
17
18
 
18
19
  exports.createLeading = createLeading;
@@ -1 +1 @@
1
- {"version":3,"file":"createLeading.cjs","sources":["../../src/themes/createLeading.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\ntype Leading = {\n NONE: number\n TIGHT: number\n NORMAL: number\n RELAXED: number\n}\n\nexport type LeadingProperty = Partial<Omit<Leading, 'NONE'>>\nexport type CreatedLeading = Leading\n\nexport type Leadings = keyof Leading\n\nexport const defaultLeading: CreatedLeading = {\n NONE: 1,\n TIGHT: 1.25,\n NORMAL: 1.5,\n RELAXED: 1.75,\n}\n\nexport const createLeading = (userLeading?: LeadingProperty): CreatedLeading => {\n if (!userLeading) {\n return defaultLeading\n }\n\n return merge({ ...defaultLeading }, userLeading)\n}\n"],"names":["merge"],"mappings":";;;;AAcO,MAAM,cAAc,GAAmB;AAC5C,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,GAAG;AACX,IAAA,OAAO,EAAE,IAAI;;AAGR,MAAM,aAAa,GAAG,CAAC,WAA6B,KAAoB;IAC7E,IAAI,CAAC,WAAW,EAAE;AAChB,QAAA,OAAO,cAAc;IACvB;IAEA,OAAOA,iBAAK,CAAC,EAAE,GAAG,cAAc,EAAE,EAAE,WAAW,CAAC;AAClD;;;;;"}
1
+ {"version":3,"file":"createLeading.cjs","sources":["../../src/themes/createLeading.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\ntype Leading = {\n NONE: number\n TIGHT: number\n NORMAL: number\n RELAXED: number\n}\n\nexport type LeadingProperty = Partial<Omit<Leading, 'NONE'>>\nexport type CreatedLeading = Leading\n\nexport type Leadings = keyof Leading\n\nexport const defaultLeading: CreatedLeading = {\n NONE: 1,\n TIGHT: 1.25,\n NORMAL: 1.5,\n RELAXED: 1.75,\n}\n\nexport const createLeading = (userLeading?: LeadingProperty): CreatedLeading => {\n if (!userLeading) {\n return defaultLeading\n }\n\n return merge({ ...defaultLeading }, userLeading)\n}\n"],"names":["merge"],"mappings":";;;;;AAcO,MAAM,cAAc,GAAmB;AAC5C,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,GAAG;AACX,IAAA,OAAO,EAAE,IAAI;;AAGR,MAAM,aAAa,GAAG,CAAC,WAA6B,KAAoB;IAC7E,IAAI,CAAC,WAAW,EAAE;AAChB,QAAA,OAAO,cAAc;IACvB;IAEA,OAAOA,KAAK,CAAC,EAAE,GAAG,cAAc,EAAE,EAAE,WAAW,CAAC;AAClD;;;;;"}
@@ -1,4 +1,5 @@
1
- import { merge } from '../libs/lodash.js';
1
+ import merge from '../_virtual/index.js';
2
+ import '../_virtual/index2.js';
2
3
 
3
4
  const defaultLeading = {
4
5
  NONE: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"createLeading.js","sources":["../../src/themes/createLeading.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\ntype Leading = {\n NONE: number\n TIGHT: number\n NORMAL: number\n RELAXED: number\n}\n\nexport type LeadingProperty = Partial<Omit<Leading, 'NONE'>>\nexport type CreatedLeading = Leading\n\nexport type Leadings = keyof Leading\n\nexport const defaultLeading: CreatedLeading = {\n NONE: 1,\n TIGHT: 1.25,\n NORMAL: 1.5,\n RELAXED: 1.75,\n}\n\nexport const createLeading = (userLeading?: LeadingProperty): CreatedLeading => {\n if (!userLeading) {\n return defaultLeading\n }\n\n return merge({ ...defaultLeading }, userLeading)\n}\n"],"names":[],"mappings":";;AAcO,MAAM,cAAc,GAAmB;AAC5C,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,GAAG;AACX,IAAA,OAAO,EAAE,IAAI;;AAGR,MAAM,aAAa,GAAG,CAAC,WAA6B,KAAoB;IAC7E,IAAI,CAAC,WAAW,EAAE;AAChB,QAAA,OAAO,cAAc;IACvB;IAEA,OAAO,KAAK,CAAC,EAAE,GAAG,cAAc,EAAE,EAAE,WAAW,CAAC;AAClD;;;;"}
1
+ {"version":3,"file":"createLeading.js","sources":["../../src/themes/createLeading.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\ntype Leading = {\n NONE: number\n TIGHT: number\n NORMAL: number\n RELAXED: number\n}\n\nexport type LeadingProperty = Partial<Omit<Leading, 'NONE'>>\nexport type CreatedLeading = Leading\n\nexport type Leadings = keyof Leading\n\nexport const defaultLeading: CreatedLeading = {\n NONE: 1,\n TIGHT: 1.25,\n NORMAL: 1.5,\n RELAXED: 1.75,\n}\n\nexport const createLeading = (userLeading?: LeadingProperty): CreatedLeading => {\n if (!userLeading) {\n return defaultLeading\n }\n\n return merge({ ...defaultLeading }, userLeading)\n}\n"],"names":[],"mappings":";;;AAcO,MAAM,cAAc,GAAmB;AAC5C,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,GAAG;AACX,IAAA,OAAO,EAAE,IAAI;;AAGR,MAAM,aAAa,GAAG,CAAC,WAA6B,KAAoB;IAC7E,IAAI,CAAC,WAAW,EAAE;AAChB,QAAA,OAAO,cAAc;IACvB;IAEA,OAAO,KAAK,CAAC,EAAE,GAAG,cAAc,EAAE,EAAE,WAAW,CAAC;AAClD;;;;"}
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var libs_lodash = require('../libs/lodash.cjs');
3
+ var index = require('../_virtual/index.cjs');
4
+ require('../_virtual/index2.cjs');
4
5
 
5
6
  const defaultRadius = {
6
7
  s: '4px',
@@ -12,7 +13,7 @@ const createRadius = (userRadius) => {
12
13
  if (!userRadius) {
13
14
  return defaultRadius;
14
15
  }
15
- return libs_lodash.merge({ ...defaultRadius }, userRadius);
16
+ return index({ ...defaultRadius }, userRadius);
16
17
  };
17
18
 
18
19
  exports.createRadius = createRadius;
@@ -1 +1 @@
1
- {"version":3,"file":"createRadius.cjs","sources":["../../src/themes/createRadius.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport type RadiusProperty = {\n s?: string\n m?: string\n l?: string\n full?: string\n}\n\nexport type CreatedRadiusTheme = {\n s: string\n m: string\n l: string\n full: string\n}\n\nexport const defaultRadius: CreatedRadiusTheme = {\n s: '4px',\n m: '6px',\n l: '8px',\n full: '10000px',\n}\n\nexport const createRadius = (userRadius?: RadiusProperty): CreatedRadiusTheme => {\n if (!userRadius) {\n return defaultRadius\n }\n\n return merge({ ...defaultRadius }, userRadius)\n}\n"],"names":["merge"],"mappings":";;;;AAgBO,MAAM,aAAa,GAAuB;AAC/C,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,IAAI,EAAE,SAAS;;AAGV,MAAM,YAAY,GAAG,CAAC,UAA2B,KAAwB;IAC9E,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,aAAa;IACtB;IAEA,OAAOA,iBAAK,CAAC,EAAE,GAAG,aAAa,EAAE,EAAE,UAAU,CAAC;AAChD;;;;;"}
1
+ {"version":3,"file":"createRadius.cjs","sources":["../../src/themes/createRadius.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport type RadiusProperty = {\n s?: string\n m?: string\n l?: string\n full?: string\n}\n\nexport type CreatedRadiusTheme = {\n s: string\n m: string\n l: string\n full: string\n}\n\nexport const defaultRadius: CreatedRadiusTheme = {\n s: '4px',\n m: '6px',\n l: '8px',\n full: '10000px',\n}\n\nexport const createRadius = (userRadius?: RadiusProperty): CreatedRadiusTheme => {\n if (!userRadius) {\n return defaultRadius\n }\n\n return merge({ ...defaultRadius }, userRadius)\n}\n"],"names":["merge"],"mappings":";;;;;AAgBO,MAAM,aAAa,GAAuB;AAC/C,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,IAAI,EAAE,SAAS;;AAGV,MAAM,YAAY,GAAG,CAAC,UAA2B,KAAwB;IAC9E,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,aAAa;IACtB;IAEA,OAAOA,KAAK,CAAC,EAAE,GAAG,aAAa,EAAE,EAAE,UAAU,CAAC;AAChD;;;;;"}
@@ -1,4 +1,5 @@
1
- import { merge } from '../libs/lodash.js';
1
+ import merge from '../_virtual/index.js';
2
+ import '../_virtual/index2.js';
2
3
 
3
4
  const defaultRadius = {
4
5
  s: '4px',
@@ -1 +1 @@
1
- {"version":3,"file":"createRadius.js","sources":["../../src/themes/createRadius.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport type RadiusProperty = {\n s?: string\n m?: string\n l?: string\n full?: string\n}\n\nexport type CreatedRadiusTheme = {\n s: string\n m: string\n l: string\n full: string\n}\n\nexport const defaultRadius: CreatedRadiusTheme = {\n s: '4px',\n m: '6px',\n l: '8px',\n full: '10000px',\n}\n\nexport const createRadius = (userRadius?: RadiusProperty): CreatedRadiusTheme => {\n if (!userRadius) {\n return defaultRadius\n }\n\n return merge({ ...defaultRadius }, userRadius)\n}\n"],"names":[],"mappings":";;AAgBO,MAAM,aAAa,GAAuB;AAC/C,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,IAAI,EAAE,SAAS;;AAGV,MAAM,YAAY,GAAG,CAAC,UAA2B,KAAwB;IAC9E,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,aAAa;IACtB;IAEA,OAAO,KAAK,CAAC,EAAE,GAAG,aAAa,EAAE,EAAE,UAAU,CAAC;AAChD;;;;"}
1
+ {"version":3,"file":"createRadius.js","sources":["../../src/themes/createRadius.ts"],"sourcesContent":["import { merge } from '../libs/lodash'\n\nexport type RadiusProperty = {\n s?: string\n m?: string\n l?: string\n full?: string\n}\n\nexport type CreatedRadiusTheme = {\n s: string\n m: string\n l: string\n full: string\n}\n\nexport const defaultRadius: CreatedRadiusTheme = {\n s: '4px',\n m: '6px',\n l: '8px',\n full: '10000px',\n}\n\nexport const createRadius = (userRadius?: RadiusProperty): CreatedRadiusTheme => {\n if (!userRadius) {\n return defaultRadius\n }\n\n return merge({ ...defaultRadius }, userRadius)\n}\n"],"names":[],"mappings":";;;AAgBO,MAAM,aAAa,GAAuB;AAC/C,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,CAAC,EAAE,KAAK;AACR,IAAA,IAAI,EAAE,SAAS;;AAGV,MAAM,YAAY,GAAG,CAAC,UAA2B,KAAwB;IAC9E,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,aAAa;IACtB;IAEA,OAAO,KAAK,CAAC,EAAE,GAAG,aAAa,EAAE,EAAE,UAAU,CAAC;AAChD;;;;"}
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var styledComponents = require('styled-components');
4
- var libs_lodash = require('../../libs/lodash.cjs');
4
+ var index = require('../../_virtual/index.cjs');
5
+ require('../../_virtual/index2.cjs');
5
6
  var themes_createColor = require('../createColor.cjs');
6
7
  var themes_createShadow_defaultShadow = require('./defaultShadow.cjs');
7
8
 
@@ -26,7 +27,7 @@ const createShadow = (userShadow, userColor) => {
26
27
  if (!userShadow) {
27
28
  return shadows;
28
29
  }
29
- return libs_lodash.merge(shadows, userShadow);
30
+ return index(shadows, userShadow);
30
31
  };
31
32
 
32
33
  exports.createShadow = createShadow;
@@ -1 +1 @@
1
- {"version":3,"file":"createShadow.cjs","sources":["../../../src/themes/createShadow/createShadow.ts"],"sourcesContent":["import { type FlattenSimpleInterpolation, css } from 'styled-components'\n\nimport { merge } from '../../libs/lodash'\nimport { type ColorProperty, defaultColor } from '../createColor'\n\nimport { defaultShadow } from './defaultShadow'\n\nexport type ShadowProperty = {\n LAYER0?: string\n LAYER1?: string\n LAYER2?: string\n LAYER3?: string\n LAYER4?: string\n OUTLINE?: string\n OUTLINE_MARGIN?: string\n UNDERLINE?: string\n}\n\nexport type CreatedShadowTheme = {\n LAYER0?: string\n LAYER1?: string\n LAYER2?: string\n LAYER3?: string\n LAYER4?: string\n OUTLINE: string\n OUTLINE_MARGIN: string\n UNDERLINE: string\n focusIndicatorStyles: FlattenSimpleInterpolation\n}\n\nconst createOutline = (color: string) => `0 0 0 2px white, 0 0 0 4px ${color}`\n\n// 将来的になんらか別のデザイントークンに移行したい\nconst createFocusIndicatorStyles = (outlineColor: string) => css`\n /* stylelint-disable no-invalid-position-declaration */\n isolation: isolate;\n box-shadow: 0 0 0 2px white;\n outline: 2px solid ${outlineColor};\n outline-offset: 2px;\n /* stylelint-enable no-invalid-position-declaration */\n`\n\nexport const createShadow = (\n userShadow?: ShadowProperty,\n userColor?: ColorProperty,\n): CreatedShadowTheme => {\n const outlineColor = userColor?.OUTLINE || defaultColor.OUTLINE\n const outline = createOutline(outlineColor)\n const shadows = {\n ...defaultShadow,\n OUTLINE: outline,\n focusIndicatorStyles: createFocusIndicatorStyles(outlineColor),\n }\n\n if (!userShadow) {\n return shadows\n }\n\n return merge(shadows, userShadow)\n}\n"],"names":["css","defaultColor","defaultShadow","merge"],"mappings":";;;;;;;AA8BA,MAAM,aAAa,GAAG,CAAC,KAAa,KAAK,CAAA,2BAAA,EAA8B,KAAK,CAAA,CAAE;AAE9E;AACA,MAAM,0BAA0B,GAAG,CAAC,YAAoB,KAAKA,oBAAG,CAAA;;;;uBAIzC,YAAY,CAAA;;;CAGlC;MAEY,YAAY,GAAG,CAC1B,UAA2B,EAC3B,SAAyB,KACH;IACtB,MAAM,YAAY,GAAG,SAAS,EAAE,OAAO,IAAIC,+BAAY,CAAC,OAAO;AAC/D,IAAA,MAAM,OAAO,GAAG,aAAa,CAAC,YAAY,CAAC;AAC3C,IAAA,MAAM,OAAO,GAAG;AACd,QAAA,GAAGC,+CAAa;AAChB,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,oBAAoB,EAAE,0BAA0B,CAAC,YAAY,CAAC;KAC/D;IAED,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,OAAO;IAChB;AAEA,IAAA,OAAOC,iBAAK,CAAC,OAAO,EAAE,UAAU,CAAC;AACnC;;;;"}
1
+ {"version":3,"file":"createShadow.cjs","sources":["../../../src/themes/createShadow/createShadow.ts"],"sourcesContent":["import { type FlattenSimpleInterpolation, css } from 'styled-components'\n\nimport { merge } from '../../libs/lodash'\nimport { type ColorProperty, defaultColor } from '../createColor'\n\nimport { defaultShadow } from './defaultShadow'\n\nexport type ShadowProperty = {\n LAYER0?: string\n LAYER1?: string\n LAYER2?: string\n LAYER3?: string\n LAYER4?: string\n OUTLINE?: string\n OUTLINE_MARGIN?: string\n UNDERLINE?: string\n}\n\nexport type CreatedShadowTheme = {\n LAYER0?: string\n LAYER1?: string\n LAYER2?: string\n LAYER3?: string\n LAYER4?: string\n OUTLINE: string\n OUTLINE_MARGIN: string\n UNDERLINE: string\n focusIndicatorStyles: FlattenSimpleInterpolation\n}\n\nconst createOutline = (color: string) => `0 0 0 2px white, 0 0 0 4px ${color}`\n\n// 将来的になんらか別のデザイントークンに移行したい\nconst createFocusIndicatorStyles = (outlineColor: string) => css`\n /* stylelint-disable no-invalid-position-declaration */\n isolation: isolate;\n box-shadow: 0 0 0 2px white;\n outline: 2px solid ${outlineColor};\n outline-offset: 2px;\n /* stylelint-enable no-invalid-position-declaration */\n`\n\nexport const createShadow = (\n userShadow?: ShadowProperty,\n userColor?: ColorProperty,\n): CreatedShadowTheme => {\n const outlineColor = userColor?.OUTLINE || defaultColor.OUTLINE\n const outline = createOutline(outlineColor)\n const shadows = {\n ...defaultShadow,\n OUTLINE: outline,\n focusIndicatorStyles: createFocusIndicatorStyles(outlineColor),\n }\n\n if (!userShadow) {\n return shadows\n }\n\n return merge(shadows, userShadow)\n}\n"],"names":["css","defaultColor","defaultShadow","merge"],"mappings":";;;;;;;;AA8BA,MAAM,aAAa,GAAG,CAAC,KAAa,KAAK,CAAA,2BAAA,EAA8B,KAAK,CAAA,CAAE;AAE9E;AACA,MAAM,0BAA0B,GAAG,CAAC,YAAoB,KAAKA,oBAAG,CAAA;;;;uBAIzC,YAAY,CAAA;;;CAGlC;MAEY,YAAY,GAAG,CAC1B,UAA2B,EAC3B,SAAyB,KACH;IACtB,MAAM,YAAY,GAAG,SAAS,EAAE,OAAO,IAAIC,+BAAY,CAAC,OAAO;AAC/D,IAAA,MAAM,OAAO,GAAG,aAAa,CAAC,YAAY,CAAC;AAC3C,IAAA,MAAM,OAAO,GAAG;AACd,QAAA,GAAGC,+CAAa;AAChB,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,oBAAoB,EAAE,0BAA0B,CAAC,YAAY,CAAC;KAC/D;IAED,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,OAAO;IAChB;AAEA,IAAA,OAAOC,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC;AACnC;;;;"}
@@ -1,5 +1,6 @@
1
1
  import { css } from 'styled-components';
2
- import { merge } from '../../libs/lodash.js';
2
+ import merge from '../../_virtual/index.js';
3
+ import '../../_virtual/index2.js';
3
4
  import { defaultColor } from '../createColor.js';
4
5
  import { defaultShadow } from './defaultShadow.js';
5
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"createShadow.js","sources":["../../../src/themes/createShadow/createShadow.ts"],"sourcesContent":["import { type FlattenSimpleInterpolation, css } from 'styled-components'\n\nimport { merge } from '../../libs/lodash'\nimport { type ColorProperty, defaultColor } from '../createColor'\n\nimport { defaultShadow } from './defaultShadow'\n\nexport type ShadowProperty = {\n LAYER0?: string\n LAYER1?: string\n LAYER2?: string\n LAYER3?: string\n LAYER4?: string\n OUTLINE?: string\n OUTLINE_MARGIN?: string\n UNDERLINE?: string\n}\n\nexport type CreatedShadowTheme = {\n LAYER0?: string\n LAYER1?: string\n LAYER2?: string\n LAYER3?: string\n LAYER4?: string\n OUTLINE: string\n OUTLINE_MARGIN: string\n UNDERLINE: string\n focusIndicatorStyles: FlattenSimpleInterpolation\n}\n\nconst createOutline = (color: string) => `0 0 0 2px white, 0 0 0 4px ${color}`\n\n// 将来的になんらか別のデザイントークンに移行したい\nconst createFocusIndicatorStyles = (outlineColor: string) => css`\n /* stylelint-disable no-invalid-position-declaration */\n isolation: isolate;\n box-shadow: 0 0 0 2px white;\n outline: 2px solid ${outlineColor};\n outline-offset: 2px;\n /* stylelint-enable no-invalid-position-declaration */\n`\n\nexport const createShadow = (\n userShadow?: ShadowProperty,\n userColor?: ColorProperty,\n): CreatedShadowTheme => {\n const outlineColor = userColor?.OUTLINE || defaultColor.OUTLINE\n const outline = createOutline(outlineColor)\n const shadows = {\n ...defaultShadow,\n OUTLINE: outline,\n focusIndicatorStyles: createFocusIndicatorStyles(outlineColor),\n }\n\n if (!userShadow) {\n return shadows\n }\n\n return merge(shadows, userShadow)\n}\n"],"names":[],"mappings":";;;;;AA8BA,MAAM,aAAa,GAAG,CAAC,KAAa,KAAK,CAAA,2BAAA,EAA8B,KAAK,CAAA,CAAE;AAE9E;AACA,MAAM,0BAA0B,GAAG,CAAC,YAAoB,KAAK,GAAG,CAAA;;;;uBAIzC,YAAY,CAAA;;;CAGlC;MAEY,YAAY,GAAG,CAC1B,UAA2B,EAC3B,SAAyB,KACH;IACtB,MAAM,YAAY,GAAG,SAAS,EAAE,OAAO,IAAI,YAAY,CAAC,OAAO;AAC/D,IAAA,MAAM,OAAO,GAAG,aAAa,CAAC,YAAY,CAAC;AAC3C,IAAA,MAAM,OAAO,GAAG;AACd,QAAA,GAAG,aAAa;AAChB,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,oBAAoB,EAAE,0BAA0B,CAAC,YAAY,CAAC;KAC/D;IAED,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,OAAO;IAChB;AAEA,IAAA,OAAO,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC;AACnC;;;;"}
1
+ {"version":3,"file":"createShadow.js","sources":["../../../src/themes/createShadow/createShadow.ts"],"sourcesContent":["import { type FlattenSimpleInterpolation, css } from 'styled-components'\n\nimport { merge } from '../../libs/lodash'\nimport { type ColorProperty, defaultColor } from '../createColor'\n\nimport { defaultShadow } from './defaultShadow'\n\nexport type ShadowProperty = {\n LAYER0?: string\n LAYER1?: string\n LAYER2?: string\n LAYER3?: string\n LAYER4?: string\n OUTLINE?: string\n OUTLINE_MARGIN?: string\n UNDERLINE?: string\n}\n\nexport type CreatedShadowTheme = {\n LAYER0?: string\n LAYER1?: string\n LAYER2?: string\n LAYER3?: string\n LAYER4?: string\n OUTLINE: string\n OUTLINE_MARGIN: string\n UNDERLINE: string\n focusIndicatorStyles: FlattenSimpleInterpolation\n}\n\nconst createOutline = (color: string) => `0 0 0 2px white, 0 0 0 4px ${color}`\n\n// 将来的になんらか別のデザイントークンに移行したい\nconst createFocusIndicatorStyles = (outlineColor: string) => css`\n /* stylelint-disable no-invalid-position-declaration */\n isolation: isolate;\n box-shadow: 0 0 0 2px white;\n outline: 2px solid ${outlineColor};\n outline-offset: 2px;\n /* stylelint-enable no-invalid-position-declaration */\n`\n\nexport const createShadow = (\n userShadow?: ShadowProperty,\n userColor?: ColorProperty,\n): CreatedShadowTheme => {\n const outlineColor = userColor?.OUTLINE || defaultColor.OUTLINE\n const outline = createOutline(outlineColor)\n const shadows = {\n ...defaultShadow,\n OUTLINE: outline,\n focusIndicatorStyles: createFocusIndicatorStyles(outlineColor),\n }\n\n if (!userShadow) {\n return shadows\n }\n\n return merge(shadows, userShadow)\n}\n"],"names":[],"mappings":";;;;;;AA8BA,MAAM,aAAa,GAAG,CAAC,KAAa,KAAK,CAAA,2BAAA,EAA8B,KAAK,CAAA,CAAE;AAE9E;AACA,MAAM,0BAA0B,GAAG,CAAC,YAAoB,KAAK,GAAG,CAAA;;;;uBAIzC,YAAY,CAAA;;;CAGlC;MAEY,YAAY,GAAG,CAC1B,UAA2B,EAC3B,SAAyB,KACH;IACtB,MAAM,YAAY,GAAG,SAAS,EAAE,OAAO,IAAI,YAAY,CAAC,OAAO;AAC/D,IAAA,MAAM,OAAO,GAAG,aAAa,CAAC,YAAY,CAAC;AAC3C,IAAA,MAAM,OAAO,GAAG;AACd,QAAA,GAAG,aAAa;AAChB,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,oBAAoB,EAAE,0BAA0B,CAAC,YAAY,CAAC;KAC/D;IAED,IAAI,CAAC,UAAU,EAAE;AACf,QAAA,OAAO,OAAO;IAChB;AAEA,IAAA,OAAO,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC;AACnC;;;;"}
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var polished_esm = require('./../vendor/.pnpm/polished@4.3.1/vendor/polished/dist/polished.esm.cjs');
4
- var libs_lodash = require('../libs/lodash.cjs');
4
+ var index = require('../_virtual/index.cjs');
5
+ require('../_virtual/index2.cjs');
5
6
  var themes_createColor = require('./createColor.cjs');
6
7
 
7
8
  const defaultTextColor = {
@@ -25,7 +26,7 @@ const createTextColor = (userColor) => {
25
26
  return defaultTextColor;
26
27
  }
27
28
  // userColorでマージされた色パレットを取得
28
- const color = libs_lodash.merge(themes_createColor.defaultColor, userColor);
29
+ const color = index(themes_createColor.defaultColor, userColor);
29
30
  // 更新された色からテキスト色を再生成
30
31
  return {
31
32
  main: color.MAIN,
@@ -1 +1 @@
1
- {"version":3,"file":"createTextColor.cjs","sources":["../../src/themes/createTextColor.ts"],"sourcesContent":["import { darken } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nexport type CreatedTextColorTheme = {\n main: string\n black: string\n white: string\n 'white-darken': string\n disabled: string\n link: string\n 'link-darken': string\n grey: string\n danger: string\n 'warning-yellow': string\n brand: string\n green: string\n 'color-inherit': 'inherit'\n transparent: 'transparent'\n}\n\nexport const defaultTextColor: CreatedTextColorTheme = {\n main: defaultColor.MAIN,\n black: defaultColor.TEXT_BLACK,\n white: defaultColor.TEXT_WHITE,\n 'white-darken': darken(0.05, defaultColor.TEXT_WHITE),\n disabled: defaultColor.TEXT_DISABLED,\n link: defaultColor.TEXT_LINK,\n 'link-darken': darken(0.062, defaultColor.TEXT_LINK),\n grey: defaultColor.TEXT_GREY,\n danger: defaultColor.DANGER,\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n brand: defaultColor.BRAND,\n green: '#0f7f85',\n 'color-inherit': 'inherit',\n transparent: 'transparent',\n}\n\nexport const createTextColor = (userColor?: ColorProperty): CreatedTextColorTheme => {\n if (!userColor) {\n return defaultTextColor\n }\n\n // userColorでマージされた色パレットを取得\n const color = merge(defaultColor, userColor)\n\n // 更新された色からテキスト色を再生成\n return {\n main: color.MAIN,\n black: color.TEXT_BLACK,\n white: color.TEXT_WHITE,\n 'white-darken': darken(0.05, color.TEXT_WHITE),\n disabled: color.TEXT_DISABLED,\n link: color.TEXT_LINK,\n 'link-darken': darken(0.062, color.TEXT_LINK),\n grey: color.TEXT_GREY,\n danger: color.DANGER,\n 'warning-yellow': color.WARNING_YELLOW,\n brand: color.BRAND,\n green: '#0f7f85',\n 'color-inherit': 'inherit' as const,\n transparent: 'transparent' as const,\n }\n}\n"],"names":["defaultColor","darken","merge"],"mappings":";;;;;;AAuBO,MAAM,gBAAgB,GAA0B;IACrD,IAAI,EAAEA,+BAAY,CAAC,IAAI;IACvB,KAAK,EAAEA,+BAAY,CAAC,UAAU;IAC9B,KAAK,EAAEA,+BAAY,CAAC,UAAU;IAC9B,cAAc,EAAEC,mBAAM,CAAC,IAAI,EAAED,+BAAY,CAAC,UAAU,CAAC;IACrD,QAAQ,EAAEA,+BAAY,CAAC,aAAa;IACpC,IAAI,EAAEA,+BAAY,CAAC,SAAS;IAC5B,aAAa,EAAEC,mBAAM,CAAC,KAAK,EAAED,+BAAY,CAAC,SAAS,CAAC;IACpD,IAAI,EAAEA,+BAAY,CAAC,SAAS;IAC5B,MAAM,EAAEA,+BAAY,CAAC,MAAM;IAC3B,gBAAgB,EAAEA,+BAAY,CAAC,cAAc;IAC7C,KAAK,EAAEA,+BAAY,CAAC,KAAK;AACzB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,eAAe,EAAE,SAAS;AAC1B,IAAA,WAAW,EAAE,aAAa;;AAGrB,MAAM,eAAe,GAAG,CAAC,SAAyB,KAA2B;IAClF,IAAI,CAAC,SAAS,EAAE;AACd,QAAA,OAAO,gBAAgB;IACzB;;IAGA,MAAM,KAAK,GAAGE,iBAAK,CAACF,+BAAY,EAAE,SAAS,CAAC;;IAG5C,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,cAAc,EAAEC,mBAAM,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC;QAC9C,QAAQ,EAAE,KAAK,CAAC,aAAa;QAC7B,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,aAAa,EAAEA,mBAAM,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QAC7C,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,gBAAgB,EAAE,KAAK,CAAC,cAAc;QACtC,KAAK,EAAE,KAAK,CAAC,KAAK;AAClB,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,eAAe,EAAE,SAAkB;AACnC,QAAA,WAAW,EAAE,aAAsB;KACpC;AACH;;;;;"}
1
+ {"version":3,"file":"createTextColor.cjs","sources":["../../src/themes/createTextColor.ts"],"sourcesContent":["import { darken } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nexport type CreatedTextColorTheme = {\n main: string\n black: string\n white: string\n 'white-darken': string\n disabled: string\n link: string\n 'link-darken': string\n grey: string\n danger: string\n 'warning-yellow': string\n brand: string\n green: string\n 'color-inherit': 'inherit'\n transparent: 'transparent'\n}\n\nexport const defaultTextColor: CreatedTextColorTheme = {\n main: defaultColor.MAIN,\n black: defaultColor.TEXT_BLACK,\n white: defaultColor.TEXT_WHITE,\n 'white-darken': darken(0.05, defaultColor.TEXT_WHITE),\n disabled: defaultColor.TEXT_DISABLED,\n link: defaultColor.TEXT_LINK,\n 'link-darken': darken(0.062, defaultColor.TEXT_LINK),\n grey: defaultColor.TEXT_GREY,\n danger: defaultColor.DANGER,\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n brand: defaultColor.BRAND,\n green: '#0f7f85',\n 'color-inherit': 'inherit',\n transparent: 'transparent',\n}\n\nexport const createTextColor = (userColor?: ColorProperty): CreatedTextColorTheme => {\n if (!userColor) {\n return defaultTextColor\n }\n\n // userColorでマージされた色パレットを取得\n const color = merge(defaultColor, userColor)\n\n // 更新された色からテキスト色を再生成\n return {\n main: color.MAIN,\n black: color.TEXT_BLACK,\n white: color.TEXT_WHITE,\n 'white-darken': darken(0.05, color.TEXT_WHITE),\n disabled: color.TEXT_DISABLED,\n link: color.TEXT_LINK,\n 'link-darken': darken(0.062, color.TEXT_LINK),\n grey: color.TEXT_GREY,\n danger: color.DANGER,\n 'warning-yellow': color.WARNING_YELLOW,\n brand: color.BRAND,\n green: '#0f7f85',\n 'color-inherit': 'inherit' as const,\n transparent: 'transparent' as const,\n }\n}\n"],"names":["defaultColor","darken","merge"],"mappings":";;;;;;;AAuBO,MAAM,gBAAgB,GAA0B;IACrD,IAAI,EAAEA,+BAAY,CAAC,IAAI;IACvB,KAAK,EAAEA,+BAAY,CAAC,UAAU;IAC9B,KAAK,EAAEA,+BAAY,CAAC,UAAU;IAC9B,cAAc,EAAEC,mBAAM,CAAC,IAAI,EAAED,+BAAY,CAAC,UAAU,CAAC;IACrD,QAAQ,EAAEA,+BAAY,CAAC,aAAa;IACpC,IAAI,EAAEA,+BAAY,CAAC,SAAS;IAC5B,aAAa,EAAEC,mBAAM,CAAC,KAAK,EAAED,+BAAY,CAAC,SAAS,CAAC;IACpD,IAAI,EAAEA,+BAAY,CAAC,SAAS;IAC5B,MAAM,EAAEA,+BAAY,CAAC,MAAM;IAC3B,gBAAgB,EAAEA,+BAAY,CAAC,cAAc;IAC7C,KAAK,EAAEA,+BAAY,CAAC,KAAK;AACzB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,eAAe,EAAE,SAAS;AAC1B,IAAA,WAAW,EAAE,aAAa;;AAGrB,MAAM,eAAe,GAAG,CAAC,SAAyB,KAA2B;IAClF,IAAI,CAAC,SAAS,EAAE;AACd,QAAA,OAAO,gBAAgB;IACzB;;IAGA,MAAM,KAAK,GAAGE,KAAK,CAACF,+BAAY,EAAE,SAAS,CAAC;;IAG5C,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,cAAc,EAAEC,mBAAM,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC;QAC9C,QAAQ,EAAE,KAAK,CAAC,aAAa;QAC7B,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,aAAa,EAAEA,mBAAM,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QAC7C,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,gBAAgB,EAAE,KAAK,CAAC,cAAc;QACtC,KAAK,EAAE,KAAK,CAAC,KAAK;AAClB,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,eAAe,EAAE,SAAkB;AACnC,QAAA,WAAW,EAAE,aAAsB;KACpC;AACH;;;;;"}
@@ -1,5 +1,6 @@
1
1
  import { darken as curriedDarken$1 } from './../vendor/.pnpm/polished@4.3.1/vendor/polished/dist/polished.esm.js';
2
- import { merge } from '../libs/lodash.js';
2
+ import merge from '../_virtual/index.js';
3
+ import '../_virtual/index2.js';
3
4
  import { defaultColor } from './createColor.js';
4
5
 
5
6
  const defaultTextColor = {
@@ -1 +1 @@
1
- {"version":3,"file":"createTextColor.js","sources":["../../src/themes/createTextColor.ts"],"sourcesContent":["import { darken } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nexport type CreatedTextColorTheme = {\n main: string\n black: string\n white: string\n 'white-darken': string\n disabled: string\n link: string\n 'link-darken': string\n grey: string\n danger: string\n 'warning-yellow': string\n brand: string\n green: string\n 'color-inherit': 'inherit'\n transparent: 'transparent'\n}\n\nexport const defaultTextColor: CreatedTextColorTheme = {\n main: defaultColor.MAIN,\n black: defaultColor.TEXT_BLACK,\n white: defaultColor.TEXT_WHITE,\n 'white-darken': darken(0.05, defaultColor.TEXT_WHITE),\n disabled: defaultColor.TEXT_DISABLED,\n link: defaultColor.TEXT_LINK,\n 'link-darken': darken(0.062, defaultColor.TEXT_LINK),\n grey: defaultColor.TEXT_GREY,\n danger: defaultColor.DANGER,\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n brand: defaultColor.BRAND,\n green: '#0f7f85',\n 'color-inherit': 'inherit',\n transparent: 'transparent',\n}\n\nexport const createTextColor = (userColor?: ColorProperty): CreatedTextColorTheme => {\n if (!userColor) {\n return defaultTextColor\n }\n\n // userColorでマージされた色パレットを取得\n const color = merge(defaultColor, userColor)\n\n // 更新された色からテキスト色を再生成\n return {\n main: color.MAIN,\n black: color.TEXT_BLACK,\n white: color.TEXT_WHITE,\n 'white-darken': darken(0.05, color.TEXT_WHITE),\n disabled: color.TEXT_DISABLED,\n link: color.TEXT_LINK,\n 'link-darken': darken(0.062, color.TEXT_LINK),\n grey: color.TEXT_GREY,\n danger: color.DANGER,\n 'warning-yellow': color.WARNING_YELLOW,\n brand: color.BRAND,\n green: '#0f7f85',\n 'color-inherit': 'inherit' as const,\n transparent: 'transparent' as const,\n }\n}\n"],"names":["darken"],"mappings":";;;;AAuBO,MAAM,gBAAgB,GAA0B;IACrD,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,KAAK,EAAE,YAAY,CAAC,UAAU;IAC9B,KAAK,EAAE,YAAY,CAAC,UAAU;IAC9B,cAAc,EAAEA,eAAM,CAAC,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC;IACrD,QAAQ,EAAE,YAAY,CAAC,aAAa;IACpC,IAAI,EAAE,YAAY,CAAC,SAAS;IAC5B,aAAa,EAAEA,eAAM,CAAC,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC;IACpD,IAAI,EAAE,YAAY,CAAC,SAAS;IAC5B,MAAM,EAAE,YAAY,CAAC,MAAM;IAC3B,gBAAgB,EAAE,YAAY,CAAC,cAAc;IAC7C,KAAK,EAAE,YAAY,CAAC,KAAK;AACzB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,eAAe,EAAE,SAAS;AAC1B,IAAA,WAAW,EAAE,aAAa;;AAGrB,MAAM,eAAe,GAAG,CAAC,SAAyB,KAA2B;IAClF,IAAI,CAAC,SAAS,EAAE;AACd,QAAA,OAAO,gBAAgB;IACzB;;IAGA,MAAM,KAAK,GAAG,KAAK,CAAC,YAAY,EAAE,SAAS,CAAC;;IAG5C,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,cAAc,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC;QAC9C,QAAQ,EAAE,KAAK,CAAC,aAAa;QAC7B,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,aAAa,EAAEA,eAAM,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QAC7C,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,gBAAgB,EAAE,KAAK,CAAC,cAAc;QACtC,KAAK,EAAE,KAAK,CAAC,KAAK;AAClB,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,eAAe,EAAE,SAAkB;AACnC,QAAA,WAAW,EAAE,aAAsB;KACpC;AACH;;;;"}
1
+ {"version":3,"file":"createTextColor.js","sources":["../../src/themes/createTextColor.ts"],"sourcesContent":["import { darken } from 'polished'\n\nimport { merge } from '../libs/lodash'\n\nimport { type ColorProperty, defaultColor } from './createColor'\n\nexport type CreatedTextColorTheme = {\n main: string\n black: string\n white: string\n 'white-darken': string\n disabled: string\n link: string\n 'link-darken': string\n grey: string\n danger: string\n 'warning-yellow': string\n brand: string\n green: string\n 'color-inherit': 'inherit'\n transparent: 'transparent'\n}\n\nexport const defaultTextColor: CreatedTextColorTheme = {\n main: defaultColor.MAIN,\n black: defaultColor.TEXT_BLACK,\n white: defaultColor.TEXT_WHITE,\n 'white-darken': darken(0.05, defaultColor.TEXT_WHITE),\n disabled: defaultColor.TEXT_DISABLED,\n link: defaultColor.TEXT_LINK,\n 'link-darken': darken(0.062, defaultColor.TEXT_LINK),\n grey: defaultColor.TEXT_GREY,\n danger: defaultColor.DANGER,\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n brand: defaultColor.BRAND,\n green: '#0f7f85',\n 'color-inherit': 'inherit',\n transparent: 'transparent',\n}\n\nexport const createTextColor = (userColor?: ColorProperty): CreatedTextColorTheme => {\n if (!userColor) {\n return defaultTextColor\n }\n\n // userColorでマージされた色パレットを取得\n const color = merge(defaultColor, userColor)\n\n // 更新された色からテキスト色を再生成\n return {\n main: color.MAIN,\n black: color.TEXT_BLACK,\n white: color.TEXT_WHITE,\n 'white-darken': darken(0.05, color.TEXT_WHITE),\n disabled: color.TEXT_DISABLED,\n link: color.TEXT_LINK,\n 'link-darken': darken(0.062, color.TEXT_LINK),\n grey: color.TEXT_GREY,\n danger: color.DANGER,\n 'warning-yellow': color.WARNING_YELLOW,\n brand: color.BRAND,\n green: '#0f7f85',\n 'color-inherit': 'inherit' as const,\n transparent: 'transparent' as const,\n }\n}\n"],"names":["darken"],"mappings":";;;;;AAuBO,MAAM,gBAAgB,GAA0B;IACrD,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,KAAK,EAAE,YAAY,CAAC,UAAU;IAC9B,KAAK,EAAE,YAAY,CAAC,UAAU;IAC9B,cAAc,EAAEA,eAAM,CAAC,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC;IACrD,QAAQ,EAAE,YAAY,CAAC,aAAa;IACpC,IAAI,EAAE,YAAY,CAAC,SAAS;IAC5B,aAAa,EAAEA,eAAM,CAAC,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC;IACpD,IAAI,EAAE,YAAY,CAAC,SAAS;IAC5B,MAAM,EAAE,YAAY,CAAC,MAAM;IAC3B,gBAAgB,EAAE,YAAY,CAAC,cAAc;IAC7C,KAAK,EAAE,YAAY,CAAC,KAAK;AACzB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,eAAe,EAAE,SAAS;AAC1B,IAAA,WAAW,EAAE,aAAa;;AAGrB,MAAM,eAAe,GAAG,CAAC,SAAyB,KAA2B;IAClF,IAAI,CAAC,SAAS,EAAE;AACd,QAAA,OAAO,gBAAgB;IACzB;;IAGA,MAAM,KAAK,GAAG,KAAK,CAAC,YAAY,EAAE,SAAS,CAAC;;IAG5C,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,KAAK,EAAE,KAAK,CAAC,UAAU;QACvB,cAAc,EAAEA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC;QAC9C,QAAQ,EAAE,KAAK,CAAC,aAAa;QAC7B,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,aAAa,EAAEA,eAAM,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QAC7C,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,gBAAgB,EAAE,KAAK,CAAC,cAAc;QACtC,KAAK,EAAE,KAAK,CAAC,KAAK;AAClB,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,eAAe,EAAE,SAAkB;AACnC,QAAA,WAAW,EAAE,aAAsB;KACpC;AACH;;;;"}
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var libs_lodash = require('../libs/lodash.cjs');
3
+ var index = require('../_virtual/index.cjs');
4
+ require('../_virtual/index2.cjs');
4
5
 
5
6
  const defaultZIndex = {
6
7
  AUTO: 'auto',
@@ -13,7 +14,7 @@ const createZIndex = (userZIndex) => {
13
14
  if (!userZIndex) {
14
15
  return defaultZIndex;
15
16
  }
16
- return libs_lodash.merge({
17
+ return index({
17
18
  ...defaultZIndex,
18
19
  }, userZIndex);
19
20
  };