smarthr-ui 70.3.0 → 71.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/esm/_virtual/index.js +4 -4
  2. package/esm/_virtual/index2.js +4 -4
  3. package/esm/_virtual/index3.js +4 -4
  4. package/esm/components/Button/Button.d.ts +1 -9
  5. package/esm/components/Button/Button.js +6 -9
  6. package/esm/components/Button/Button.js.map +1 -1
  7. package/esm/components/Combobox/MultiCombobox/MultiCombobox.js +1 -1
  8. package/esm/components/Combobox/SingleCombobox/SingleCombobox.js +1 -1
  9. package/esm/components/Combobox/helper.js +1 -1
  10. package/esm/components/Combobox/useOptions.js +1 -1
  11. package/esm/components/Dropdown/DropdownMenuButton/DropdownMenuButton.js +1 -1
  12. package/esm/components/Dropdown/FilterDropdown/FilterDropdown.js +1 -1
  13. package/esm/components/FormControl/FormControl.js +1 -1
  14. package/esm/components/Tooltip/Tooltip.js +1 -1
  15. package/esm/index.d.ts +0 -3
  16. package/esm/index.js +0 -3
  17. package/esm/index.js.map +1 -1
  18. package/esm/intl/locales/en_us.d.ts +1 -0
  19. package/esm/intl/locales/en_us.js +1 -0
  20. package/esm/intl/locales/en_us.js.map +1 -1
  21. package/esm/intl/locales/id_id.d.ts +1 -0
  22. package/esm/intl/locales/id_id.js +1 -0
  23. package/esm/intl/locales/id_id.js.map +1 -1
  24. package/esm/intl/locales/ja.d.ts +1 -0
  25. package/esm/intl/locales/ja.js +1 -0
  26. package/esm/intl/locales/ja.js.map +1 -1
  27. package/esm/intl/locales/ko_kr.d.ts +1 -0
  28. package/esm/intl/locales/ko_kr.js +1 -0
  29. package/esm/intl/locales/ko_kr.js.map +1 -1
  30. package/esm/intl/locales/pt_br.d.ts +1 -0
  31. package/esm/intl/locales/pt_br.js +1 -0
  32. package/esm/intl/locales/pt_br.js.map +1 -1
  33. package/esm/intl/locales/vi_vn.d.ts +1 -0
  34. package/esm/intl/locales/vi_vn.js +1 -0
  35. package/esm/intl/locales/vi_vn.js.map +1 -1
  36. package/esm/intl/locales/zh_hans_cn.d.ts +1 -0
  37. package/esm/intl/locales/zh_hans_cn.js +1 -0
  38. package/esm/intl/locales/zh_hans_cn.js.map +1 -1
  39. package/esm/intl/locales/zh_hant_tw.d.ts +1 -0
  40. package/esm/intl/locales/zh_hant_tw.js +1 -0
  41. package/esm/intl/locales/zh_hant_tw.js.map +1 -1
  42. package/esm/libs/lodash.js +2 -2
  43. package/esm/smarthr-ui-preset.js +1 -1
  44. package/esm/themes/createBorder.js +8 -5
  45. package/esm/themes/createBorder.js.map +1 -1
  46. package/esm/themes/createBreakpoint.d.ts +1 -4
  47. package/esm/themes/createBreakpoint.js +5 -3
  48. package/esm/themes/createBreakpoint.js.map +1 -1
  49. package/esm/themes/createColor.js +7 -4
  50. package/esm/themes/createColor.js.map +1 -1
  51. package/esm/themes/createFontSize.d.ts +0 -20
  52. package/esm/themes/createFontSize.js +7 -14
  53. package/esm/themes/createFontSize.js.map +1 -1
  54. package/esm/themes/createInteraction.d.ts +1 -8
  55. package/esm/themes/createInteraction.js +5 -3
  56. package/esm/themes/createInteraction.js.map +1 -1
  57. package/esm/themes/createLeading.d.ts +1 -1
  58. package/esm/themes/createLeading.js +5 -4
  59. package/esm/themes/createLeading.js.map +1 -1
  60. package/esm/themes/createRadius.js +5 -3
  61. package/esm/themes/createRadius.js.map +1 -1
  62. package/esm/themes/createShadow/createShadow.d.ts +0 -16
  63. package/esm/themes/createShadow/createShadow.js +8 -5
  64. package/esm/themes/createShadow/createShadow.js.map +1 -1
  65. package/esm/themes/createSpacing.js +19 -18
  66. package/esm/themes/createSpacing.js.map +1 -1
  67. package/esm/themes/createTheme.d.ts +0 -27
  68. package/esm/themes/createTheme.js +7 -96
  69. package/esm/themes/createTheme.js.map +1 -1
  70. package/esm/themes/createZIndex.d.ts +1 -8
  71. package/esm/themes/createZIndex.js +5 -3
  72. package/esm/themes/createZIndex.js.map +1 -1
  73. package/lib/components/Button/Button.d.ts +1 -9
  74. package/lib/components/Button/Button.js +5 -9
  75. package/lib/components/Button/Button.js.map +1 -1
  76. package/lib/index.d.ts +0 -3
  77. package/lib/index.js +1 -7
  78. package/lib/index.js.map +1 -1
  79. package/lib/intl/locales/en_us.d.ts +1 -0
  80. package/lib/intl/locales/en_us.js +1 -0
  81. package/lib/intl/locales/en_us.js.map +1 -1
  82. package/lib/intl/locales/id_id.d.ts +1 -0
  83. package/lib/intl/locales/id_id.js +1 -0
  84. package/lib/intl/locales/id_id.js.map +1 -1
  85. package/lib/intl/locales/ja.d.ts +1 -0
  86. package/lib/intl/locales/ja.js +1 -0
  87. package/lib/intl/locales/ja.js.map +1 -1
  88. package/lib/intl/locales/ko_kr.d.ts +1 -0
  89. package/lib/intl/locales/ko_kr.js +1 -0
  90. package/lib/intl/locales/ko_kr.js.map +1 -1
  91. package/lib/intl/locales/pt_br.d.ts +1 -0
  92. package/lib/intl/locales/pt_br.js +1 -0
  93. package/lib/intl/locales/pt_br.js.map +1 -1
  94. package/lib/intl/locales/vi_vn.d.ts +1 -0
  95. package/lib/intl/locales/vi_vn.js +1 -0
  96. package/lib/intl/locales/vi_vn.js.map +1 -1
  97. package/lib/intl/locales/zh_hans_cn.d.ts +1 -0
  98. package/lib/intl/locales/zh_hans_cn.js +1 -0
  99. package/lib/intl/locales/zh_hans_cn.js.map +1 -1
  100. package/lib/intl/locales/zh_hant_tw.d.ts +1 -0
  101. package/lib/intl/locales/zh_hant_tw.js +1 -0
  102. package/lib/intl/locales/zh_hant_tw.js.map +1 -1
  103. package/lib/themes/createBorder.js +8 -5
  104. package/lib/themes/createBorder.js.map +1 -1
  105. package/lib/themes/createBreakpoint.d.ts +1 -4
  106. package/lib/themes/createBreakpoint.js +5 -3
  107. package/lib/themes/createBreakpoint.js.map +1 -1
  108. package/lib/themes/createColor.js +7 -4
  109. package/lib/themes/createColor.js.map +1 -1
  110. package/lib/themes/createFontSize.d.ts +0 -20
  111. package/lib/themes/createFontSize.js +7 -14
  112. package/lib/themes/createFontSize.js.map +1 -1
  113. package/lib/themes/createInteraction.d.ts +1 -8
  114. package/lib/themes/createInteraction.js +5 -3
  115. package/lib/themes/createInteraction.js.map +1 -1
  116. package/lib/themes/createLeading.d.ts +1 -1
  117. package/lib/themes/createLeading.js +5 -4
  118. package/lib/themes/createLeading.js.map +1 -1
  119. package/lib/themes/createRadius.js +5 -3
  120. package/lib/themes/createRadius.js.map +1 -1
  121. package/lib/themes/createShadow/createShadow.d.ts +0 -16
  122. package/lib/themes/createShadow/createShadow.js +8 -5
  123. package/lib/themes/createShadow/createShadow.js.map +1 -1
  124. package/lib/themes/createSpacing.js +19 -18
  125. package/lib/themes/createSpacing.js.map +1 -1
  126. package/lib/themes/createTheme.d.ts +0 -27
  127. package/lib/themes/createTheme.js +7 -96
  128. package/lib/themes/createTheme.js.map +1 -1
  129. package/lib/themes/createZIndex.d.ts +1 -8
  130. package/lib/themes/createZIndex.js +5 -3
  131. package/lib/themes/createZIndex.js.map +1 -1
  132. package/package.json +1 -1
  133. package/esm/themes/createFrame.d.ts +0 -29
  134. package/esm/themes/createFrame.js +0 -34
  135. package/esm/themes/createFrame.js.map +0 -1
  136. package/esm/themes/createPalette.d.ts +0 -64
  137. package/esm/themes/createPalette.js +0 -37
  138. package/esm/themes/createPalette.js.map +0 -1
  139. package/esm/themes/createSize.d.ts +0 -50
  140. package/esm/themes/createSize.js +0 -40
  141. package/esm/themes/createSize.js.map +0 -1
  142. package/lib/themes/createFrame.d.ts +0 -29
  143. package/lib/themes/createFrame.js +0 -35
  144. package/lib/themes/createFrame.js.map +0 -1
  145. package/lib/themes/createPalette.d.ts +0 -64
  146. package/lib/themes/createPalette.js +0 -38
  147. package/lib/themes/createPalette.js.map +0 -1
  148. package/lib/themes/createSize.d.ts +0 -50
  149. package/lib/themes/createSize.js +0 -41
  150. package/lib/themes/createSize.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
2
- import { __require as requireLodash_merge } from './../vendor/.pnpm/lodash.merge@4.6.2/vendor/lodash.merge/index.js';
2
+ import { __require as requireReactInnertext } from './../vendor/.pnpm/react-innertext@1.1.5_@types_react@18.3.21_react@19.1.0/vendor/react-innertext/index.js';
3
3
 
4
- var lodash_mergeExports = requireLodash_merge();
5
- var _merge = /*@__PURE__*/getDefaultExportFromCjs(lodash_mergeExports);
4
+ var reactInnertextExports = requireReactInnertext();
5
+ var innerText = /*@__PURE__*/getDefaultExportFromCjs(reactInnertextExports);
6
6
 
7
- export { _merge as default };
7
+ export { innerText as default };
8
8
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
2
- import { __require as requireLodash_range } from './../vendor/.pnpm/lodash.range@3.2.0/vendor/lodash.range/index.js';
2
+ import { __require as requireLodash_merge } from './../vendor/.pnpm/lodash.merge@4.6.2/vendor/lodash.merge/index.js';
3
3
 
4
- var lodash_rangeExports = requireLodash_range();
5
- var _range = /*@__PURE__*/getDefaultExportFromCjs(lodash_rangeExports);
4
+ var lodash_mergeExports = requireLodash_merge();
5
+ var _merge = /*@__PURE__*/getDefaultExportFromCjs(lodash_mergeExports);
6
6
 
7
- export { _range as default };
7
+ export { _merge as default };
8
8
  //# sourceMappingURL=index2.js.map
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
2
- import { __require as requireReactInnertext } from './../vendor/.pnpm/react-innertext@1.1.5_@types_react@18.3.21_react@19.1.0/vendor/react-innertext/index.js';
2
+ import { __require as requireLodash_range } from './../vendor/.pnpm/lodash.range@3.2.0/vendor/lodash.range/index.js';
3
3
 
4
- var reactInnertextExports = requireReactInnertext();
5
- var innerText = /*@__PURE__*/getDefaultExportFromCjs(reactInnertextExports);
4
+ var lodash_rangeExports = requireLodash_range();
5
+ var _range = /*@__PURE__*/getDefaultExportFromCjs(lodash_rangeExports);
6
6
 
7
- export { innerText as default };
7
+ export { _range as default };
8
8
  //# sourceMappingURL=index3.js.map
@@ -1,14 +1,6 @@
1
1
  import { type ButtonHTMLAttributes } from 'react';
2
- import { type DecoratorsType } from '../../hooks/useDecorators';
3
2
  import type { BaseProps } from './types';
4
3
  type ElementProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof BaseProps>;
5
- export type Props = {
6
- decorators?: DecoratorsType<DecoratorKeyTypes>;
7
- };
8
- declare const DECORATOR_DEFAULT_TEXTS: {
9
- readonly loading: "処理中";
10
- };
11
- type DecoratorKeyTypes = keyof typeof DECORATOR_DEFAULT_TEXTS;
12
4
  export declare const Button: import("react").ForwardRefExoticComponent<{
13
5
  size?: "default" | "s";
14
6
  disabledDetail?: {
@@ -22,5 +14,5 @@ export declare const Button: import("react").ForwardRefExoticComponent<{
22
14
  loading?: boolean;
23
15
  } & {
24
16
  children?: import("react").ReactNode | undefined;
25
- } & ElementProps & Props & import("react").RefAttributes<HTMLButtonElement>>;
17
+ } & ElementProps & import("react").RefAttributes<HTMLButtonElement>>;
26
18
  export {};
@@ -2,8 +2,9 @@
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef, useMemo, memo } from 'react';
4
4
  import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.17_ts-node@10.9.2_@swc_core@1.11.24_@types_node@20.17.46_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
5
- import { useDecorators } from '../../hooks/useDecorators.js';
6
5
  import { usePortal } from '../../hooks/usePortal.js';
6
+ import 'react-intl';
7
+ import { Localizer } from '../../intl/Localizer.js';
7
8
  import { VisuallyHiddenText } from '../VisuallyHiddenText/VisuallyHiddenText.js';
8
9
  import { ButtonWrapper } from './ButtonWrapper.js';
9
10
  import { DisabledDetail } from './DisabledDetail.js';
@@ -13,18 +14,14 @@ const classNameGenerator = ce({
13
14
  wrapper: 'smarthr-ui-Button',
14
15
  },
15
16
  });
16
- const DECORATOR_DEFAULT_TEXTS = {
17
- loading: '処理中',
18
- };
19
- const Button = forwardRef(({ type = 'button', size = 'default', prefix, suffix, wide = false, variant = 'secondary', disabled, disabledDetail, className, children, loading = false, decorators, ...props }, ref) => {
17
+ const Button = forwardRef(({ type = 'button', size = 'default', prefix, suffix, wide = false, variant = 'secondary', disabled, disabledDetail, className, children, loading = false, ...props }, ref) => {
20
18
  const classNames = useMemo(() => {
21
19
  const { wrapper } = classNameGenerator();
22
20
  return {
23
21
  wrapper: wrapper({ className }),
24
22
  };
25
23
  }, [className]);
26
- const decorated = useDecorators(DECORATOR_DEFAULT_TEXTS, decorators);
27
- const button = (jsxs(ButtonWrapper, { ...props, buttonRef: ref, type: type, size: size, wide: wide, variant: variant, className: classNames.wrapper, "$loading": loading, prefix: prefix, suffix: suffix, disabled: disabled, children: [jsx(LoadingStatus, { loading: loading, children: decorated.loading }), children] }));
24
+ const button = (jsxs(ButtonWrapper, { ...props, buttonRef: ref, type: type, size: size, wide: wide, variant: variant, className: classNames.wrapper, "$loading": loading, prefix: prefix, suffix: suffix, disabled: disabled, children: [jsx(LoadingStatus, { loading: loading }), children] }));
28
25
  if (disabled && disabledDetail) {
29
26
  return jsx(DisabledDetail, { button: button, disabledDetail: disabledDetail });
30
27
  }
@@ -32,10 +29,10 @@ const Button = forwardRef(({ type = 'button', size = 'default', prefix, suffix,
32
29
  });
33
30
  // BottomFixedArea での判定に用いるために displayName を明示的に設定する
34
31
  Button.displayName = 'Button';
35
- const LoadingStatus = memo(({ loading, children }) => {
32
+ const LoadingStatus = memo(({ loading }) => {
36
33
  const { createPortal } = usePortal();
37
34
  // `button` 要素内で live region を使うことはできないので、`role="status"` を持つ要素を外側に配置している。 https://github.com/kufu/smarthr-ui/pull/4558
38
- return createPortal(jsx(VisuallyHiddenText, { role: "status", children: loading && children }));
35
+ return createPortal(jsx(VisuallyHiddenText, { role: "status", children: loading && jsx(Localizer, { id: "smarthr-ui/Button/loading", defaultText: "\u51E6\u7406\u4E2D" }) }));
39
36
  });
40
37
 
41
38
  export { Button };
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAgBA;AACE;AACE;AACD;AACF;AAMD;AACE;;;AAuBE;AACE;;AAGE;;AAEJ;;AAIA;AAmBA;;;AAIA;AACF;AAEF;AACA;AAEA;AACE;;AAGA;AACF;;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;AAgBA;AACE;AACE;AACD;AACF;;AAoBG;AACE;;AAGE;;AAEJ;;AAqBA;;;AAIA;AACF;AAEF;AACA;AAEA;AACE;;;AAQF;;"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { memo, useMemo, useRef, useState, useCallback, useImperativeHandle, useEffect, useId } from 'react';
4
- import innerText from '../../../_virtual/index3.js';
4
+ import innerText from '../../../_virtual/index.js';
5
5
  import { tv as ce } from './../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.17_ts-node@10.9.2_@swc_core@1.11.24_@types_node@20.17.46_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
6
6
  import { useOuterClick } from '../../../hooks/useOuterClick.js';
7
7
  import { genericsForwardRef } from '../../../libs/util.js';
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
3
  import { useRef, useState, useImperativeHandle, useCallback, useMemo, useEffect } from 'react';
4
- import innerText from '../../../_virtual/index3.js';
4
+ import innerText from '../../../_virtual/index.js';
5
5
  import { tv as ce } from './../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.17_ts-node@10.9.2_@swc_core@1.11.24_@types_node@20.17.46_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
6
6
  import { useClick } from '../../../hooks/useClick.js';
7
7
  import { useDecorators } from '../../../hooks/useDecorators.js';
@@ -1,4 +1,4 @@
1
- import innerText from '../../_virtual/index3.js';
1
+ import innerText from '../../_virtual/index.js';
2
2
 
3
3
  function convertMatchableString(original) {
4
4
  return (original
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useId, useMemo } from 'react';
2
- import innerText from '../../_virtual/index3.js';
2
+ import innerText from '../../_virtual/index.js';
3
3
  import { areItemsEqual, convertMatchableString } from './helper.js';
4
4
 
5
5
  const defaultIsItemSelected = (targetItem, selectedItems) => selectedItems.some((item) => areItemsEqual(item, targetItem));
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { memo, useContext, useMemo, useRef, Children, isValidElement, Fragment, cloneElement } from 'react';
4
- import innerText from '../../../_virtual/index3.js';
4
+ import innerText from '../../../_virtual/index.js';
5
5
  import { tv as ce } from './../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.17_ts-node@10.9.2_@swc_core@1.11.24_@types_node@20.17.46_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
6
6
  import { DropdownContext, Dropdown } from '../Dropdown.js';
7
7
  import { DropdownTrigger } from '../DropdownTrigger.js';
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
- import innerText from '../../../_virtual/index3.js';
4
+ import innerText from '../../../_virtual/index.js';
5
5
  import { tv as ce } from './../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.17_ts-node@10.9.2_@swc_core@1.11.24_@types_node@20.17.46_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
6
6
  import { useDecorators } from '../../../hooks/useDecorators.js';
7
7
  import { useResponseStatus } from '../../../hooks/useResponseStatus.js';
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { memo, useMemo, useId, useRef, Fragment as Fragment$1, createElement, useEffect } from 'react';
3
3
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
4
- import innerText from '../../_virtual/index3.js';
4
+ import innerText from '../../_virtual/index.js';
5
5
  import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.17_ts-node@10.9.2_@swc_core@1.11.24_@types_node@20.17.46_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
6
6
  import { FaCircleExclamationIcon } from '../Icon/Icon.js';
7
7
  import '../Icon/generateIcon.js';
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { memo, useMemo, useState, useRef, useId, useSyncExternalStore, useCallback, cloneElement } from 'react';
4
4
  import { createPortal } from 'react-dom';
5
- import innerText from '../../_virtual/index3.js';
5
+ import innerText from '../../_virtual/index.js';
6
6
  import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.17_ts-node@10.9.2_@swc_core@1.11.24_@types_node@20.17.46_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
7
7
  import { useEnhancedEffect } from '../../hooks/useEnhancedEffect.js';
8
8
  import { VisuallyHiddenText } from '../VisuallyHiddenText/VisuallyHiddenText.js';
package/esm/index.d.ts CHANGED
@@ -61,13 +61,10 @@ export { useTheme } from './hooks/useTheme';
61
61
  export { useDevice, DeviceProvider } from './hooks/useDevice';
62
62
  export { createTheme } from './themes/createTheme';
63
63
  export { ThemeProvider } from './themes/ThemeProvider';
64
- export { defaultPalette } from './themes/createPalette';
65
64
  export { defaultColor } from './themes/createColor';
66
65
  export { defaultInteraction } from './themes/createInteraction';
67
- export { defaultFrame } from './themes/createFrame';
68
66
  export { defaultBorder } from './themes/createBorder';
69
67
  export { defaultRadius } from './themes/createRadius';
70
- export { defaultSize } from './themes/createSize';
71
68
  export { defaultFontSize } from './themes/createFontSize';
72
69
  export { defaultLeading } from './themes/createLeading';
73
70
  export { defaultSpacing } from './themes/createSpacing';
package/esm/index.js CHANGED
@@ -132,13 +132,10 @@ export { useDevice } from './hooks/useDevice/useDevice.js';
132
132
  export { DeviceProvider } from './hooks/useDevice/DeviceProvider.js';
133
133
  export { createTheme } from './themes/createTheme.js';
134
134
  export { ThemeProvider } from './themes/ThemeProvider.js';
135
- export { defaultPalette } from './themes/createPalette.js';
136
135
  export { defaultColor } from './themes/createColor.js';
137
136
  export { defaultInteraction } from './themes/createInteraction.js';
138
- export { defaultFrame } from './themes/createFrame.js';
139
137
  export { defaultBorder } from './themes/createBorder.js';
140
138
  export { defaultRadius } from './themes/createRadius.js';
141
- export { defaultSize } from './themes/createSize.js';
142
139
  export { defaultFontSize } from './themes/createFontSize.js';
143
140
  export { defaultLeading } from './themes/createLeading.js';
144
141
  export { defaultSpacing } from './themes/createSpacing.js';
package/esm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,6 @@
1
1
  export declare const locale: {
2
2
  readonly 'smarthr-ui/common/language': "English";
3
+ readonly 'smarthr-ui/Button/loading': "In progress";
3
4
  readonly 'smarthr-ui/Combobox/loadingText': "";
4
5
  readonly 'smarthr-ui/Combobox/noResultsText': "No matching options found.";
5
6
  readonly 'smarthr-ui/DropdownMenuButton/triggerActive': "";
@@ -2,6 +2,7 @@
2
2
  // prettier-ignore
3
3
  const locale = {
4
4
  'smarthr-ui/common/language': 'English',
5
+ 'smarthr-ui/Button/loading': 'In progress',
5
6
  'smarthr-ui/Combobox/loadingText': '',
6
7
  'smarthr-ui/Combobox/noResultsText': 'No matching options found.',
7
8
  'smarthr-ui/DropdownMenuButton/triggerActive': '',
@@ -1 +1 @@
1
- {"version":3,"file":"en_us.js","sources":["../../../src/intl/locales/en_us.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,SAAS;AACvC,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,4BAA4B;AACjE,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,UAAU;AAC3C,IAAA,kCAAkC,EAAE,qBAAqB;;;;;"}
1
+ {"version":3,"file":"en_us.js","sources":["../../../src/intl/locales/en_us.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,SAAS;AACvC,IAAA,2BAA2B,EAAE,aAAa;AAC1C,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,4BAA4B;AACjE,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,UAAU;AAC3C,IAAA,kCAAkC,EAAE,qBAAqB;;;;;"}
@@ -1,5 +1,6 @@
1
1
  export declare const locale: {
2
2
  readonly 'smarthr-ui/common/language': "Bahasa Indonesia";
3
+ readonly 'smarthr-ui/Button/loading': "Sedang diproses";
3
4
  readonly 'smarthr-ui/Combobox/loadingText': "";
4
5
  readonly 'smarthr-ui/Combobox/noResultsText': "Tidak ada pilihan yang cocok";
5
6
  readonly 'smarthr-ui/DropdownMenuButton/triggerActive': "";
@@ -2,6 +2,7 @@
2
2
  // prettier-ignore
3
3
  const locale = {
4
4
  'smarthr-ui/common/language': 'Bahasa Indonesia',
5
+ 'smarthr-ui/Button/loading': 'Sedang diproses',
5
6
  'smarthr-ui/Combobox/loadingText': '',
6
7
  'smarthr-ui/Combobox/noResultsText': 'Tidak ada pilihan yang cocok',
7
8
  'smarthr-ui/DropdownMenuButton/triggerActive': '',
@@ -1 +1 @@
1
- {"version":3,"file":"id_id.js","sources":["../../../src/intl/locales/id_id.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,kBAAkB;AAChD,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,8BAA8B;AACnE,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,OAAO;AACxC,IAAA,kCAAkC,EAAE,EAAE;;;;;"}
1
+ {"version":3,"file":"id_id.js","sources":["../../../src/intl/locales/id_id.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,kBAAkB;AAChD,IAAA,2BAA2B,EAAE,iBAAiB;AAC9C,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,8BAA8B;AACnE,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,OAAO;AACxC,IAAA,kCAAkC,EAAE,EAAE;;;;;"}
@@ -1,5 +1,6 @@
1
1
  export declare const locale: {
2
2
  readonly 'smarthr-ui/common/language': "日本語";
3
+ readonly 'smarthr-ui/Button/loading': "処理中";
3
4
  readonly 'smarthr-ui/Combobox/loadingText': "処理中";
4
5
  readonly 'smarthr-ui/Combobox/noResultsText': "一致する選択肢がありません。";
5
6
  readonly 'smarthr-ui/DropdownMenuButton/triggerActive': "候補を閉じる";
@@ -2,6 +2,7 @@
2
2
  // prettier-ignore
3
3
  const locale = {
4
4
  'smarthr-ui/common/language': '日本語',
5
+ 'smarthr-ui/Button/loading': '処理中',
5
6
  'smarthr-ui/Combobox/loadingText': '処理中',
6
7
  'smarthr-ui/Combobox/noResultsText': '一致する選択肢がありません。',
7
8
  'smarthr-ui/DropdownMenuButton/triggerActive': '候補を閉じる',
@@ -1 +1 @@
1
- {"version":3,"file":"ja.js","sources":["../../../src/intl/locales/ja.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,KAAK;AACnC,IAAA,iCAAiC,EAAE,KAAK;AACxC,IAAA,mCAAmC,EAAE,gBAAgB;AACrD,IAAA,6CAA6C,EAAE,QAAQ;AACvD,IAAA,+CAA+C,EAAE,OAAO;AACxD,IAAA,+BAA+B,EAAE,IAAI;AACrC,IAAA,kCAAkC,EAAE,QAAQ;;;;;"}
1
+ {"version":3,"file":"ja.js","sources":["../../../src/intl/locales/ja.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,KAAK;AACnC,IAAA,2BAA2B,EAAE,KAAK;AAClC,IAAA,iCAAiC,EAAE,KAAK;AACxC,IAAA,mCAAmC,EAAE,gBAAgB;AACrD,IAAA,6CAA6C,EAAE,QAAQ;AACvD,IAAA,+CAA+C,EAAE,OAAO;AACxD,IAAA,+BAA+B,EAAE,IAAI;AACrC,IAAA,kCAAkC,EAAE,QAAQ;;;;;"}
@@ -1,5 +1,6 @@
1
1
  export declare const locale: {
2
2
  readonly 'smarthr-ui/common/language': "한국어";
3
+ readonly 'smarthr-ui/Button/loading': "처리중";
3
4
  readonly 'smarthr-ui/Combobox/loadingText': "";
4
5
  readonly 'smarthr-ui/Combobox/noResultsText': "일치하는 선택지가 없습니다.";
5
6
  readonly 'smarthr-ui/DropdownMenuButton/triggerActive': "";
@@ -2,6 +2,7 @@
2
2
  // prettier-ignore
3
3
  const locale = {
4
4
  'smarthr-ui/common/language': '한국어',
5
+ 'smarthr-ui/Button/loading': '처리중',
5
6
  'smarthr-ui/Combobox/loadingText': '',
6
7
  'smarthr-ui/Combobox/noResultsText': '일치하는 선택지가 없습니다.',
7
8
  'smarthr-ui/DropdownMenuButton/triggerActive': '',
@@ -1 +1 @@
1
- {"version":3,"file":"ko_kr.js","sources":["../../../src/intl/locales/ko_kr.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,KAAK;AACnC,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,iBAAiB;AACtD,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,IAAI;AACrC,IAAA,kCAAkC,EAAE,WAAW;;;;;"}
1
+ {"version":3,"file":"ko_kr.js","sources":["../../../src/intl/locales/ko_kr.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,KAAK;AACnC,IAAA,2BAA2B,EAAE,KAAK;AAClC,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,iBAAiB;AACtD,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,IAAI;AACrC,IAAA,kCAAkC,EAAE,WAAW;;;;;"}
@@ -1,5 +1,6 @@
1
1
  export declare const locale: {
2
2
  readonly 'smarthr-ui/common/language': "Português";
3
+ readonly 'smarthr-ui/Button/loading': "Processando";
3
4
  readonly 'smarthr-ui/Combobox/loadingText': "";
4
5
  readonly 'smarthr-ui/Combobox/noResultsText': "Nenhuma opção correspondente";
5
6
  readonly 'smarthr-ui/DropdownMenuButton/triggerActive': "";
@@ -2,6 +2,7 @@
2
2
  // prettier-ignore
3
3
  const locale = {
4
4
  'smarthr-ui/common/language': 'Português',
5
+ 'smarthr-ui/Button/loading': 'Processando',
5
6
  'smarthr-ui/Combobox/loadingText': '',
6
7
  'smarthr-ui/Combobox/noResultsText': 'Nenhuma opção correspondente',
7
8
  'smarthr-ui/DropdownMenuButton/triggerActive': '',
@@ -1 +1 @@
1
- {"version":3,"file":"pt_br.js","sources":["../../../src/intl/locales/pt_br.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,WAAW;AACzC,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,8BAA8B;AACnE,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,EAAE;AACnC,IAAA,kCAAkC,EAAE,wBAAwB;;;;;"}
1
+ {"version":3,"file":"pt_br.js","sources":["../../../src/intl/locales/pt_br.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,WAAW;AACzC,IAAA,2BAA2B,EAAE,aAAa;AAC1C,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,8BAA8B;AACnE,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,EAAE;AACnC,IAAA,kCAAkC,EAAE,wBAAwB;;;;;"}
@@ -1,5 +1,6 @@
1
1
  export declare const locale: {
2
2
  readonly 'smarthr-ui/common/language': "Tiếng Việt";
3
+ readonly 'smarthr-ui/Button/loading': "Đang xử lý";
3
4
  readonly 'smarthr-ui/Combobox/loadingText': "";
4
5
  readonly 'smarthr-ui/Combobox/noResultsText': "Không có kết quả phù hợp.";
5
6
  readonly 'smarthr-ui/DropdownMenuButton/triggerActive': "";
@@ -2,6 +2,7 @@
2
2
  // prettier-ignore
3
3
  const locale = {
4
4
  'smarthr-ui/common/language': 'Tiếng Việt',
5
+ 'smarthr-ui/Button/loading': 'Đang xử lý',
5
6
  'smarthr-ui/Combobox/loadingText': '',
6
7
  'smarthr-ui/Combobox/noResultsText': 'Không có kết quả phù hợp.',
7
8
  'smarthr-ui/DropdownMenuButton/triggerActive': '',
@@ -1 +1 @@
1
- {"version":3,"file":"vi_vn.js","sources":["../../../src/intl/locales/vi_vn.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,YAAY;AAC1C,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,2BAA2B;AAChE,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,UAAU;AAC3C,IAAA,kCAAkC,EAAE,kBAAkB;;;;;"}
1
+ {"version":3,"file":"vi_vn.js","sources":["../../../src/intl/locales/vi_vn.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,YAAY;AAC1C,IAAA,2BAA2B,EAAE,YAAY;AACzC,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,2BAA2B;AAChE,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,UAAU;AAC3C,IAAA,kCAAkC,EAAE,kBAAkB;;;;;"}
@@ -1,5 +1,6 @@
1
1
  export declare const locale: {
2
2
  readonly 'smarthr-ui/common/language': "简体中文";
3
+ readonly 'smarthr-ui/Button/loading': "处理中";
3
4
  readonly 'smarthr-ui/Combobox/loadingText': "";
4
5
  readonly 'smarthr-ui/Combobox/noResultsText': "没有符合条件的选项";
5
6
  readonly 'smarthr-ui/DropdownMenuButton/triggerActive': "";
@@ -2,6 +2,7 @@
2
2
  // prettier-ignore
3
3
  const locale = {
4
4
  'smarthr-ui/common/language': '简体中文',
5
+ 'smarthr-ui/Button/loading': '处理中',
5
6
  'smarthr-ui/Combobox/loadingText': '',
6
7
  'smarthr-ui/Combobox/noResultsText': '没有符合条件的选项',
7
8
  'smarthr-ui/DropdownMenuButton/triggerActive': '',
@@ -1 +1 @@
1
- {"version":3,"file":"zh_hans_cn.js","sources":["../../../src/intl/locales/zh_hans_cn.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,MAAM;AACpC,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,WAAW;AAChD,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,IAAI;AACrC,IAAA,kCAAkC,EAAE,UAAU;;;;;"}
1
+ {"version":3,"file":"zh_hans_cn.js","sources":["../../../src/intl/locales/zh_hans_cn.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,MAAM;AACpC,IAAA,2BAA2B,EAAE,KAAK;AAClC,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,WAAW;AAChD,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,IAAI;AACrC,IAAA,kCAAkC,EAAE,UAAU;;;;;"}
@@ -1,5 +1,6 @@
1
1
  export declare const locale: {
2
2
  readonly 'smarthr-ui/common/language': "繁體中文";
3
+ readonly 'smarthr-ui/Button/loading': "處理中";
3
4
  readonly 'smarthr-ui/Combobox/loadingText': "";
4
5
  readonly 'smarthr-ui/Combobox/noResultsText': "沒有符合條件的選項";
5
6
  readonly 'smarthr-ui/DropdownMenuButton/triggerActive': "";
@@ -2,6 +2,7 @@
2
2
  // prettier-ignore
3
3
  const locale = {
4
4
  'smarthr-ui/common/language': '繁體中文',
5
+ 'smarthr-ui/Button/loading': '處理中',
5
6
  'smarthr-ui/Combobox/loadingText': '',
6
7
  'smarthr-ui/Combobox/noResultsText': '沒有符合條件的選項',
7
8
  'smarthr-ui/DropdownMenuButton/triggerActive': '',
@@ -1 +1 @@
1
- {"version":3,"file":"zh_hant_tw.js","sources":["../../../src/intl/locales/zh_hant_tw.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,MAAM;AACpC,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,WAAW;AAChD,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,IAAI;AACrC,IAAA,kCAAkC,EAAE,SAAS;;;;;"}
1
+ {"version":3,"file":"zh_hant_tw.js","sources":["../../../src/intl/locales/zh_hant_tw.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACA;AACa,MAAA,MAAM,GAAG;AACpB,IAAA,4BAA4B,EAAE,MAAM;AACpC,IAAA,2BAA2B,EAAE,KAAK;AAClC,IAAA,iCAAiC,EAAE,EAAE;AACrC,IAAA,mCAAmC,EAAE,WAAW;AAChD,IAAA,6CAA6C,EAAE,EAAE;AACjD,IAAA,+CAA+C,EAAE,EAAE;AACnD,IAAA,+BAA+B,EAAE,IAAI;AACrC,IAAA,kCAAkC,EAAE,SAAS;;;;;"}
@@ -1,5 +1,5 @@
1
- import _merge from '../_virtual/index.js';
2
- import _range from '../_virtual/index2.js';
1
+ import _merge from '../_virtual/index2.js';
2
+ import _range from '../_virtual/index3.js';
3
3
 
4
4
  const merge = _merge;
5
5
  const range = _range;
@@ -4,7 +4,7 @@ import plugin from './_virtual/plugin.js';
4
4
  import { defaultColor } from './themes/createColor.js';
5
5
  import { defaultHtmlFontSize, defaultFontSize } from './themes/createFontSize.js';
6
6
  import { defaultShadow } from './themes/createShadow/defaultShadow.js';
7
- import { primitiveTokens, createSpacingByChar } from './themes/createSpacing.js';
7
+ import { createSpacingByChar, primitiveTokens } from './themes/createSpacing.js';
8
8
  import { defaultZIndex } from './themes/createZIndex.js';
9
9
 
10
10
  ie.twMergeConfig = {
@@ -11,13 +11,16 @@ const defaultBorder = {
11
11
  shorthand: `${defaultLineWidth} ${defaultLineStyle} ${defaultLineColor}`,
12
12
  highContrast: `${defaultLineWidth} ${defaultLineStyle} ${highContrastBorderColor}`,
13
13
  };
14
- const createBorder = (userBorder = {}, userColor = {}) => {
15
- const color = userColor.BORDER || defaultColor.BORDER;
16
- const created = merge({
14
+ const createBorder = (userBorder, userColor) => {
15
+ const color = userColor?.BORDER || defaultColor.BORDER;
16
+ const borders = {
17
17
  ...defaultBorder,
18
18
  shorthand: `${defaultLineWidth} ${defaultLineStyle} ${color}`,
19
- }, userBorder);
20
- return created;
19
+ };
20
+ if (!userBorder) {
21
+ return borders;
22
+ }
23
+ return merge(borders, userBorder);
21
24
  };
22
25
 
23
26
  export { createBorder, defaultBorder };
@@ -1 +1 @@
1
- {"version":3,"file":"createBorder.js","sources":["../../src/themes/createBorder.ts"],"sourcesContent":[null],"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;AAexC,MAAA,aAAa,GAAuB;AAC/C,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,SAAS,EAAE,CAAG,EAAA,gBAAgB,IAAI,gBAAgB,CAAA,CAAA,EAAI,gBAAgB,CAAE,CAAA;AACxE,IAAA,YAAY,EAAE,CAAG,EAAA,gBAAgB,IAAI,gBAAgB,CA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f,QAAA,OAAO,OAAO;;AAGhB,IAAA,OAAO,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC;AACnC;;;;"}
@@ -6,8 +6,5 @@ export type CreatedBreakpointTheme = {
6
6
  SP: number;
7
7
  TABLET: number;
8
8
  };
9
- export declare const defaultBreakpoint: {
10
- SP: number;
11
- TABLET: number;
12
- };
9
+ export declare const defaultBreakpoint: CreatedBreakpointTheme;
13
10
  export declare const createBreakpoint: (userBreakpoint?: BreakpointProperty) => CreatedBreakpointTheme;
@@ -1,9 +1,11 @@
1
1
  import { merge } from '../libs/lodash.js';
2
2
 
3
3
  const defaultBreakpoint = { SP: 599, TABLET: 959 };
4
- const createBreakpoint = (userBreakpoint = {}) => {
5
- const created = merge({ ...defaultBreakpoint }, userBreakpoint);
6
- return created;
4
+ const createBreakpoint = (userBreakpoint) => {
5
+ if (!userBreakpoint) {
6
+ return defaultBreakpoint;
7
+ }
8
+ return merge({ ...defaultBreakpoint }, userBreakpoint);
7
9
  };
8
10
 
9
11
  export { createBreakpoint, defaultBreakpoint };
@@ -1 +1 @@
1
- {"version":3,"file":"createBreakpoint.js","sources":["../../src/themes/createBreakpoint.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAYO,MAAM,iBAAiB,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG;MAE1C,gBAAgB,GAAG,CAAC,cAAqC,GAAA,EAAE,KAAI;IAC1E,MAAM,OAAO,GAA2B,KAAK,CAAC,EAAE,GAAG,iBAAiB,EAAE,EAAE,cAAc,CAAC;AACvF,IAAA,OAAO,OAAO;AAChB;;;;"}
1
+ {"version":3,"file":"createBreakpoint.js","sources":["../../src/themes/createBreakpoint.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAYO,MAAM,iBAAiB,GAA2B,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG;AAElE,MAAA,gBAAgB,GAAG,CAAC,cAAmC,KAA4B;IAC9F,IAAI,CAAC,cAAc,EAAE;AACnB,QAAA,OAAO,iBAAiB;;IAG1B,OAAO,KAAK,CAAC,EAAE,GAAG,iBAAiB,EAAE,EAAE,cAAc,CAAC;AACxD;;;;"}
@@ -50,13 +50,16 @@ const semanticTokens = {
50
50
  BRAND: primitiveTokens.SMARTHR_BLUE,
51
51
  };
52
52
  const defaultColor = { ...semanticTokens, ...greyScale, ...transparencyScale };
53
- const createColor = (userColor = {}) => {
54
- const created = merge({
53
+ const createColor = (userColor) => {
54
+ const colors = {
55
55
  hoverColor: (value) => curriedDarken$1(0.05, value),
56
56
  disableColor: (value) => rgba(value, 0.5),
57
57
  ...defaultColor,
58
- }, userColor, !userColor.OUTLINE && userColor.MAIN ? { OUTLINE: curriedTransparentize$1(0.5, userColor.MAIN) } : null);
59
- return created;
58
+ };
59
+ if (!userColor) {
60
+ return colors;
61
+ }
62
+ return merge(colors, userColor, !userColor.OUTLINE && userColor.MAIN ? { OUTLINE: curriedTransparentize$1(0.5, userColor.MAIN) } : null);
60
63
  };
61
64
 
62
65
  export { createColor, defaultColor };
@@ -1 +1 @@
1
- {"version":3,"file":"createColor.js","sources":["../../src/themes/createColor.ts"],"sourcesContent":[null],"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,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AAa,KAAaA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC;QAC1D,YAAY,EAAE,CAAC,KAAa,KAAa,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC;AACzD,QAAA,GAAG,YAAY;AAChB,KAAA,EACD,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;AACD,IAAA,OAAO,OAAO;AAChB;;;;"}
1
+ {"version":3,"file":"createColor.js","sources":["../../src/themes/createColor.ts"],"sourcesContent":[null],"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,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,YAAY,EAAE,SAAS;CACxB;AAED,MAAM,cAAc,GAAG;IACrB,UAAU,EAAE,SAAS,CAAC,QAAQ;IAC9B,UAAU,EAA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O,EAAEC,uBAAc,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI,CAC/F;AACH;;;;"}
@@ -1,15 +1,5 @@
1
1
  export declare const defaultHtmlFontSize = 16;
2
2
  export type FontSizeProperty = {
3
- /** @deprecated */
4
- htmlFontSize?: number;
5
- /** @deprecated */
6
- SHORT?: number;
7
- /** @deprecated */
8
- TALL?: number;
9
- /** @deprecated */
10
- GRANDE?: number;
11
- /** @deprecated */
12
- VENTI?: number;
13
3
  scaleFactor?: number;
14
4
  XXS?: string;
15
5
  XS?: string;
@@ -20,16 +10,6 @@ export type FontSizeProperty = {
20
10
  XXL?: string;
21
11
  };
22
12
  export type CreatedFontSizeTheme = {
23
- /** @deprecated You shouldn't use rem except for font size. use calc. */
24
- pxToRem: (px: number) => string;
25
- /** @deprecated */
26
- SHORT: number;
27
- /** @deprecated */
28
- TALL: number;
29
- /** @deprecated */
30
- GRANDE: number;
31
- /** @deprecated */
32
- VENTI: number;
33
13
  XXS: string;
34
14
  XS: string;
35
15
  S: string;