smarthr-ui 73.0.1 → 74.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 (42) hide show
  1. package/esm/components/Chip/Chip.js +2 -4
  2. package/esm/components/Chip/Chip.js.map +1 -1
  3. package/esm/components/StatusLabel/StatusLabel.js +2 -2
  4. package/esm/components/StatusLabel/StatusLabel.js.map +1 -1
  5. package/esm/index.d.ts +0 -1
  6. package/esm/index.js +0 -1
  7. package/esm/index.js.map +1 -1
  8. package/esm/smarthr-ui-preset.d.ts +6 -0
  9. package/esm/smarthr-ui-preset.js +7 -0
  10. package/esm/smarthr-ui-preset.js.map +1 -1
  11. package/esm/themes/createColor.d.ts +0 -1
  12. package/esm/themes/createColor.js +0 -2
  13. package/esm/themes/createColor.js.map +1 -1
  14. package/esm/themes/tailwind/TailwindConfig.d.ts +4 -0
  15. package/lib/components/Chip/Chip.js +2 -4
  16. package/lib/components/Chip/Chip.js.map +1 -1
  17. package/lib/components/StatusLabel/StatusLabel.js +2 -2
  18. package/lib/components/StatusLabel/StatusLabel.js.map +1 -1
  19. package/lib/index.d.ts +0 -1
  20. package/lib/index.js +0 -1
  21. package/lib/index.js.map +1 -1
  22. package/lib/smarthr-ui-preset.d.ts +6 -0
  23. package/lib/smarthr-ui-preset.js +7 -0
  24. package/lib/smarthr-ui-preset.js.map +1 -1
  25. package/lib/themes/createColor.d.ts +0 -1
  26. package/lib/themes/createColor.js +2 -2
  27. package/lib/themes/createColor.js.map +1 -1
  28. package/lib/themes/tailwind/TailwindConfig.d.ts +4 -0
  29. package/package.json +1 -1
  30. package/smarthr-ui.css +20 -72
  31. package/esm/components/FlashMessage/FlashMessage.d.ts +0 -87
  32. package/esm/components/FlashMessage/FlashMessage.js +0 -65
  33. package/esm/components/FlashMessage/FlashMessage.js.map +0 -1
  34. package/esm/components/FlashMessage/index.d.ts +0 -1
  35. package/esm/components/FlashMessage/index.js +0 -2
  36. package/esm/components/FlashMessage/index.js.map +0 -1
  37. package/lib/components/FlashMessage/FlashMessage.d.ts +0 -87
  38. package/lib/components/FlashMessage/FlashMessage.js +0 -63
  39. package/lib/components/FlashMessage/FlashMessage.js.map +0 -1
  40. package/lib/components/FlashMessage/index.d.ts +0 -1
  41. package/lib/components/FlashMessage/index.js +0 -6
  42. package/lib/components/FlashMessage/index.js.map +0 -1
@@ -12,10 +12,8 @@ const classNameGenerator = ce({
12
12
  color: {
13
13
  grey: 'shr-border-grey-20',
14
14
  blue: 'shr-border-main',
15
- /* green がトークン化されたら置き換える */
16
- green: 'shr-border-[#0f7f85]',
17
- /* oragen がトークン化されたら置き換える */
18
- orange: 'shr-border-[#ff8800]',
15
+ green: 'shr-border-green',
16
+ orange: 'shr-border-orange',
19
17
  red: 'shr-border-danger',
20
18
  },
21
19
  size: {
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.js","sources":["../../../src/components/Chip/Chip.tsx"],"sourcesContent":["import { type ComponentPropsWithoutRef, type FC, type PropsWithChildren, useMemo } from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\ntype Props = PropsWithChildren<\n VariantProps<typeof classNameGenerator> & ComponentPropsWithoutRef<'span'>\n>\n\nexport const classNameGenerator = tv({\n base: [\n 'smarthr-ui-Chip',\n 'shr-border-shorthand shr-rounded-full shr-bg-white shr-text-black shr-leading-none',\n 'contrast-more:shr-border-high-contrast',\n ],\n variants: {\n color: {\n grey: 'shr-border-grey-20',\n blue: 'shr-border-main',\n /* green がトークン化されたら置き換える */\n green: 'shr-border-[#0f7f85]',\n /* oragen がトークン化されたら置き換える */\n orange: 'shr-border-[#ff8800]',\n red: 'shr-border-danger',\n },\n size: {\n s: 'shr-text-sm shr-px-0.5 shr-py-0.25',\n },\n disabled: {\n true: 'shr-bg-white/50 shr-text-disabled',\n },\n },\n defaultVariants: {\n size: 's',\n color: 'grey',\n },\n})\n\nexport const Chip: FC<Props> = ({ size, color, disabled, className, ...props }) => {\n const actualClassName = useMemo(\n () => classNameGenerator({ size, color, disabled, className }),\n [size, color, disabled, className],\n )\n return <span {...props} className={actualClassName} />\n}\n"],"names":["tv","_jsx"],"mappings":";;;;AAOO,MAAM,kBAAkB,GAAGA,EAAE,CAAC;AACnC,IAAA,IAAI,EAAE;QACJ,iBAAiB;QACjB,oFAAoF;QACpF,wCAAwC;AACzC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,oBAAoB;AAC1B,YAAA,IAAI,EAAE,iBAAiB;;AAEvB,YAAA,KAAK,EAAE,sBAAsB;;AAE7B,YAAA,MAAM,EAAE,sBAAsB;AAC9B,YAAA,GAAG,EAAE,mBAAmB;AACzB,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,CAAC,EAAE,oCAAoC;AACxC,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,mCAAmC;AAC1C,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,GAAG;AACT,QAAA,KAAK,EAAE,MAAM;AACd,KAAA;AACF,CAAA;AAEY,MAAA,IAAI,GAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,KAAI;AAChF,IAAA,MAAM,eAAe,GAAG,OAAO,CAC7B,MAAM,kBAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAC9D,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CACnC;AACD,IAAA,OAAOC,iBAAU,KAAK,EAAE,SAAS,EAAE,eAAe,GAAI;AACxD;;;;"}
1
+ {"version":3,"file":"Chip.js","sources":["../../../src/components/Chip/Chip.tsx"],"sourcesContent":["import { type ComponentPropsWithoutRef, type FC, type PropsWithChildren, useMemo } from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\ntype Props = PropsWithChildren<\n VariantProps<typeof classNameGenerator> & ComponentPropsWithoutRef<'span'>\n>\n\nexport const classNameGenerator = tv({\n base: [\n 'smarthr-ui-Chip',\n 'shr-border-shorthand shr-rounded-full shr-bg-white shr-text-black shr-leading-none',\n 'contrast-more:shr-border-high-contrast',\n ],\n variants: {\n color: {\n grey: 'shr-border-grey-20',\n blue: 'shr-border-main',\n green: 'shr-border-green',\n orange: 'shr-border-orange',\n red: 'shr-border-danger',\n },\n size: {\n s: 'shr-text-sm shr-px-0.5 shr-py-0.25',\n },\n disabled: {\n true: 'shr-bg-white/50 shr-text-disabled',\n },\n },\n defaultVariants: {\n size: 's',\n color: 'grey',\n },\n})\n\nexport const Chip: FC<Props> = ({ size, color, disabled, className, ...props }) => {\n const actualClassName = useMemo(\n () => classNameGenerator({ size, color, disabled, className }),\n [size, color, disabled, className],\n )\n return <span {...props} className={actualClassName} />\n}\n"],"names":["tv","_jsx"],"mappings":";;;;AAOO,MAAM,kBAAkB,GAAGA,EAAE,CAAC;AACnC,IAAA,IAAI,EAAE;QACJ,iBAAiB;QACjB,oFAAoF;QACpF,wCAAwC;AACzC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,oBAAoB;AAC1B,YAAA,IAAI,EAAE,iBAAiB;AACvB,YAAA,KAAK,EAAE,kBAAkB;AACzB,YAAA,MAAM,EAAE,mBAAmB;AAC3B,YAAA,GAAG,EAAE,mBAAmB;AACzB,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,CAAC,EAAE,oCAAoC;AACxC,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,mCAAmC;AAC1C,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,GAAG;AACT,QAAA,KAAK,EAAE,MAAM;AACd,KAAA;AACF,CAAA;AAEY,MAAA,IAAI,GAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,KAAI;AAChF,IAAA,MAAM,eAAe,GAAG,OAAO,CAC7B,MAAM,kBAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAC9D,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CACnC;AACD,IAAA,OAAOC,iBAAU,KAAK,EAAE,SAAS,EAAE,eAAe,GAAI;AACxD;;;;"}
@@ -17,7 +17,7 @@ const classNameGenerator = ce({
17
17
  blue: 'shr-text-main',
18
18
  /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。
19
19
  * https://smarthr.design/basics/colors/#h4-1 */
20
- green: 'shr-text-[#0f7f85]',
20
+ green: 'shr-text-green',
21
21
  red: 'shr-text-danger',
22
22
  warning: 'shr-border-warning-yellow shr-bg-warning-yellow shr-text-black',
23
23
  error: 'shr-bg-danger shr-border-danger shr-text-white',
@@ -42,7 +42,7 @@ const classNameGenerator = ce({
42
42
  bold: true,
43
43
  /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。
44
44
  * https://smarthr.design/basics/colors/#h4-1 */
45
- class: 'shr-border-[#0f7f85] shr-bg-[#0f7f85]',
45
+ class: 'shr-border-green shr-bg-green',
46
46
  },
47
47
  {
48
48
  type: 'red',
@@ -1 +1 @@
1
- {"version":3,"file":"StatusLabel.js","sources":["../../../src/components/StatusLabel/StatusLabel.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type FC,\n type PropsWithChildren,\n memo,\n useMemo,\n} from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\nimport { FaCircleExclamationIcon, FaTriangleExclamationIcon } from '../Icon'\n\nexport const classNameGenerator = tv({\n base: [\n 'smarthr-ui-StatusLabel',\n 'shr-box-content shr-inline-flex shr-items-center shr-justify-center shr-gap-0.25 shr-border-shorthand shr-border-current shr-bg-white shr-px-0.5 shr-py-0.25 shr-whitespace-nowrap shr-text-sm shr-font-bold shr-min-w-[3.5em] shr-min-h-em',\n // ラベルが天地中央に揃わないため暫定対応\n 'shr-leading-[0]',\n ],\n variants: {\n type: {\n grey: ['shr-border-grey-20 shr-text-grey', 'contrast-more:shr-border-high-contrast'],\n blue: 'shr-text-main',\n /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。\n * https://smarthr.design/basics/colors/#h4-1 */\n green: 'shr-text-[#0f7f85]',\n red: 'shr-text-danger',\n warning: 'shr-border-warning-yellow shr-bg-warning-yellow shr-text-black',\n error: 'shr-bg-danger shr-border-danger shr-text-white',\n },\n bold: {\n true: 'shr-text-white',\n },\n },\n compoundVariants: [\n {\n type: 'grey',\n bold: true,\n class: 'shr-border-grey-65 shr-bg-[theme(colors.grey.65)]',\n },\n {\n type: 'blue',\n bold: true,\n class: 'shr-border-main shr-bg-main',\n },\n {\n type: 'green',\n bold: true,\n /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。\n * https://smarthr.design/basics/colors/#h4-1 */\n class: 'shr-border-[#0f7f85] shr-bg-[#0f7f85]',\n },\n {\n type: 'red',\n bold: true,\n class: 'shr-border-danger shr-bg-danger',\n },\n {\n type: 'warning',\n bold: true,\n class: 'shr-border-current shr-text-black',\n },\n ],\n})\n\ntype BaseProps = VariantProps<typeof classNameGenerator>\ntype ElementProps = Omit<ComponentPropsWithoutRef<'span'>, keyof BaseProps>\ntype Props = PropsWithChildren<BaseProps & ElementProps>\n\nexport const StatusLabel = memo<Props>(\n ({ type = 'grey', bold = false, className, children, ...props }) => {\n const actualClassName = useMemo(\n () =>\n classNameGenerator({\n className,\n type,\n bold,\n }),\n [type, bold, className],\n )\n\n return (\n <span {...props} className={actualClassName}>\n <Icon type={type} bold={bold} />\n {children}\n </span>\n )\n },\n)\n\nconst Icon: FC<Pick<Props, 'type' | 'bold'>> = ({ type, bold }) => {\n if (bold) {\n switch (type) {\n case 'warning':\n return <FaTriangleExclamationIcon />\n case 'error':\n return <Fa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EAAE,IAAI,GAAG,MAAM,EAAE,IAAI,GAAG,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,KAAI;IACjE,MAAM,eAAe,GAAG,OAAO,CAC7B,MACE,kBAAkB,CAAC;QACjB,SAAS;QACT,IAAI;QACJ,IAAI;KACL,CAAC,EACJ,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CACxB;IAED,QACEC,kBAAU,KAAK,EAAE,SAAS,EAAE,eAAe,EACzC,QAAA,EAAA,CAAAC,GAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAI,EAC/B,QAAQ,CACJ,EAAA,CAAA;AAEX,CAAC;AAGH,MAAM,IAAI,GAAqC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAI;IAChE,IAAI,IAAI,EAAE;QACR,QAAQ,IAAI;AACV,YAAA,KAAK,SAAS;gBACZ,OAAOA,GAAA,CAAC,yBAAyB,EAAA,EAAA,CAAG;AACtC,YAAA,KAAK,OAAO;gBACV,OAAOA,GAAA,CAAC,uBAAuB,EAAA,EAAA,CAAG;;;AAIxC,IAAA,OAAO,IAAI;AACb,CAAC;;;;"}
1
+ {"version":3,"file":"StatusLabel.js","sources":["../../../src/components/StatusLabel/StatusLabel.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type FC,\n type PropsWithChildren,\n memo,\n useMemo,\n} from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\nimport { FaCircleExclamationIcon, FaTriangleExclamationIcon } from '../Icon'\n\nexport const classNameGenerator = tv({\n base: [\n 'smarthr-ui-StatusLabel',\n 'shr-box-content shr-inline-flex shr-items-center shr-justify-center shr-gap-0.25 shr-border-shorthand shr-border-current shr-bg-white shr-px-0.5 shr-py-0.25 shr-whitespace-nowrap shr-text-sm shr-font-bold shr-min-w-[3.5em] shr-min-h-em',\n // ラベルが天地中央に揃わないため暫定対応\n 'shr-leading-[0]',\n ],\n variants: {\n type: {\n grey: ['shr-border-grey-20 shr-text-grey', 'contrast-more:shr-border-high-contrast'],\n blue: 'shr-text-main',\n /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。\n * https://smarthr.design/basics/colors/#h4-1 */\n green: 'shr-text-green',\n red: 'shr-text-danger',\n warning: 'shr-border-warning-yellow shr-bg-warning-yellow shr-text-black',\n error: 'shr-bg-danger shr-border-danger shr-text-white',\n },\n bold: {\n true: 'shr-text-white',\n },\n },\n compoundVariants: [\n {\n type: 'grey',\n bold: true,\n class: 'shr-border-grey-65 shr-bg-[theme(colors.grey.65)]',\n },\n {\n type: 'blue',\n bold: true,\n class: 'shr-border-main shr-bg-main',\n },\n {\n type: 'green',\n bold: true,\n /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。\n * https://smarthr.design/basics/colors/#h4-1 */\n class: 'shr-border-green shr-bg-green',\n },\n {\n type: 'red',\n bold: true,\n class: 'shr-border-danger shr-bg-danger',\n },\n {\n type: 'warning',\n bold: true,\n class: 'shr-border-current shr-text-black',\n },\n ],\n})\n\ntype BaseProps = VariantProps<typeof classNameGenerator>\ntype ElementProps = Omit<ComponentPropsWithoutRef<'span'>, keyof BaseProps>\ntype Props = PropsWithChildren<BaseProps & ElementProps>\n\nexport const StatusLabel = memo<Props>(\n ({ type = 'grey', bold = false, className, children, ...props }) => {\n const actualClassName = useMemo(\n () =>\n classNameGenerator({\n className,\n type,\n bold,\n }),\n [type, bold, className],\n )\n\n return (\n <span {...props} className={actualClassName}>\n <Icon type={type} bold={bold} />\n {children}\n </span>\n )\n },\n)\n\nconst Icon: FC<Pick<Props, 'type' | 'bold'>> = ({ type, bold }) => {\n if (bold) {\n switch (type) {\n case 'warning':\n return <FaTriangleExclamationIcon />\n case 'error':\n return <FaCircleExclamationIcon />\n }\n }\n\n return null\n}\n"],"names":["tv","_jsxs","_jsx"],"mappings":";;;;;;AAWO,MAAM,kBAAkB,GAAGA,EAAE,CAAC;AACnC,IAA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AG,OAAO,CAC7B,MACE,kBAAkB,CAAC;QACjB,SAAS;QACT,IAAI;QACJ,IAAI;KACL,CAAC,EACJ,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CACxB;IAED,QACEC,kBAAU,KAAK,EAAE,SAAS,EAAE,eAAe,EACzC,QAAA,EAAA,CAAAC,GAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAI,EAC/B,QAAQ,CACJ,EAAA,CAAA;AAEX,CAAC;AAGH,MAAM,IAAI,GAAqC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAI;IAChE,IAAI,IAAI,EAAE;QACR,QAAQ,IAAI;AACV,YAAA,KAAK,SAAS;gBACZ,OAAOA,GAAA,CAAC,yBAAyB,EAAA,EAAA,CAAG;AACtC,YAAA,KAAK,OAAO;gBACV,OAAOA,GAAA,CAAC,uBAAuB,EAAA,EAAA,CAAG;;;AAIxC,IAAA,OAAO,IAAI;AACb,CAAC;;;;"}
package/esm/index.d.ts CHANGED
@@ -3,7 +3,6 @@ export { Balloon } from './components/Balloon';
3
3
  export { Checkbox } from './components/Checkbox';
4
4
  export * from './components/Chip';
5
5
  export { Dropdown, DropdownTrigger, DropdownContent, DropdownCloser, FilterDropdown, DropdownMenuButton, DropdownMenuGroup, SortDropdown, } from './components/Dropdown';
6
- export * from './components/FlashMessage';
7
6
  export { FloatArea } from './components/FloatArea';
8
7
  export { Input, CurrencyInput, SearchInput } from './components/Input';
9
8
  export { InputFile } from './components/InputFile';
package/esm/index.js CHANGED
@@ -10,7 +10,6 @@ export { FilterDropdown } from './components/Dropdown/FilterDropdown/FilterDropd
10
10
  export { DropdownMenuButton } from './components/Dropdown/DropdownMenuButton/DropdownMenuButton.js';
11
11
  export { DropdownMenuGroup } from './components/Dropdown/DropdownMenuButton/DropdownMenuGroup.js';
12
12
  export { SortDropdown } from './components/Dropdown/SortDropdown/SortDropdown.js';
13
- export { FlashMessage } from './components/FlashMessage/FlashMessage.js';
14
13
  export { FloatArea } from './components/FloatArea/FloatArea.js';
15
14
  export { Input } from './components/Input/Input.js';
16
15
  export { CurrencyInput } from './components/Input/CurrencyInput/CurrencyInput.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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,6 +23,7 @@ declare const _default: {
23
23
  'warning-yellow-darken': any;
24
24
  overlay: string;
25
25
  scrim: string;
26
+ green: any;
26
27
  grey: {
27
28
  9: any;
28
29
  '9-darken': string;
@@ -62,6 +63,8 @@ declare const _default: {
62
63
  'danger-darken': string;
63
64
  'warning-yellow': string;
64
65
  'warning-yellow-darken': string;
66
+ green: string;
67
+ orange: string;
65
68
  grey: {
66
69
  DEFAULT: string;
67
70
  5: string;
@@ -153,6 +156,7 @@ declare const _default: {
153
156
  'link-darken': string;
154
157
  grey: any;
155
158
  danger: any;
159
+ green: any;
156
160
  'color-inherit': string;
157
161
  transparent: string;
158
162
  };
@@ -179,6 +183,8 @@ declare const _default: {
179
183
  darken: string;
180
184
  'high-contrast': any;
181
185
  link: any;
186
+ orange: any;
187
+ green: any;
182
188
  };
183
189
  strokeWidth: {
184
190
  '0.5': string;
@@ -87,6 +87,7 @@ var presetConfig = {
87
87
  'warning-yellow-darken': theme('colors.warning-yellow-darken'),
88
88
  overlay: defaultColor.OVERLAY,
89
89
  scrim: defaultColor.SCRIM,
90
+ green: theme('colors.green'),
90
91
  grey: {
91
92
  9: theme('colors.grey.9'),
92
93
  '9-darken': darkenColor(theme('colors.grey.9')),
@@ -126,6 +127,9 @@ var presetConfig = {
126
127
  'danger-darken': darkenColor(defaultColor.DANGER),
127
128
  'warning-yellow': defaultColor.WARNING_YELLOW,
128
129
  'warning-yellow-darken': darkenColor(defaultColor.WARNING_YELLOW),
130
+ // 色トークン周りの整理が必要(GREEN_100 と ORANGE_100 は primitive にしかない。)
131
+ green: '#0f7f85',
132
+ orange: '#f56121',
129
133
  grey: {
130
134
  DEFAULT: defaultColor.GREY_65,
131
135
  5: defaultColor.GREY_5,
@@ -198,6 +202,7 @@ var presetConfig = {
198
202
  'link-darken': darkenColor(theme('colors.link'), 0.062),
199
203
  grey: theme('colors.grey.65'),
200
204
  danger: theme('colors.danger'),
205
+ green: theme('colors.green'),
201
206
  'color-inherit': 'inherit',
202
207
  transparent: 'transparent',
203
208
  }),
@@ -226,6 +231,8 @@ var presetConfig = {
226
231
  darken: darkenColor(theme('colors.grey.20')),
227
232
  'high-contrast': theme('colors.grey.100'),
228
233
  link: theme('colors.link'),
234
+ orange: theme('colors.orange'),
235
+ green: theme('colors.green'),
229
236
  }),
230
237
  strokeWidth: {
231
238
  '0.5': '0.5',
@@ -1 +1 @@
1
- {"version":3,"file":"smarthr-ui-preset.js","sources":["../src/smarthr-ui-preset.ts"],"sourcesContent":["import { darken } from 'polished'\nimport { defaultConfig } from 'tailwind-variants'\nimport plugin from 'tailwindcss/plugin'\n\nimport { defaultColor } from './themes/createColor'\nimport { defaultFontSize, defaultHtmlFontSize } from './themes/createFontSize'\nimport { defaultShadow } from './themes/createShadow/defaultShadow'\nimport { createSpacingByChar, primitiveTokens as spacingSizes } from './themes/createSpacing'\nimport { defaultZIndex } from './themes/createZIndex'\n\nimport type { Config } from 'tailwindcss'\n\ndefaultConfig.twMergeConfig = {\n prefix: 'shr-',\n classGroups: {\n boxShadow: [\n {\n shadow: [\n 'layer-0',\n 'layer-1',\n 'layer-2',\n 'layer-3',\n 'layer-4',\n 'outline',\n 'underline',\n 'input-hover',\n 'none',\n ],\n },\n ],\n 'border-shorthand': [\n 'border-shorthand',\n 'border-t-shorthand',\n 'border-r-shorthand',\n 'border-b-shorthand',\n 'border-l-shorthand',\n ],\n 'font-size': [\n {\n text: ['2xs', 'xs', 'sm', 'base', 'lg', 'xl', '2xl', 'inherit'],\n },\n ],\n lineHeight: [\n {\n leading: ['none', 'tight', 'normal', 'loose'],\n },\n ],\n zIndex: [\n {\n z: [\n 'auto',\n '0',\n '1',\n 'fixed-menu',\n 'overlap-base',\n 'overlap',\n 'flash-message',\n (classPart: string) => /^\\[\\d+\\]$/.test(classPart),\n ],\n },\n ],\n focus: ['focus-indicator', 'focus-indicator--inner'],\n },\n}\n\nconst spacingByChar = createSpacingByChar(defaultHtmlFontSize / 2)\ntype Spacing = {\n [key in (typeof spacingSizes)[number]]: string\n}\nconst darkenColor = (color: string, amount: number = 0.05) => darken(amount, color)\n\n// この preset を各プロダクトでも読み込んでもらう想定\nexport default {\n content: [],\n theme: {\n backgroundColor: ({ theme }) => ({\n black: defaultColor.GREY_100,\n white: defaultColor.WHITE,\n 'white-darken': theme('colors.white-darken'),\n background: defaultColor.BACKGROUND,\n border: theme('colors.grey.20'),\n brand: theme('colors.brand'),\n column: defaultColor.COLUMN,\n 'column-darken': darkenColor(defaultColor.COLUMN),\n 'base-grey': defaultColor.BASE_GREY,\n 'over-background': defaultColor.OVER_BACKGROUND,\n head: defaultColor.HEAD,\n 'head-darken': darkenColor(defaultColor.HEAD),\n 'action-background': defaultColor.ACTION_BACKGROUND,\n main: defaultColor.MAIN,\n 'main-darken': theme('colors.main-darken'),\n danger: defaultColor.DANGER,\n 'danger-darken': theme('colors.danger-darken'),\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n 'warning-yellow-darken': theme('colors.warning-yellow-darken'),\n overlay: defaultColor.OVERLAY,\n scrim: defaultColor.SCRIM,\n grey: {\n 9: theme('colors.grey.9'),\n '9-darken': darkenColor(theme('colors.grey.9')),\n },\n inherit: 'inherit',\n transparent: 'transparent',\n }),\n borderRadius: {\n none: '0',\n s: '4px',\n m: '6px',\n l: '8px',\n em: '1em',\n full: '9999px',\n },\n boxShadow: {\n 'layer-0': defaultShadow.LAYER0,\n 'layer-1': defaultShadow.LAYER1,\n 'layer-2': defaultShadow.LAYER2,\n 'layer-3': defaultShadow.LAYER3,\n 'layer-4': defaultShadow.LAYER4,\n outline: defaultShadow.OUTLINE,\n underline: defaultShadow.UNDERLINE,\n 'input-hover': defaultShadow.INPUT_HOVER,\n none: 'none',\n },\n colors: {\n black: defaultColor.GREY_100,\n white: defaultColor.WHITE,\n 'white-darken': darkenColor(defaultColor.WHITE),\n main: defaultColor.MAIN,\n 'main-darken': darkenColor(defaultColor.MAIN),\n link: defaultColor.TEXT_LINK,\n brand: defaultColor.BRAND,\n outline: defaultColor.OUTLINE,\n danger: defaultColor.DANGER,\n 'danger-darken': darkenColor(defaultColor.DANGER),\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n 'warning-yellow-darken': darkenColor(defaultColor.WARNING_YELLOW),\n grey: {\n DEFAULT: defaultColor.GREY_65,\n 5: defaultColor.GREY_5,\n 6: defaultColor.GREY_6,\n 7: defaultColor.GREY_7,\n 9: defaultColor.GREY_9,\n 20: defaultColor.GREY_20,\n 30: defaultColor.GREY_30,\n 65: defaultColor.GREY_65,\n 100: defaultColor.GREY_100,\n },\n transparency: {\n 15: defaultColor.TRANSPARENCY_15,\n 30: defaultColor.TRANSPARENCY_30,\n 50: defaultColor.TRANSPARENCY_50,\n },\n inherit: 'inherit',\n transparent: 'transparent',\n current: 'currentColor',\n },\n fontFamily: {\n inherit: 'inherit',\n },\n fontSize: {\n '2xs': defaultFontSize.XXS,\n xs: defaultFontSize.XS,\n sm: defaultFontSize.S,\n base: defaultFontSize.M,\n lg: defaultFontSize.L,\n xl: defaultFontSize.XL,\n '2xl': defaultFontSize.XXL,\n inherit: 'inherit',\n },\n lineHeight: {\n none: '1',\n tight: '1.25',\n normal: '1.5',\n loose: '1.75',\n },\n maxWidth: {\n none: 'none',\n full: '100%',\n min: 'min-content',\n max: 'max-content',\n fit: 'fit-content',\n },\n outlineColor: {\n DEFAULT: defaultColor.OUTLINE,\n },\n spacing: {\n px: '1px',\n em: '1em',\n ...(spacingSizes\n .map((size) => ({\n [size]: spacingByChar(size),\n }))\n .reduce((a, c) => Object.assign(a, c), {}) as Spacing),\n },\n stroke: {\n black: defaultColor.GREY_100,\n },\n textColor: ({ theme }) => ({\n main: theme('colors.main'),\n black: theme('colors.black'),\n white: theme('colors.white'),\n 'white-darken': theme('colors.white-darken'),\n disabled: theme('colors.grey.30'),\n link: theme('colors.link'),\n // ACTION_BACKGROUND とコントラスト比 4.5 を達成するために調整\n 'link-darken': darkenColor(theme('colors.link'), 0.062),\n grey: theme('colors.grey.65'),\n danger: theme('colors.danger'),\n 'color-inherit': 'inherit',\n transparent: 'transparent',\n }),\n zIndex: {\n auto: 'auto',\n 0: '0',\n 1: '1',\n 'fixed-menu': `${defaultZIndex.FIXED_MENU}`,\n 'overlap-base': `${defaultZIndex.OVERLAP_BASE}`,\n overlap: `${defaultZIndex.OVERLAP}`,\n 'flash-message': `${defaultZIndex.FLASH_MESSAGE}`,\n },\n extend: {\n aria: {\n 'current-page': 'current=\"page\"',\n },\n minHeight: ({ theme }) => ({\n ...theme('spacing'),\n }),\n borderWidth: {\n 6: '6px',\n },\n borderColor: ({ theme }) => ({\n default: theme('colors.grey.20'),\n disabled: theme('colors.grey.20 / 50%'),\n darken: darkenColor(theme('colors.grey.20')),\n 'high-contrast': theme('colors.grey.100'),\n link: theme('colors.link'),\n }),\n strokeWidth: {\n '0.5': '0.5',\n },\n keyframes: ({ theme }) => ({\n 'loader-fade-in': {\n '0%': {\n opacity: '0',\n },\n to: {\n opacity: '1',\n },\n },\n 'loader-line-full-unfill-rotate': {\n '12.5%': {\n transform: 'rotate(135deg)',\n },\n '25%': {\n transform: 'rotate(270deg)',\n },\n '37.5%': {\n transform: 'rotate(405deg)',\n },\n '50%': {\n transform: 'rotate(540deg)',\n },\n '62.5%': {\n transform: 'rotate(675deg)',\n },\n '75%': {\n transform: 'rotate(810deg)',\n },\n '87.5%': {\n transform: 'rotate(945deg)',\n },\n to: {\n transform: 'rotate(1080deg)',\n },\n },\n 'loader-line1-fade-in-out': {\n '0%': {\n opacity: '1',\n },\n '25%': {\n opacity: '1',\n },\n '26%': {\n opacity: '0',\n },\n '89%': {\n opacity: '0',\n },\n '90%': {\n opacity: '1',\n },\n to: {\n opacity: '1',\n },\n },\n 'loader-line2-fade-in-out': {\n '0%': {\n opacity: '0',\n },\n '15%': {\n opacity: '0',\n },\n '25%': {\n opacity: '1',\n },\n '50%': {\n opacity: '1',\n },\n '51%': {\n opacity: '0',\n },\n },\n 'loader-line3-fade-in-out': {\n '0%': {\n opacity: '0',\n },\n '40%': {\n opacity: '0',\n },\n '50%': {\n opacity: '1',\n },\n '75%': {\n opacity: '1',\n },\n '76%': {\n opacity: '0',\n },\n },\n 'loader-line4-fade-in-out': {\n '0%': {\n opacity: '0',\n },\n '65%': {\n opacity: '0',\n },\n '75%': {\n opacity: '1',\n },\n '90%': {\n opacity: '1',\n },\n to: {\n opacity: '0',\n },\n },\n 'loader-left-spin': {\n '0%, 100%': { transform: 'rotate(130deg)' },\n '50%': { transform: 'rotate(-5deg)' },\n },\n 'loader-right-spin': {\n '0%, 100%': { transform: 'rotate(-130deg)' },\n '50%': { transform: 'rotate(5deg)' },\n },\n 'notification-bar-slide-in': {\n from: {\n opacity: '0',\n /* 1行の場合の高さ分だけスライドさせる */\n transform: `translateY(calc(-1 * calc(${theme('fontSize.base')} * ${theme('lineHeight.tight')} + ${theme('spacing')[1.5]})))`,\n },\n to: {\n opacity: '1',\n transform: 'translateY(0)',\n },\n },\n 'flash-message-bounce': {\n 'from, 20%, 53%, 80%, to': {\n 'animation-timing-function': 'cubic-bezier(0.215, 0.61, 0.355, 1)',\n transform: 'translate3d(0, 0, 0)',\n },\n '40%, 43%': {\n 'animation-timing-function': 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',\n transform: 'translate3d(0, -30px, 0)',\n },\n '70%': {\n 'animation-timing-function': 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',\n transform: 'translate3d(0, -15px, 0)',\n },\n '90%': {\n transform: 'translate3d(0, -4px, 0)',\n },\n },\n }),\n },\n },\n corePlugins: {\n preflight: false,\n boxShadowColor: false,\n caretColor: false,\n divideColor: false,\n placeholderColor: false,\n ringColor: false,\n ringOffsetColor: false,\n textDecorationColor: false,\n },\n plugins: [\n plugin(({ matchUtilities, addComponents, addBase, addVariant, theme }) => {\n matchUtilities(\n {\n 'border-t': (value) => ({ 'border-top-style': value }),\n 'border-l': (value) => ({ 'border-left-style': value }),\n 'border-s': (value) => ({ 'border-inline-start-style': value }),\n },\n { values: { solid: 'solid', dashed: 'dashed', dotted: 'dotted' } },\n )\n\n addComponents({\n /**\n * box-shadow や ring を使った仕組みでは Firefox で欠陥があるため、独自定義している\n * via https://github.com/tailwindlabs/tailwindcss/issues/10226\n */\n '.focus-indicator': {\n outline: 'none',\n isolation: 'isolate',\n boxShadow: `0 0 0 2px ${theme('colors.white')}, 0 0 0 4px ${theme('colors.outline')}`,\n },\n '.focus-indicator--inner': {\n outline: 'none',\n isolation: 'isolate',\n boxShadow: `inset 0 0 0 2px ${theme('colors.outline')}, inset 0 0 0 4px ${theme('colors.white')}`,\n },\n '.border-shorthand': {\n borderWidth: theme('borderWidth.DEFAULT'),\n borderStyle: 'solid',\n borderColor: theme('borderColor.default'),\n },\n '.border-t-shorthand': {\n borderWidth: '0',\n borderTopWidth: theme('borderWidth.DEFAULT'),\n borderTopStyle: 'solid',\n borderTopColor: theme('borderColor.default'),\n },\n '.border-r-shorthand': {\n borderWidth: '0',\n borderRightWidth: theme('borderWidth.DEFAULT'),\n borderRightStyle: 'solid',\n borderRightColor: theme('borderColor.default'),\n },\n '.border-b-shorthand': {\n borderWidth: '0',\n borderBottomWidth: theme('borderWidth.DEFAULT'),\n borderBottomStyle: 'solid',\n borderBottomColor: theme('borderColor.default'),\n },\n '.border-l-shorthand': {\n borderWidth: '0',\n borderLeftWidth: theme('borderWidth.DEFAULT'),\n borderLeftStyle: 'solid',\n borderLeftColor: theme('borderColor.default'),\n },\n })\n addBase({\n body: {\n overflowWrap: 'break-word',\n fontFamily: 'system-ui, sans-serif',\n lineHeight: theme('lineHeight.normal'),\n color: theme('colors.black'),\n // Windows 環境で Yu Gothic が不用意に記号を詰めてしまうのを避ける\n textSpacingTrim: 'space-all',\n },\n 'p, dl': {\n marginBlock: 'unset',\n },\n 'menu, ul, ol': {\n marginBlock: 'unset',\n paddingInlineStart: 'unset',\n },\n dd: {\n marginInlineStart: 'unset',\n },\n 'button, input, textarea, select': {\n fontFamily: 'inherit',\n },\n input: {\n paddingInline: 'unset',\n },\n 'input[type=search]': {\n appearance: 'none',\n boxSizing: 'unset',\n },\n textarea: {\n marginInline: 'unset',\n },\n button: {\n // Safari の UA スタイルで margin が設定されているため\n margin: 'unset',\n },\n a: {\n color: 'inherit',\n },\n })\n addVariant('forced-colors', '@media (forced-colors: active)')\n }),\n ],\n prefix: 'shr-',\n} satisfies Config\n"],"names":["defaultConfig","darken","spacingSizes"],"mappings":";;;;;;;;;AAYAA,EAAa,CAAC,aAAa,GAAG;AAC5B,IAAA,MAAM,EAAE,MAAM;AACd,IAAA,WAAW,EAAE;AACX,QAAA,SAAS,EAAE;AACT,YAAA;AACE,gBAAA,MAAM,EAAE;oBACN,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,WAAW;oBACX,aAAa;oBACb,MAAM;AACP,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,kBAAkB,EAAE;YAClB,kBAAkB;YAClB,oBAAo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AC;AACF,YAAA,UAAU,CAAC,eAAe,EAAE,gCAAgC,CAAC;AAC/D,SAAC,CAAC;AACH,KAAA;AACD,IAAA,MAAM,EAAE,MAAM;CACE;;;;"}
1
+ {"version":3,"file":"smarthr-ui-preset.js","sources":["../src/smarthr-ui-preset.ts"],"sourcesContent":["import { darken } from 'polished'\nimport { defaultConfig } from 'tailwind-variants'\nimport plugin from 'tailwindcss/plugin'\n\nimport { defaultColor } from './themes/createColor'\nimport { defaultFontSize, defaultHtmlFontSize } from './themes/createFontSize'\nimport { defaultShadow } from './themes/createShadow/defaultShadow'\nimport { createSpacingByChar, primitiveTokens as spacingSizes } from './themes/createSpacing'\nimport { defaultZIndex } from './themes/createZIndex'\n\nimport type { Config } from 'tailwindcss'\n\ndefaultConfig.twMergeConfig = {\n prefix: 'shr-',\n classGroups: {\n boxShadow: [\n {\n shadow: [\n 'layer-0',\n 'layer-1',\n 'layer-2',\n 'layer-3',\n 'layer-4',\n 'outline',\n 'underline',\n 'input-hover',\n 'none',\n ],\n },\n ],\n 'border-shorthand': [\n 'border-shorthand',\n 'border-t-shorthand',\n 'border-r-shorthand',\n 'border-b-shorthand',\n 'border-l-shorthand',\n ],\n 'font-size': [\n {\n text: ['2xs', 'xs', 'sm', 'base', 'lg', 'xl', '2xl', 'inherit'],\n },\n ],\n lineHeight: [\n {\n leading: ['none', 'tight', 'normal', 'loose'],\n },\n ],\n zIndex: [\n {\n z: [\n 'auto',\n '0',\n '1',\n 'fixed-menu',\n 'overlap-base',\n 'overlap',\n 'flash-message',\n (classPart: string) => /^\\[\\d+\\]$/.test(classPart),\n ],\n },\n ],\n focus: ['focus-indicator', 'focus-indicator--inner'],\n },\n}\n\nconst spacingByChar = createSpacingByChar(defaultHtmlFontSize / 2)\ntype Spacing = {\n [key in (typeof spacingSizes)[number]]: string\n}\nconst darkenColor = (color: string, amount: number = 0.05) => darken(amount, color)\n\n// この preset を各プロダクトでも読み込んでもらう想定\nexport default {\n content: [],\n theme: {\n backgroundColor: ({ theme }) => ({\n black: defaultColor.GREY_100,\n white: defaultColor.WHITE,\n 'white-darken': theme('colors.white-darken'),\n background: defaultColor.BACKGROUND,\n border: theme('colors.grey.20'),\n brand: theme('colors.brand'),\n column: defaultColor.COLUMN,\n 'column-darken': darkenColor(defaultColor.COLUMN),\n 'base-grey': defaultColor.BASE_GREY,\n 'over-background': defaultColor.OVER_BACKGROUND,\n head: defaultColor.HEAD,\n 'head-darken': darkenColor(defaultColor.HEAD),\n 'action-background': defaultColor.ACTION_BACKGROUND,\n main: defaultColor.MAIN,\n 'main-darken': theme('colors.main-darken'),\n danger: defaultColor.DANGER,\n 'danger-darken': theme('colors.danger-darken'),\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n 'warning-yellow-darken': theme('colors.warning-yellow-darken'),\n overlay: defaultColor.OVERLAY,\n scrim: defaultColor.SCRIM,\n green: theme('colors.green'),\n grey: {\n 9: theme('colors.grey.9'),\n '9-darken': darkenColor(theme('colors.grey.9')),\n },\n inherit: 'inherit',\n transparent: 'transparent',\n }),\n borderRadius: {\n none: '0',\n s: '4px',\n m: '6px',\n l: '8px',\n em: '1em',\n full: '9999px',\n },\n boxShadow: {\n 'layer-0': defaultShadow.LAYER0,\n 'layer-1': defaultShadow.LAYER1,\n 'layer-2': defaultShadow.LAYER2,\n 'layer-3': defaultShadow.LAYER3,\n 'layer-4': defaultShadow.LAYER4,\n outline: defaultShadow.OUTLINE,\n underline: defaultShadow.UNDERLINE,\n 'input-hover': defaultShadow.INPUT_HOVER,\n none: 'none',\n },\n colors: {\n black: defaultColor.GREY_100,\n white: defaultColor.WHITE,\n 'white-darken': darkenColor(defaultColor.WHITE),\n main: defaultColor.MAIN,\n 'main-darken': darkenColor(defaultColor.MAIN),\n link: defaultColor.TEXT_LINK,\n brand: defaultColor.BRAND,\n outline: defaultColor.OUTLINE,\n danger: defaultColor.DANGER,\n 'danger-darken': darkenColor(defaultColor.DANGER),\n 'warning-yellow': defaultColor.WARNING_YELLOW,\n 'warning-yellow-darken': darkenColor(defaultColor.WARNING_YELLOW),\n // 色トークン周りの整理が必要(GREEN_100 と ORANGE_100 は primitive にしかない。)\n green: '#0f7f85',\n orange: '#f56121',\n grey: {\n DEFAULT: defaultColor.GREY_65,\n 5: defaultColor.GREY_5,\n 6: defaultColor.GREY_6,\n 7: defaultColor.GREY_7,\n 9: defaultColor.GREY_9,\n 20: defaultColor.GREY_20,\n 30: defaultColor.GREY_30,\n 65: defaultColor.GREY_65,\n 100: defaultColor.GREY_100,\n },\n transparency: {\n 15: defaultColor.TRANSPARENCY_15,\n 30: defaultColor.TRANSPARENCY_30,\n 50: defaultColor.TRANSPARENCY_50,\n },\n inherit: 'inherit',\n transparent: 'transparent',\n current: 'currentColor',\n },\n fontFamily: {\n inherit: 'inherit',\n },\n fontSize: {\n '2xs': defaultFontSize.XXS,\n xs: defaultFontSize.XS,\n sm: defaultFontSize.S,\n base: defaultFontSize.M,\n lg: defaultFontSize.L,\n xl: defaultFontSize.XL,\n '2xl': defaultFontSize.XXL,\n inherit: 'inherit',\n },\n lineHeight: {\n none: '1',\n tight: '1.25',\n normal: '1.5',\n loose: '1.75',\n },\n maxWidth: {\n none: 'none',\n full: '100%',\n min: 'min-content',\n max: 'max-content',\n fit: 'fit-content',\n },\n outlineColor: {\n DEFAULT: defaultColor.OUTLINE,\n },\n spacing: {\n px: '1px',\n em: '1em',\n ...(spacingSizes\n .map((size) => ({\n [size]: spacingByChar(size),\n }))\n .reduce((a, c) => Object.assign(a, c), {}) as Spacing),\n },\n stroke: {\n black: defaultColor.GREY_100,\n },\n textColor: ({ theme }) => ({\n main: theme('colors.main'),\n black: theme('colors.black'),\n white: theme('colors.white'),\n 'white-darken': theme('colors.white-darken'),\n disabled: theme('colors.grey.30'),\n link: theme('colors.link'),\n // ACTION_BACKGROUND とコントラスト比 4.5 を達成するために調整\n 'link-darken': darkenColor(theme('colors.link'), 0.062),\n grey: theme('colors.grey.65'),\n danger: theme('colors.danger'),\n green: theme('colors.green'),\n 'color-inherit': 'inherit',\n transparent: 'transparent',\n }),\n zIndex: {\n auto: 'auto',\n 0: '0',\n 1: '1',\n 'fixed-menu': `${defaultZIndex.FIXED_MENU}`,\n 'overlap-base': `${defaultZIndex.OVERLAP_BASE}`,\n overlap: `${defaultZIndex.OVERLAP}`,\n 'flash-message': `${defaultZIndex.FLASH_MESSAGE}`,\n },\n extend: {\n aria: {\n 'current-page': 'current=\"page\"',\n },\n minHeight: ({ theme }) => ({\n ...theme('spacing'),\n }),\n borderWidth: {\n 6: '6px',\n },\n borderColor: ({ theme }) => ({\n default: theme('colors.grey.20'),\n disabled: theme('colors.grey.20 / 50%'),\n darken: darkenColor(theme('colors.grey.20')),\n 'high-contrast': theme('colors.grey.100'),\n link: theme('colors.link'),\n orange: theme('colors.orange'),\n green: theme('colors.green'),\n }),\n strokeWidth: {\n '0.5': '0.5',\n },\n keyframes: ({ theme }) => ({\n 'loader-fade-in': {\n '0%': {\n opacity: '0',\n },\n to: {\n opacity: '1',\n },\n },\n 'loader-line-full-unfill-rotate': {\n '12.5%': {\n transform: 'rotate(135deg)',\n },\n '25%': {\n transform: 'rotate(270deg)',\n },\n '37.5%': {\n transform: 'rotate(405deg)',\n },\n '50%': {\n transform: 'rotate(540deg)',\n },\n '62.5%': {\n transform: 'rotate(675deg)',\n },\n '75%': {\n transform: 'rotate(810deg)',\n },\n '87.5%': {\n transform: 'rotate(945deg)',\n },\n to: {\n transform: 'rotate(1080deg)',\n },\n },\n 'loader-line1-fade-in-out': {\n '0%': {\n opacity: '1',\n },\n '25%': {\n opacity: '1',\n },\n '26%': {\n opacity: '0',\n },\n '89%': {\n opacity: '0',\n },\n '90%': {\n opacity: '1',\n },\n to: {\n opacity: '1',\n },\n },\n 'loader-line2-fade-in-out': {\n '0%': {\n opacity: '0',\n },\n '15%': {\n opacity: '0',\n },\n '25%': {\n opacity: '1',\n },\n '50%': {\n opacity: '1',\n },\n '51%': {\n opacity: '0',\n },\n },\n 'loader-line3-fade-in-out': {\n '0%': {\n opacity: '0',\n },\n '40%': {\n opacity: '0',\n },\n '50%': {\n opacity: '1',\n },\n '75%': {\n opacity: '1',\n },\n '76%': {\n opacity: '0',\n },\n },\n 'loader-line4-fade-in-out': {\n '0%': {\n opacity: '0',\n },\n '65%': {\n opacity: '0',\n },\n '75%': {\n opacity: '1',\n },\n '90%': {\n opacity: '1',\n },\n to: {\n opacity: '0',\n },\n },\n 'loader-left-spin': {\n '0%, 100%': { transform: 'rotate(130deg)' },\n '50%': { transform: 'rotate(-5deg)' },\n },\n 'loader-right-spin': {\n '0%, 100%': { transform: 'rotate(-130deg)' },\n '50%': { transform: 'rotate(5deg)' },\n },\n 'notification-bar-slide-in': {\n from: {\n opacity: '0',\n /* 1行の場合の高さ分だけスライドさせる */\n transform: `translateY(calc(-1 * calc(${theme('fontSize.base')} * ${theme('lineHeight.tight')} + ${theme('spacing')[1.5]})))`,\n },\n to: {\n opacity: '1',\n transform: 'translateY(0)',\n },\n },\n 'flash-message-bounce': {\n 'from, 20%, 53%, 80%, to': {\n 'animation-timing-function': 'cubic-bezier(0.215, 0.61, 0.355, 1)',\n transform: 'translate3d(0, 0, 0)',\n },\n '40%, 43%': {\n 'animation-timing-function': 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',\n transform: 'translate3d(0, -30px, 0)',\n },\n '70%': {\n 'animation-timing-function': 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',\n transform: 'translate3d(0, -15px, 0)',\n },\n '90%': {\n transform: 'translate3d(0, -4px, 0)',\n },\n },\n }),\n },\n },\n corePlugins: {\n preflight: false,\n boxShadowColor: false,\n caretColor: false,\n divideColor: false,\n placeholderColor: false,\n ringColor: false,\n ringOffsetColor: false,\n textDecorationColor: false,\n },\n plugins: [\n plugin(({ matchUtilities, addComponents, addBase, addVariant, theme }) => {\n matchUtilities(\n {\n 'border-t': (value) => ({ 'border-top-style': value }),\n 'border-l': (value) => ({ 'border-left-style': value }),\n 'border-s': (value) => ({ 'border-inline-start-style': value }),\n },\n { values: { solid: 'solid', dashed: 'dashed', dotted: 'dotted' } },\n )\n\n addComponents({\n /**\n * box-shadow や ring を使った仕組みでは Firefox で欠陥があるため、独自定義している\n * via https://github.com/tailwindlabs/tailwindcss/issues/10226\n */\n '.focus-indicator': {\n outline: 'none',\n isolation: 'isolate',\n boxShadow: `0 0 0 2px ${theme('colors.white')}, 0 0 0 4px ${theme('colors.outline')}`,\n },\n '.focus-indicator--inner': {\n outline: 'none',\n isolation: 'isolate',\n boxShadow: `inset 0 0 0 2px ${theme('colors.outline')}, inset 0 0 0 4px ${theme('colors.white')}`,\n },\n '.border-shorthand': {\n borderWidth: theme('borderWidth.DEFAULT'),\n borderStyle: 'solid',\n borderColor: theme('borderColor.default'),\n },\n '.border-t-shorthand': {\n borderWidth: '0',\n borderTopWidth: theme('borderWidth.DEFAULT'),\n borderTopStyle: 'solid',\n borderTopColor: theme('borderColor.default'),\n },\n '.border-r-shorthand': {\n borderWidth: '0',\n borderRightWidth: theme('borderWidth.DEFAULT'),\n borderRightStyle: 'solid',\n borderRightColor: theme('borderColor.default'),\n },\n '.border-b-shorthand': {\n borderWidth: '0',\n borderBottomWidth: theme('borderWidth.DEFAULT'),\n borderBottomStyle: 'solid',\n borderBottomColor: theme('borderColor.default'),\n },\n '.border-l-shorthand': {\n borderWidth: '0',\n borderLeftWidth: theme('borderWidth.DEFAULT'),\n borderLeftStyle: 'solid',\n borderLeftColor: theme('borderColor.default'),\n },\n })\n addBase({\n body: {\n overflowWrap: 'break-word',\n fontFamily: 'system-ui, sans-serif',\n lineHeight: theme('lineHeight.normal'),\n color: theme('colors.black'),\n // Windows 環境で Yu Gothic が不用意に記号を詰めてしまうのを避ける\n textSpacingTrim: 'space-all',\n },\n 'p, dl': {\n marginBlock: 'unset',\n },\n 'menu, ul, ol': {\n marginBlock: 'unset',\n paddingInlineStart: 'unset',\n },\n dd: {\n marginInlineStart: 'unset',\n },\n 'button, input, textarea, select': {\n fontFamily: 'inherit',\n },\n input: {\n paddingInline: 'unset',\n },\n 'input[type=search]': {\n appearance: 'none',\n boxSizing: 'unset',\n },\n textarea: {\n marginInline: 'unset',\n },\n button: {\n // Safari の UA スタイルで margin が設定されているため\n margin: 'unset',\n },\n a: {\n color: 'inherit',\n },\n })\n addVariant('forced-colors', '@media (forced-colors: active)')\n }),\n ],\n prefix: 'shr-',\n} satisfies Config\n"],"names":["defaultConfig","darken","spacingSizes"],"mappings":";;;;;;;;;AAYAA,EAAa,CAAC,aAAa,GAAG;AAC5B,IAAA,MAAM,EAAE,MAAM;AACd,IAAA,WAAW,EAAE;AACX,QAAA,SAAS,EAAE;AACT,YAAA;AACE,gBAAA,MAAM,EAAE;oBACN,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,SAAS;oBACT,WAAW;oBACX,aAAa;oBACb,MAAM;AACP,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,kBAAkB,EAAE;YAClB,kBAAkB;YAClB,oBAAoB;YACpB,oBAAoB;YACpB,oBAAoB;YACpB,oBAAoB;AACrB,SAAA;AACD,QAAA,WAAW,EAAE;AACX,YAAA;AACE,gBAAA,IAAI,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC;AAChE,aAAA;AACF,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA;gBACE,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;AAC9C,aAAA;AACF,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA;AACE,gBAAA,CAAC,EAAE;oBACD,MAAM;oBACN,GAAG;oBACH,GAAG;oBACH,YAAY;oBACZ,cAAc;oBACd,SAAS;oBACT,eAAe;oBACf,CAAC,SAAiB,KAAK,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC;AACnD,iBAAA;AACF,aAAA;AACF,SAAA;AACD,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,oBAAA,UAAU,EAAE,uBAAuB;AACnC,oBAAA,UAAU,EAAE,KAAK,CAAC,mBAAmB,CAAC;AACtC,oBAAA,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC;;AAE5B,oBAAA,eAAe,EAAE,WAAW;AAC7B,iBAAA;AACD,gBAAA,OAAO,EAAE;AACP,oBAAA,WAAW,EAAE,OAAO;AACrB,iBAAA;AACD,gBAAA,cAAc,EAAE;AACd,oBAAA,WAAW,EAAE,OAAO;AACpB,oBAAA,kBAAkB,EAAE,OAAO;AAC5B,iBAAA;AACD,gBAAA,EAAE,EAAE;AACF,oBAAA,iBAAiB,EAAE,OAAO;AAC3B,iBAAA;AACD,gBAAA,iCAAiC,EAAE;AACjC,oBAAA,UAAU,EAAE,SAAS;AACtB,iBAAA;AACD,gBAAA,KAAK,EAAE;AACL,oBAAA,aAAa,EAAE,OAAO;AACvB,iBAAA;AACD,gBAAA,oBAAoB,EAAE;AACpB,oBAAA,UAAU,EAAE,MAAM;AAClB,oBAAA,SAAS,EAAE,OAAO;AACnB,iBAAA;AACD,gBAAA,QAAQ,EAAE;AACR,oBAAA,YAAY,EAAE,OAAO;AACtB,iBAAA;AACD,gBAAA,MAAM,EAAE;;AAEN,oBAAA,MAAM,EAAE,OAAO;AAChB,iBAAA;AACD,gBAAA,CAAC,EAAE;AACD,oBAAA,KAAK,EAAE,SAAS;AACjB,iBAAA;AACF,aAAA,CAAC;AACF,YAAA,UAAU,CAAC,eAAe,EAAE,gCAAgC,CAAC;AAC/D,SAAC,CAAC;AACH,KAAA;AACD,IAAA,MAAM,EAAE,MAAM;CACE;;;;"}
@@ -38,7 +38,6 @@ export declare const defaultColor: {
38
38
  MAIN: string;
39
39
  OUTLINE: string;
40
40
  DANGER: string;
41
- WARNING: string;
42
41
  WARNING_YELLOW: string;
43
42
  OVERLAY: string;
44
43
  SCRIM: string;
@@ -22,7 +22,6 @@ const primitiveTokens = {
22
22
  BLUE_100: '#0077c7',
23
23
  BLUE_101: '#0071c1',
24
24
  RED_100: '#e01e5a',
25
- ORANGE_100: '#ff8800',
26
25
  YELLOW_100: '#ffcc17',
27
26
  SMARTHR_BLUE: '#00c4cc',
28
27
  };
@@ -43,7 +42,6 @@ const semanticTokens = {
43
42
  MAIN: primitiveTokens.BLUE_100,
44
43
  OUTLINE: primitiveTokens.BLUE_100,
45
44
  DANGER: primitiveTokens.RED_100,
46
- WARNING: primitiveTokens.ORANGE_100,
47
45
  WARNING_YELLOW: primitiveTokens.YELLOW_100,
48
46
  OVERLAY: transparencyScale.TRANSPARENCY_15,
49
47
  SCRIM: transparencyScale.TRANSPARENCY_50,
@@ -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 RED_100: '#e01e5a',\n ORANGE_100: '#ff8800',\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: primitiveTokens.ORANGE_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 hoverColor: (value: string): string => darken(0.05, value),\n disableColor: (value: string): string => rgba(value, 0.5),\n ...defaultColor,\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,S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Ae,CAAC,OAAO;IAC/B,OAAO,EAAE,eAAe,CAAC,UAAU;IACnC,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;AAStE,MAAA,WAAW,GAAG,CAAC,SAAyB,KAAuB;AAC1E,IAAA,MAAM,MAAM,GAAG;QACb,UAAU,EAAE,CAAC,KAAa,KAAaA,eAAM,CAAC,IAAI,EAAE,KAAK,CAAC;QAC1D,YAAY,EAAE,CAAC,KAAa,KAAa,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC;AACzD,QAAA,GAAG,YAAY;KAChB;IAED,IAAI,CAAC,SAAS,EAAE;AACd,QAAA,OAAO,MAAM;;AAGf,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 hoverColor: (value: string): string => darken(0.05, value),\n disableColor: (value: string): string => rgba(value, 0.5),\n ...defaultColor,\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,IAEA,OAAO,EAAE,SAAS;AAClB,IAAA,UAAU,EAAE,SAAS;AACrB,IAAA,YAAY,EAAE,SAAS;CACxB;AAED,MAAM,cAAc,GAAG;IACrB,UAAU,EAAE,SAAS,CAAC,QAAQ;IAC9B,UAAU,EAAE,eAAe,CAAC,KAAK;IACjC,SAAS,EAAE,SAAS,CAAC,OAAO;IAC5B,aAAa,EAAE,SAAS,CAAC,OAAO;IAChC,SAAS,EAAE,eAAe,CAAC,QAAQ;IACnC,KAAK,EAAE,eAAe,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green: string;
15
+ orange: string;
14
16
  grey: {
15
17
  DEFAULT: string;
16
18
  5: string;
@@ -40,6 +42,7 @@ export declare const colors: {
40
42
  'link-darken': string;
41
43
  grey: any;
42
44
  danger: any;
45
+ green: any;
43
46
  'color-inherit': string;
44
47
  transparent: string;
45
48
  }, fontSize: {
@@ -73,6 +76,7 @@ export declare const colors: {
73
76
  'warning-yellow-darken': any;
74
77
  overlay: string;
75
78
  scrim: string;
79
+ green: any;
76
80
  grey: {
77
81
  9: any;
78
82
  '9-darken': string;
@@ -14,10 +14,8 @@ exports.classNameGenerator = (0, tailwind_variants_1.tv)({
14
14
  color: {
15
15
  grey: 'shr-border-grey-20',
16
16
  blue: 'shr-border-main',
17
- /* green がトークン化されたら置き換える */
18
- green: 'shr-border-[#0f7f85]',
19
- /* oragen がトークン化されたら置き換える */
20
- orange: 'shr-border-[#ff8800]',
17
+ green: 'shr-border-green',
18
+ orange: 'shr-border-orange',
21
19
  red: 'shr-border-danger',
22
20
  },
23
21
  size: {
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":";;;;AAAA,iCAA+F;AAC/F,yDAAyD;AAM5C,QAAA,kBAAkB,GAAG,IAAA,sBAAE,EAAC;IACnC,IAAI,EAAE;QACJ,iBAAiB;QACjB,oFAAoF;QACpF,wCAAwC;KACzC;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,iBAAiB;YACvB,2BAA2B;YAC3B,KAAK,EAAE,sBAAsB;YAC7B,4BAA4B;YAC5B,MAAM,EAAE,sBAAsB;YAC9B,GAAG,EAAE,mBAAmB;SACzB;QACD,IAAI,EAAE;YACJ,CAAC,EAAE,oCAAoC;SACxC;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,mCAAmC;SAC1C;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,GAAG;QACT,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAA;AAEK,MAAM,IAAI,GAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAChF,MAAM,eAAe,GAAG,IAAA,eAAO,EAC7B,GAAG,EAAE,CAAC,IAAA,0BAAkB,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAC9D,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CACnC,CAAA;IACD,OAAO,oCAAU,KAAK,EAAE,SAAS,EAAE,eAAe,GAAI,CAAA;AACxD,CAAC,CAAA;AANY,QAAA,IAAI,QAMhB","sourcesContent":["import { type ComponentPropsWithoutRef, type FC, type PropsWithChildren, useMemo } from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\ntype Props = PropsWithChildren<\n VariantProps<typeof classNameGenerator> & ComponentPropsWithoutRef<'span'>\n>\n\nexport const classNameGenerator = tv({\n base: [\n 'smarthr-ui-Chip',\n 'shr-border-shorthand shr-rounded-full shr-bg-white shr-text-black shr-leading-none',\n 'contrast-more:shr-border-high-contrast',\n ],\n variants: {\n color: {\n grey: 'shr-border-grey-20',\n blue: 'shr-border-main',\n /* green がトークン化されたら置き換える */\n green: 'shr-border-[#0f7f85]',\n /* oragen がトークン化されたら置き換える */\n orange: 'shr-border-[#ff8800]',\n red: 'shr-border-danger',\n },\n size: {\n s: 'shr-text-sm shr-px-0.5 shr-py-0.25',\n },\n disabled: {\n true: 'shr-bg-white/50 shr-text-disabled',\n },\n },\n defaultVariants: {\n size: 's',\n color: 'grey',\n },\n})\n\nexport const Chip: FC<Props> = ({ size, color, disabled, className, ...props }) => {\n const actualClassName = useMemo(\n () => classNameGenerator({ size, color, disabled, className }),\n [size, color, disabled, className],\n )\n return <span {...props} className={actualClassName} />\n}\n"]}
1
+ {"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":";;;;AAAA,iCAA+F;AAC/F,yDAAyD;AAM5C,QAAA,kBAAkB,GAAG,IAAA,sBAAE,EAAC;IACnC,IAAI,EAAE;QACJ,iBAAiB;QACjB,oFAAoF;QACpF,wCAAwC;KACzC;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,kBAAkB;YACzB,MAAM,EAAE,mBAAmB;YAC3B,GAAG,EAAE,mBAAmB;SACzB;QACD,IAAI,EAAE;YACJ,CAAC,EAAE,oCAAoC;SACxC;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,mCAAmC;SAC1C;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,GAAG;QACT,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAA;AAEK,MAAM,IAAI,GAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAChF,MAAM,eAAe,GAAG,IAAA,eAAO,EAC7B,GAAG,EAAE,CAAC,IAAA,0BAAkB,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAC9D,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CACnC,CAAA;IACD,OAAO,oCAAU,KAAK,EAAE,SAAS,EAAE,eAAe,GAAI,CAAA;AACxD,CAAC,CAAA;AANY,QAAA,IAAI,QAMhB","sourcesContent":["import { type ComponentPropsWithoutRef, type FC, type PropsWithChildren, useMemo } from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\ntype Props = PropsWithChildren<\n VariantProps<typeof classNameGenerator> & ComponentPropsWithoutRef<'span'>\n>\n\nexport const classNameGenerator = tv({\n base: [\n 'smarthr-ui-Chip',\n 'shr-border-shorthand shr-rounded-full shr-bg-white shr-text-black shr-leading-none',\n 'contrast-more:shr-border-high-contrast',\n ],\n variants: {\n color: {\n grey: 'shr-border-grey-20',\n blue: 'shr-border-main',\n green: 'shr-border-green',\n orange: 'shr-border-orange',\n red: 'shr-border-danger',\n },\n size: {\n s: 'shr-text-sm shr-px-0.5 shr-py-0.25',\n },\n disabled: {\n true: 'shr-bg-white/50 shr-text-disabled',\n },\n },\n defaultVariants: {\n size: 's',\n color: 'grey',\n },\n})\n\nexport const Chip: FC<Props> = ({ size, color, disabled, className, ...props }) => {\n const actualClassName = useMemo(\n () => classNameGenerator({ size, color, disabled, className }),\n [size, color, disabled, className],\n )\n return <span {...props} className={actualClassName} />\n}\n"]}
@@ -18,7 +18,7 @@ exports.classNameGenerator = (0, tailwind_variants_1.tv)({
18
18
  blue: 'shr-text-main',
19
19
  /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。
20
20
  * https://smarthr.design/basics/colors/#h4-1 */
21
- green: 'shr-text-[#0f7f85]',
21
+ green: 'shr-text-green',
22
22
  red: 'shr-text-danger',
23
23
  warning: 'shr-border-warning-yellow shr-bg-warning-yellow shr-text-black',
24
24
  error: 'shr-bg-danger shr-border-danger shr-text-white',
@@ -43,7 +43,7 @@ exports.classNameGenerator = (0, tailwind_variants_1.tv)({
43
43
  bold: true,
44
44
  /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。
45
45
  * https://smarthr.design/basics/colors/#h4-1 */
46
- class: 'shr-border-[#0f7f85] shr-bg-[#0f7f85]',
46
+ class: 'shr-border-green shr-bg-green',
47
47
  },
48
48
  {
49
49
  type: 'red',
@@ -1 +1 @@
1
- {"version":3,"file":"StatusLabel.js","sourceRoot":"","sources":["../../../src/components/StatusLabel/StatusLabel.tsx"],"names":[],"mappings":";;;;AAAA,iCAMc;AACd,yDAAyD;AAEzD,kCAA4E;AAE/D,QAAA,kBAAkB,GAAG,IAAA,sBAAE,EAAC;IACnC,IAAI,EAAE;QACJ,wBAAwB;QACxB,6OAA6O;QAC7O,sBAA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E,IAAI,EAAE,IAAI,GAAI,EAC/B,QAAQ,IACJ,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,MAAM,IAAI,GAAqC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE;IAChE,IAAI,IAAI,EAAE,CAAC;QACT,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,SAAS;gBACZ,OAAO,uBAAC,gCAAyB,KAAG,CAAA;YACtC,KAAK,OAAO;gBACV,OAAO,uBAAC,8BAAuB,KAAG,CAAA;QACtC,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type FC,\n type PropsWithChildren,\n memo,\n useMemo,\n} from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\nimport { FaCircleExclamationIcon, FaTriangleExclamationIcon } from '../Icon'\n\nexport const classNameGenerator = tv({\n base: [\n 'smarthr-ui-StatusLabel',\n 'shr-box-content shr-inline-flex shr-items-center shr-justify-center shr-gap-0.25 shr-border-shorthand shr-border-current shr-bg-white shr-px-0.5 shr-py-0.25 shr-whitespace-nowrap shr-text-sm shr-font-bold shr-min-w-[3.5em] shr-min-h-em',\n // ラベルが天地中央に揃わないため暫定対応\n 'shr-leading-[0]',\n ],\n variants: {\n type: {\n grey: ['shr-border-grey-20 shr-text-grey', 'contrast-more:shr-border-high-contrast'],\n blue: 'shr-text-main',\n /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。\n * https://smarthr.design/basics/colors/#h4-1 */\n green: 'shr-text-[#0f7f85]',\n red: 'shr-text-danger',\n warning: 'shr-border-warning-yellow shr-bg-warning-yellow shr-text-black',\n error: 'shr-bg-danger shr-border-danger shr-text-white',\n },\n bold: {\n true: 'shr-text-white',\n },\n },\n compoundVariants: [\n {\n type: 'grey',\n bold: true,\n class: 'shr-border-grey-65 shr-bg-[theme(colors.grey.65)]',\n },\n {\n type: 'blue',\n bold: true,\n class: 'shr-border-main shr-bg-main',\n },\n {\n type: 'green',\n bold: true,\n /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。\n * https://smarthr.design/basics/colors/#h4-1 */\n class: 'shr-border-[#0f7f85] shr-bg-[#0f7f85]',\n },\n {\n type: 'red',\n bold: true,\n class: 'shr-border-danger shr-bg-danger',\n },\n {\n type: 'warning',\n bold: true,\n class: 'shr-border-current shr-text-black',\n },\n ],\n})\n\ntype BaseProps = VariantProps<typeof classNameGenerator>\ntype ElementProps = Omit<ComponentPropsWithoutRef<'span'>, keyof BaseProps>\ntype Props = PropsWithChildren<BaseProps & ElementProps>\n\nexport const StatusLabel = memo<Props>(\n ({ type = 'grey', bold = false, className, children, ...props }) => {\n const actualClassName = useMemo(\n () =>\n classNameGenerator({\n className,\n type,\n bold,\n }),\n [type, bold, className],\n )\n\n return (\n <span {...props} className={actualClassName}>\n <Icon type={type} bold={bold} />\n {children}\n </span>\n )\n },\n)\n\nconst Icon: FC<Pick<Props, 'type' | 'bold'>> = ({ type, bold }) => {\n if (bold) {\n switch (type) {\n case 'warning':\n return <FaTriangleExclamationIcon />\n case 'error':\n return <FaCircleExclamationIcon />\n }\n }\n\n return null\n}\n"]}
1
+ {"version":3,"file":"StatusLabel.js","sourceRoot":"","sources":["../../../src/components/StatusLabel/StatusLabel.tsx"],"names":[],"mappings":";;;;AAAA,iCAMc;AACd,yDAAyD;AAEzD,kCAA4E;AAE/D,QAAA,kBAAkB,GAAG,IAAA,sBAAE,EAAC;IACnC,IAAI,EAAE;QACJ,wBAAwB;QACxB,6OAA6O;QAC7O,sBAAsB;QACtB,iBAAiB;KAClB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,IAAI,EAAE,CAAC,kCAAkC,EAAE,wCAAwC,CAAC;YACpF,IAAI,EAAE,eAAe;YACrB;4DACgD;YAChD,KAAK,EAAE,gBAAgB;YACvB,GAAG,EAAE,iBAAiB;YACtB,OAAO,EAAE,gEAAgE;YACzE,KAAK,EAAE,gDAAgD;S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AAG,CAAA;YACtC,KAAK,OAAO;gBACV,OAAO,uBAAC,8BAAuB,KAAG,CAAA;QACtC,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type FC,\n type PropsWithChildren,\n memo,\n useMemo,\n} from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\nimport { FaCircleExclamationIcon, FaTriangleExclamationIcon } from '../Icon'\n\nexport const classNameGenerator = tv({\n base: [\n 'smarthr-ui-StatusLabel',\n 'shr-box-content shr-inline-flex shr-items-center shr-justify-center shr-gap-0.25 shr-border-shorthand shr-border-current shr-bg-white shr-px-0.5 shr-py-0.25 shr-whitespace-nowrap shr-text-sm shr-font-bold shr-min-w-[3.5em] shr-min-h-em',\n // ラベルが天地中央に揃わないため暫定対応\n 'shr-leading-[0]',\n ],\n variants: {\n type: {\n grey: ['shr-border-grey-20 shr-text-grey', 'contrast-more:shr-border-high-contrast'],\n blue: 'shr-text-main',\n /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。\n * https://smarthr.design/basics/colors/#h4-1 */\n green: 'shr-text-green',\n red: 'shr-text-danger',\n warning: 'shr-border-warning-yellow shr-bg-warning-yellow shr-text-black',\n error: 'shr-bg-danger shr-border-danger shr-text-white',\n },\n bold: {\n true: 'shr-text-white',\n },\n },\n compoundVariants: [\n {\n type: 'grey',\n bold: true,\n class: 'shr-border-grey-65 shr-bg-[theme(colors.grey.65)]',\n },\n {\n type: 'blue',\n bold: true,\n class: 'shr-border-main shr-bg-main',\n },\n {\n type: 'green',\n bold: true,\n /* SmartHR 基本色の Aqua04。StatusLabel 以外では使いません。\n * https://smarthr.design/basics/colors/#h4-1 */\n class: 'shr-border-green shr-bg-green',\n },\n {\n type: 'red',\n bold: true,\n class: 'shr-border-danger shr-bg-danger',\n },\n {\n type: 'warning',\n bold: true,\n class: 'shr-border-current shr-text-black',\n },\n ],\n})\n\ntype BaseProps = VariantProps<typeof classNameGenerator>\ntype ElementProps = Omit<ComponentPropsWithoutRef<'span'>, keyof BaseProps>\ntype Props = PropsWithChildren<BaseProps & ElementProps>\n\nexport const StatusLabel = memo<Props>(\n ({ type = 'grey', bold = false, className, children, ...props }) => {\n const actualClassName = useMemo(\n () =>\n classNameGenerator({\n className,\n type,\n bold,\n }),\n [type, bold, className],\n )\n\n return (\n <span {...props} className={actualClassName}>\n <Icon type={type} bold={bold} />\n {children}\n </span>\n )\n },\n)\n\nconst Icon: FC<Pick<Props, 'type' | 'bold'>> = ({ type, bold }) => {\n if (bold) {\n switch (type) {\n case 'warning':\n return <FaTriangleExclamationIcon />\n case 'error':\n return <FaCircleExclamationIcon />\n }\n }\n\n return null\n}\n"]}
package/lib/index.d.ts CHANGED
@@ -3,7 +3,6 @@ export { Balloon } from './components/Balloon';
3
3
  export { Checkbox } from './components/Checkbox';
4
4
  export * from './components/Chip';
5
5
  export { Dropdown, DropdownTrigger, DropdownContent, DropdownCloser, FilterDropdown, DropdownMenuButton, DropdownMenuGroup, SortDropdown, } from './components/Dropdown';
6
- export * from './components/FlashMessage';
7
6
  export { FloatArea } from './components/FloatArea';
8
7
  export { Input, CurrencyInput, SearchInput } from './components/Input';
9
8
  export { InputFile } from './components/InputFile';
package/lib/index.js CHANGED
@@ -35,7 +35,6 @@ Object.defineProperty(exports, "FilterDropdown", { enumerable: true, get: functi
35
35
  Object.defineProperty(exports, "DropdownMenuButton", { enumerable: true, get: function () { return Dropdown_1.DropdownMenuButton; } });
36
36
  Object.defineProperty(exports, "DropdownMenuGroup", { enumerable: true, get: function () { return Dropdown_1.DropdownMenuGroup; } });
37
37
  Object.defineProperty(exports, "SortDropdown", { enumerable: true, get: function () { return Dropdown_1.SortDropdown; } });
38
- __exportStar(require("./components/FlashMessage"), exports);
39
38
  var FloatArea_1 = require("./components/FloatArea");
40
39
  Object.defineProperty(exports, "FloatArea", { enumerable: true, get: function () { return FloatArea_1.FloatArea; } });
41
40
  var Input_1 = require("./components/Input");
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Ac,OAAA;AAElC,SAAS;AACT,oDAAkD;AAAzC,0GAAA,WAAW,OAAA;AACpB,wDAAsD;AAA7C,8GAAA,aAAa,OAAA;AACtB,oDAAmD;AAA1C,2GAAA,YAAY,OAAA;AACrB,gEAA+D;AAAtD,uHAAA,kBAAkB,OAAA;AAC3B,sDAAqD;AAA5C,6GAAA,aAAa,OAAA;AACtB,sDAAqD;AAA5C,6GAAA,aAAa,OAAA;AACtB,0DAAyD;AAAhD,iHAAA,eAAe,OAAA;AACxB,wDAAuD;AAA9C,+GAAA,cAAc,OAAA;AACvB,wDAAuD;AAA9C,+GAAA,cAAc,OAAA;AACvB,8DAA6D;AAApD,qHAAA,iBAAiB,OAAA;AAE1B,eAAe;AACf,+BAAsE;AAA7D,oGAAA,YAAY,OAAA;AAAE,+FAAA,OAAO,OAAA;AAAE,qGAAA,aAAa,OAAA;AAAE,+FAAA,OAAO,OAAA;AAEtD,YAAY;AACZ,yCAA0E;AAAjE,wGAAA,WAAW,OAAA;AAAE,yGAAA,YAAY,OAAA;AAAE,8GAAA,iBAAiB,OAAA","sourcesContent":["// components\nexport { DisclosureTrigger, DisclosureContent } from './components/Disclosure'\nexport { Balloon } from './components/Balloon'\nexport { Checkbox } from './components/Checkbox'\nexport * from './components/Chip'\nexport {\n Dropdown,\n DropdownTrigger,\n DropdownContent,\n DropdownCloser,\n FilterDropdown,\n DropdownMenuButton,\n DropdownMenuGroup,\n SortDropdown,\n} from './components/Dropdown'\nexport * from './components/FlashMessage'\nexport { FloatArea } from './components/FloatArea'\nexport { Input, CurrencyInput, SearchInput } from './components/Input'\nexport { InputFile } from './components/InputFile'\nexport { Textarea } from './components/Textarea'\nexport { TextLink, HelpLink, UpwardLink } from './components/TextLink'\nexport { Loader } from './components/Loader'\nexport {\n ActionDialog,\n FormDialog,\n Dialog,\n DialogCloser,\n DialogContent,\n DialogTrigger,\n DialogWrapper,\n MessageDialog,\n MessageDialogContent,\n ModelessDialog,\n RemoteDialogTrigger,\n RemoteTriggerActionDialog,\n RemoteTriggerFormDialog,\n RemoteTriggerStepFormDialog,\n RemoteTriggerMessageDialog,\n StepFormDialog,\n StepFormDialogItem,\n} from './components/Dialog'\nexport { Pagination } from './components/Pagination'\nexport { RadioButton } from './components/RadioButton'\nexport { RadioButtonPanel } from './components/RadioButtonPanel'\nexport { AnchorButton, Button, UnstyledButton } from './components/Button'\nexport { StatusLabel, RequiredLabel } from './components/StatusLabel'\nexport { Base, BaseColumn } from './components/Base'\nexport * from './components/Icon'\nexport { SmartHRAILogo } from './components/SmartHRAILogo'\nexport { SmartHRLogo } from './components/SmartHRLogo'\nexport * from './components/Table'\nexport * from './components/AppNavi'\nexport { TabBar, TabItem } from './components/TabBar'\nexport { Heading, PageHeading } from './components/Heading'\nexport { Select } from './components/Select'\nexport { DropZone } from './components/DropZone'\nexport { DefinitionList, DefinitionListItem } from './components/DefinitionList'\nexport {\n AccordionPanel,\n AccordionPanelItem,\n AccordionPanelContent,\n AccordionPanelTrigger,\n} from './components/AccordionPanel'\nexport { InformationPanel } from './components/InformationPanel'\nexport { Tooltip } from './components/Tooltip'\nexport { BottomFixedArea } from './components/BottomFixedArea'\nexport { ErrorScreen, MessageScreen } from './components/ErrorScreen'\nexport { Calendar } from './components/Calendar'\nexport { DatePicker } from './components/DatePicker'\nexport { SegmentedControl, type SegmentedControlOption } from './components/SegmentedControl'\nexport { FormControl } from './components/FormControl'\nexport { Fieldset } from './components/Fieldset'\nexport { MultiCombobox, SingleCombobox } from './components/Combobox'\nexport { SideNav, SideNavItemButton } from './components/SideNav'\nexport { Text } from './components/Text'\nexport { RangeSeparator } from './components/RangeSeparator'\nexport { LineClamp } from './components/LineClamp'\nexport { NotificationBar } from './components/NotificationBar'\nexport {\n AppLauncher,\n Header,\n HeaderLink,\n HeaderDropdownMenuButton,\n LanguageSwitcher,\n} from './components/Header'\nexport { PageCounter } from './components/PageCounter'\nexport { Article, Aside, Nav, Section } from './components/SectioningContent'\nexport { VisuallyHiddenText } from './components/VisuallyHiddenText'\nexport * from './components/SideMenu'\nexport * from './components/SpreadsheetTable'\nexport * from './components/ResponseMessage'\nexport * from './components/Badge'\nexport * from './components/Switch'\nexport * from './components/Stepper'\nexport * from './components/Picker'\nexport * from './components/Browser'\nexport * from './components/WarekiPicker'\nexport { AppHeader } from './components/AppHeader'\n\n// layout components\nexport { Center, Cluster, Reel, Stack, Sidebar } from './components/Layout'\n\n// hooks\nexport { useTheme } from './hooks/useTheme'\nexport { useDevice, DeviceProvider } from './hooks/useDevice'\n\n// themes\nexport { createTheme } from './themes/createTheme'\nexport { ThemeProvider } from './themes/ThemeProvider'\nexport { defaultColor } from './themes/createColor'\nexport { defaultInteraction } from './themes/createInteraction'\nexport { defaultBorder } from './themes/createBorder'\nexport { defaultRadius } from './themes/createRadius'\nexport { defaultFontSize } from './themes/createFontSize'\nexport { defaultLeading } from './themes/createLeading'\nexport { defaultSpacing } from './themes/createSpacing'\nexport { defaultBreakpoint } from './themes/createBreakpoint'\n\n// localization\nexport { IntlProvider, useIntl, DateFormatter, locales } from './intl'\n\n// constants\nexport { FONT_FAMILY, CHART_COLORS, OTHER_CHART_COLOR } from './constants'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,aAAa;AACb,sDAA8E;AAArE,+GAAA,iBAAiB,OAAA;AAAE,+GAAA,iBAAiB,OAAA;AAC7C,gDAA8C;AAArC,kGAAA,OAAO,OAAA;AAChB,kDAAgD;AAAvC,oGAAA,QAAQ,OAAA;AACjB,oDAAiC;AACjC,kDAS8B;AAR5B,oGAAA,QAAQ,OAAA;AACR,2GAAA,eAAe,OAAA;AACf,2GAAA,eAAe,OAAA;AACf,0GAAA,cAAc,OAAA;AACd,0GAAA,cAAc,OAAA;AACd,8GAAA,kBAAkB,OAAA;AAClB,6GAAA,iBAAiB,OAAA;AACjB,wGAAA,YAAY,OAAA;AAEd,oDAAkD;AAAzC,sGAAA,SAAS,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A;AAEtD,YAAY;AACZ,yCAA0E;AAAjE,wGAAA,WAAW,OAAA;AAAE,yGAAA,YAAY,OAAA;AAAE,8GAAA,iBAAiB,OAAA","sourcesContent":["// components\nexport { DisclosureTrigger, DisclosureContent } from './components/Disclosure'\nexport { Balloon } from './components/Balloon'\nexport { Checkbox } from './components/Checkbox'\nexport * from './components/Chip'\nexport {\n Dropdown,\n DropdownTrigger,\n DropdownContent,\n DropdownCloser,\n FilterDropdown,\n DropdownMenuButton,\n DropdownMenuGroup,\n SortDropdown,\n} from './components/Dropdown'\nexport { FloatArea } from './components/FloatArea'\nexport { Input, CurrencyInput, SearchInput } from './components/Input'\nexport { InputFile } from './components/InputFile'\nexport { Textarea } from './components/Textarea'\nexport { TextLink, HelpLink, UpwardLink } from './components/TextLink'\nexport { Loader } from './components/Loader'\nexport {\n ActionDialog,\n FormDialog,\n Dialog,\n DialogCloser,\n DialogContent,\n DialogTrigger,\n DialogWrapper,\n MessageDialog,\n MessageDialogContent,\n ModelessDialog,\n RemoteDialogTrigger,\n RemoteTriggerActionDialog,\n RemoteTriggerFormDialog,\n RemoteTriggerStepFormDialog,\n RemoteTriggerMessageDialog,\n StepFormDialog,\n StepFormDialogItem,\n} from './components/Dialog'\nexport { Pagination } from './components/Pagination'\nexport { RadioButton } from './components/RadioButton'\nexport { RadioButtonPanel } from './components/RadioButtonPanel'\nexport { AnchorButton, Button, UnstyledButton } from './components/Button'\nexport { StatusLabel, RequiredLabel } from './components/StatusLabel'\nexport { Base, BaseColumn } from './components/Base'\nexport * from './components/Icon'\nexport { SmartHRAILogo } from './components/SmartHRAILogo'\nexport { SmartHRLogo } from './components/SmartHRLogo'\nexport * from './components/Table'\nexport * from './components/AppNavi'\nexport { TabBar, TabItem } from './components/TabBar'\nexport { Heading, PageHeading } from './components/Heading'\nexport { Select } from './components/Select'\nexport { DropZone } from './components/DropZone'\nexport { DefinitionList, DefinitionListItem } from './components/DefinitionList'\nexport {\n AccordionPanel,\n AccordionPanelItem,\n AccordionPanelContent,\n AccordionPanelTrigger,\n} from './components/AccordionPanel'\nexport { InformationPanel } from './components/InformationPanel'\nexport { Tooltip } from './components/Tooltip'\nexport { BottomFixedArea } from './components/BottomFixedArea'\nexport { ErrorScreen, MessageScreen } from './components/ErrorScreen'\nexport { Calendar } from './components/Calendar'\nexport { DatePicker } from './components/DatePicker'\nexport { SegmentedControl, type SegmentedControlOption } from './components/SegmentedControl'\nexport { FormControl } from './components/FormControl'\nexport { Fieldset } from './components/Fieldset'\nexport { MultiCombobox, SingleCombobox } from './components/Combobox'\nexport { SideNav, SideNavItemButton } from './components/SideNav'\nexport { Text } from './components/Text'\nexport { RangeSeparator } from './components/RangeSeparator'\nexport { LineClamp } from './components/LineClamp'\nexport { NotificationBar } from './components/NotificationBar'\nexport {\n AppLauncher,\n Header,\n HeaderLink,\n HeaderDropdownMenuButton,\n LanguageSwitcher,\n} from './components/Header'\nexport { PageCounter } from './components/PageCounter'\nexport { Article, Aside, Nav, Section } from './components/SectioningContent'\nexport { VisuallyHiddenText } from './components/VisuallyHiddenText'\nexport * from './components/SideMenu'\nexport * from './components/SpreadsheetTable'\nexport * from './components/ResponseMessage'\nexport * from './components/Badge'\nexport * from './components/Switch'\nexport * from './components/Stepper'\nexport * from './components/Picker'\nexport * from './components/Browser'\nexport * from './components/WarekiPicker'\nexport { AppHeader } from './components/AppHeader'\n\n// layout components\nexport { Center, Cluster, Reel, Stack, Sidebar } from './components/Layout'\n\n// hooks\nexport { useTheme } from './hooks/useTheme'\nexport { useDevice, DeviceProvider } from './hooks/useDevice'\n\n// themes\nexport { createTheme } from './themes/createTheme'\nexport { ThemeProvider } from './themes/ThemeProvider'\nexport { defaultColor } from './themes/createColor'\nexport { defaultInteraction } from './themes/createInteraction'\nexport { defaultBorder } from './themes/createBorder'\nexport { defaultRadius } from './themes/createRadius'\nexport { defaultFontSize } from './themes/createFontSize'\nexport { defaultLeading } from './themes/createLeading'\nexport { defaultSpacing } from './themes/createSpacing'\nexport { defaultBreakpoint } from './themes/createBreakpoint'\n\n// localization\nexport { IntlProvider, useIntl, DateFormatter, locales } from './intl'\n\n// constants\nexport { FONT_FAMILY, CHART_COLORS, OTHER_CHART_COLOR } from './constants'\n"]}
@@ -23,6 +23,7 @@ declare const _default: {
23
23
  'warning-yellow-darken': any;
24
24
  overlay: string;
25
25
  scrim: string;
26
+ green: any;
26
27
  grey: {
27
28
  9: any;
28
29
  '9-darken': string;
@@ -62,6 +63,8 @@ declare const _default: {
62
63
  'danger-darken': string;
63
64
  'warning-yellow': string;
64
65
  'warning-yellow-darken': string;
66
+ green: string;
67
+ orange: string;
65
68
  grey: {
66
69
  DEFAULT: string;
67
70
  5: string;
@@ -153,6 +156,7 @@ declare const _default: {
153
156
  'link-darken': string;
154
157
  grey: any;
155
158
  danger: any;
159
+ green: any;
156
160
  'color-inherit': string;
157
161
  transparent: string;
158
162
  };
@@ -179,6 +183,8 @@ declare const _default: {
179
183
  darken: string;
180
184
  'high-contrast': any;
181
185
  link: any;
186
+ orange: any;
187
+ green: any;
182
188
  };
183
189
  strokeWidth: {
184
190
  '0.5': string;
@@ -91,6 +91,7 @@ exports.default = {
91
91
  'warning-yellow-darken': theme('colors.warning-yellow-darken'),
92
92
  overlay: createColor_1.defaultColor.OVERLAY,
93
93
  scrim: createColor_1.defaultColor.SCRIM,
94
+ green: theme('colors.green'),
94
95
  grey: {
95
96
  9: theme('colors.grey.9'),
96
97
  '9-darken': darkenColor(theme('colors.grey.9')),
@@ -130,6 +131,9 @@ exports.default = {
130
131
  'danger-darken': darkenColor(createColor_1.defaultColor.DANGER),
131
132
  'warning-yellow': createColor_1.defaultColor.WARNING_YELLOW,
132
133
  'warning-yellow-darken': darkenColor(createColor_1.defaultColor.WARNING_YELLOW),
134
+ // 色トークン周りの整理が必要(GREEN_100 と ORANGE_100 は primitive にしかない。)
135
+ green: '#0f7f85',
136
+ orange: '#f56121',
133
137
  grey: {
134
138
  DEFAULT: createColor_1.defaultColor.GREY_65,
135
139
  5: createColor_1.defaultColor.GREY_5,
@@ -202,6 +206,7 @@ exports.default = {
202
206
  'link-darken': darkenColor(theme('colors.link'), 0.062),
203
207
  grey: theme('colors.grey.65'),
204
208
  danger: theme('colors.danger'),
209
+ green: theme('colors.green'),
205
210
  'color-inherit': 'inherit',
206
211
  transparent: 'transparent',
207
212
  }),
@@ -230,6 +235,8 @@ exports.default = {
230
235
  darken: darkenColor(theme('colors.grey.20')),
231
236
  'high-contrast': theme('colors.grey.100'),
232
237
  link: theme('colors.link'),
238
+ orange: theme('colors.orange'),
239
+ green: theme('colors.green'),
233
240
  }),
234
241
  strokeWidth: {
235
242
  '0.5': '0.5',