smarthr-ui 52.2.0 → 53.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.
- package/esm/components/AccordionPanel/AccordionPanelContent.js +2 -9
- package/esm/components/AccordionPanel/AccordionPanelContent.js.map +1 -1
- package/esm/components/AccordionPanel/AccordionPanelItem.js +1 -1
- package/esm/components/AccordionPanel/AccordionPanelItem.js.map +1 -1
- package/esm/components/AccordionPanel/AccordionPanelTrigger.js +3 -11
- package/esm/components/AccordionPanel/AccordionPanelTrigger.js.map +1 -1
- package/esm/components/Dropdown/FilterDropdown/FilterDropdown.d.ts +0 -1
- package/esm/components/Dropdown/FilterDropdown/FilterDropdown.js +7 -10
- package/esm/components/Dropdown/FilterDropdown/FilterDropdown.js.map +1 -1
- package/esm/components/Table/Table.d.ts +59 -4
- package/esm/components/Table/Table.js +7 -5
- package/esm/components/Table/Table.js.map +1 -1
- package/esm/components/Table/Td.d.ts +37 -2
- package/esm/components/Table/Td.js +34 -6
- package/esm/components/Table/Td.js.map +1 -1
- package/esm/components/Table/Th.d.ts +61 -3
- package/esm/components/Table/Th.js +32 -9
- package/esm/components/Table/Th.js.map +1 -1
- package/esm/components/Table/type.d.ts +1 -0
- package/esm/components/Table/type.js +2 -0
- package/esm/components/Table/type.js.map +1 -0
- package/lib/components/AccordionPanel/AccordionPanelContent.js +2 -9
- package/lib/components/AccordionPanel/AccordionPanelContent.js.map +1 -1
- package/lib/components/AccordionPanel/AccordionPanelItem.js +1 -1
- package/lib/components/AccordionPanel/AccordionPanelItem.js.map +1 -1
- package/lib/components/AccordionPanel/AccordionPanelTrigger.js +3 -11
- package/lib/components/AccordionPanel/AccordionPanelTrigger.js.map +1 -1
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.d.ts +0 -1
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.js +6 -9
- package/lib/components/Dropdown/FilterDropdown/FilterDropdown.js.map +1 -1
- package/lib/components/Table/Table.d.ts +59 -4
- package/lib/components/Table/Table.js +7 -5
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Td.d.ts +37 -2
- package/lib/components/Table/Td.js +34 -6
- package/lib/components/Table/Td.js.map +1 -1
- package/lib/components/Table/Th.d.ts +61 -3
- package/lib/components/Table/Th.js +32 -9
- package/lib/components/Table/Th.js.map +1 -1
- package/lib/components/Table/type.d.ts +1 -0
- package/lib/components/Table/type.js +3 -0
- package/lib/components/Table/type.js.map +1 -0
- package/package.json +7 -7
- package/smarthr-ui.css +14 -6
- package/esm/components/AccordionPanel/style.d.ts +0 -3
- package/esm/components/AccordionPanel/style.js +0 -8
- package/esm/components/AccordionPanel/style.js.map +0 -1
- package/lib/components/AccordionPanel/style.d.ts +0 -3
- package/lib/components/AccordionPanel/style.js +0 -15
- package/lib/components/AccordionPanel/style.js.map +0 -1
|
@@ -7,15 +7,8 @@ import { AccordionPanelItemContext } from './AccordionPanelItem';
|
|
|
7
7
|
const accordionPanelContent = tv({
|
|
8
8
|
base: [
|
|
9
9
|
'smarthr-ui-AccordionPanel-content',
|
|
10
|
-
'shr-max-h-0',
|
|
11
|
-
'shr-
|
|
12
|
-
'shr-duration-150',
|
|
13
|
-
'shr-ease-in-out',
|
|
14
|
-
'shr-invisible',
|
|
15
|
-
'shr-opacity-0',
|
|
16
|
-
'[&.entered]:shr-max-h-[revert]',
|
|
17
|
-
'[&.entered]:shr-visible',
|
|
18
|
-
'[&.entered]:shr-opacity-100',
|
|
10
|
+
'shr-max-h-0 shr-transition-[max-height,_visible,_opacity] shr-duration-150 shr-ease-in-out shr-invisible shr-opacity-0',
|
|
11
|
+
'[&.entered]:shr-max-h-[revert] [&.entered]:shr-visible [&.entered]:shr-opacity-100',
|
|
19
12
|
],
|
|
20
13
|
});
|
|
21
14
|
export const AccordionPanelContent = ({ className, ...props }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionPanelContent.js","sourceRoot":"","sources":["../../../src/components/AccordionPanel/AccordionPanelContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,UAAU,EACV,OAAO,EACP,MAAM,GACP,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAKhE,MAAM,qBAAqB,GAAG,EAAE,CAAC;IAC/B,IAAI,EAAE;QACJ,mCAAmC;QACnC,
|
|
1
|
+
{"version":3,"file":"AccordionPanelContent.js","sourceRoot":"","sources":["../../../src/components/AccordionPanel/AccordionPanelContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,UAAU,EACV,OAAO,EACP,MAAM,GACP,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAKhE,MAAM,qBAAqB,GAAG,EAAE,CAAC;IAC/B,IAAI,EAAE;QACJ,mCAAmC;QACnC,wHAAwH;QACxH,oFAAoF;KACrF;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAA6B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACzF,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IACtD,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAA;IAC3D,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,CAAA;IACnD,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAA;IAE/E,OAAO,CACL,oBAAC,UAAU,IAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IACpC,CAAC,MAAM,EAAE,EAAE,CAAC,CACX,gCACM,KAAK,EACT,EAAE,EAAE,GAAG,IAAI,UAAU,EACrB,SAAS,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,qBACf,GAAG,IAAI,UAAU,iBACrB,CAAC,SAAS,EACvB,GAAG,EAAE,UAAU,GACf,CACH,CACU,CACd,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -5,7 +5,7 @@ export const AccordionPanelItemContext = createContext({
|
|
|
5
5
|
name: '',
|
|
6
6
|
});
|
|
7
7
|
const accordionPanelItem = tv({
|
|
8
|
-
base: 'smarthr-ui-AccordionPanel-item',
|
|
8
|
+
base: ['smarthr-ui-AccordionPanel-item', '[&_+_&]:shr-border-t-shorthand'],
|
|
9
9
|
});
|
|
10
10
|
export const AccordionPanelItem = ({ name, className, ...props }) => {
|
|
11
11
|
const styles = useMemo(() => accordionPanelItem({ className }), [className]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionPanelItem.js","sourceRoot":"","sources":["../../../src/components/AccordionPanel/AccordionPanelItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,aAAa,EACb,OAAO,GACR,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAS9C,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAmB;IACvE,IAAI,EAAE,EAAE;CACT,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,EAAE,CAAC;IAC5B,IAAI,EAAE,gCAAgC;
|
|
1
|
+
{"version":3,"file":"AccordionPanelItem.js","sourceRoot":"","sources":["../../../src/components/AccordionPanel/AccordionPanelItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,aAAa,EACb,OAAO,GACR,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAS9C,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAmB;IACvE,IAAI,EAAE,EAAE;CACT,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,EAAE,CAAC;IAC5B,IAAI,EAAE,CAAC,gCAAgC,EAAE,gCAAgC,CAAC;CAC3E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAA6B,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC5F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAA;IAC5E,OAAO,CACL,oBAAC,yBAAyB,CAAC,QAAQ,IACjC,KAAK,EAAE;YACL,IAAI;SACL;QAED,oBAAC,OAAO,OAAK,KAAK,EAAE,SAAS,EAAE,MAAM,GAAI,CACN,CACtC,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -12,19 +12,11 @@ const accordionPanelTrigger = tv({
|
|
|
12
12
|
title: 'shr-grow',
|
|
13
13
|
button: [
|
|
14
14
|
'smarthr-ui-AccordionPanel-trigger',
|
|
15
|
-
'shr-group',
|
|
16
|
-
'shr-bg-transparent',
|
|
17
|
-
'shr-border-none',
|
|
18
|
-
'shr-appearance-none',
|
|
19
|
-
'shr-w-full',
|
|
20
|
-
'shr-px-1',
|
|
21
|
-
'shr-py-0.75',
|
|
22
|
-
'shr-cursor-pointer',
|
|
23
|
-
'shr-text-inherit',
|
|
24
|
-
'shr-text-left',
|
|
15
|
+
'shr-group shr-bg-transparent shr-border-none shr-appearance-none shr-w-full shr-px-1 shr-py-0.75 shr-cursor-pointer shr-text-inherit shr-text-left',
|
|
25
16
|
'hover:shr-bg-white-darken',
|
|
26
|
-
'hover:shr-shadow-none',
|
|
27
17
|
'focus-visible:shr-focus-indicator',
|
|
18
|
+
// Base 直下に AccordionPanel がある場合、背景が付き抜けないように角丸を指定(Base に overflw: hidden を与えるとフォーカスリングが表示されなくなる)
|
|
19
|
+
'[.smarthr-ui-Base_>_.smarthr-ui-AccordionPanel_.smarthr-ui-AccordionPanel-item:first-child_&]:shr-rounded-t-l [.smarthr-ui-Base_>_.smarthr-ui-AccordionPanel_.smarthr-ui-AccordionPanel-item:last-child_&]:shr-rounded-b-l',
|
|
28
20
|
],
|
|
29
21
|
leftIcon: 'shr-transition-transform shr-duration-100 group-aria-expanded:shr-rotate-90',
|
|
30
22
|
rightIcon: 'group-aria-expanded:-shr-rotate-180',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionPanelTrigger.js","sourceRoot":"","sources":["../../../src/components/AccordionPanel/AccordionPanelTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,WAAW,EACX,UAAU,EACV,OAAO,GACR,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,OAAO,EAAmB,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAGnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAY5D,MAAM,qBAAqB,GAAG,EAAE,CAAC;IAC/B,KAAK,EAAE;QACL,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE;YACN,mCAAmC;YACnC,
|
|
1
|
+
{"version":3,"file":"AccordionPanelTrigger.js","sourceRoot":"","sources":["../../../src/components/AccordionPanel/AccordionPanelTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,WAAW,EACX,UAAU,EACV,OAAO,GACR,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,OAAO,EAAmB,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAGnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAY5D,MAAM,qBAAqB,GAAG,EAAE,CAAC;IAC/B,KAAK,EAAE;QACL,KAAK,EAAE,UAAU;QACjB,MAAM,EAAE;YACN,mCAAmC;YACnC,oJAAoJ;YACpJ,2BAA2B;YAC3B,mCAAmC;YACnC,iGAAiG;YACjG,4NAA4N;SAC7N;QACD,QAAQ,EAAE,6EAA6E;QACvF,SAAS,EAAE,qCAAqC;KACjD;IACD,aAAa,EAAE;QACb;YACE,KAAK,EAAE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,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,CAAC,CAAC,CAAA;IAEvF,OAAO;IACL,sEAAsE;IACtE,oBAAC,OAAO,IAAC,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW;QACzC,mCACM,KAAK,EACT,EAAE,EAAE,GAAG,IAAI,UAAU,mBACN,UAAU,mBACV,GAAG,IAAI,UAAU,EAChC,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,WAAW,oBACP,uBAAuB,EACtC,IAAI,EAAC,QAAQ;YAEb,oBAAC,OAAO,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAC,QAAQ,EAAC,EAAE,EAAC,MAAM;gBAC1D,YAAY,KAAK,MAAM,IAAI,oBAAC,gBAAgB,IAAC,SAAS,EAAE,aAAa,GAAI;gBAC1E,8BAAM,SAAS,EAAE,UAAU,IAAG,QAAQ,CAAQ;gBAC7C,YAAY,KAAK,OAAO,IAAI,oBAAC,eAAe,IAAC,SAAS,EAAE,cAAc,GAAI,CACnE,CACH,CACD,CACX,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -9,7 +9,6 @@ type Props = {
|
|
|
9
9
|
onOpen?: () => void;
|
|
10
10
|
onClose?: () => void;
|
|
11
11
|
children: ReactNode;
|
|
12
|
-
hasStatusText?: boolean;
|
|
13
12
|
decorators?: DecoratorsType<'status' | 'triggerButton' | 'applyButton' | 'cancelButton' | 'resetButton'>;
|
|
14
13
|
responseMessage?: ResponseMessageType;
|
|
15
14
|
/** 引き金となるボタンの大きさ */
|
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
import innerText from 'react-innertext';
|
|
3
3
|
import { tv } from 'tailwind-variants';
|
|
4
4
|
import { Button } from '../../Button';
|
|
5
|
-
import {
|
|
5
|
+
import { FaCircleCheckIcon, FaFilterIcon, FaRotateLeftIcon } from '../../Icon';
|
|
6
6
|
import { Cluster, Stack } from '../../Layout';
|
|
7
7
|
import { ResponseMessage } from '../../ResponseMessage';
|
|
8
8
|
import { Dropdown } from '../Dropdown';
|
|
@@ -23,7 +23,6 @@ const filterDropdown = tv({
|
|
|
23
23
|
'[&_>_[role="img"]_+_[role="img"]]:shr-absolute [&_>_[role="img"]_+_[role="img"]]:shr-bottom-[2px] [&_>_[role="img"]_+_[role="img"]]:shr-right-[-4px]',
|
|
24
24
|
],
|
|
25
25
|
fileteredIcon: 'shr-h-[0.5em] shr-w-[0.5em]',
|
|
26
|
-
statusText: 'shr-ms-0.5 shr-text-sm',
|
|
27
26
|
inner: 'shr-p-1.5',
|
|
28
27
|
actionArea: 'shr-border-t-shorthand shr-px-1.5 shr-py-1',
|
|
29
28
|
resetButtonArea: '-shr-ms-0.5',
|
|
@@ -44,20 +43,19 @@ const filterDropdown = tv({
|
|
|
44
43
|
},
|
|
45
44
|
},
|
|
46
45
|
});
|
|
47
|
-
export const FilterDropdown = ({ isFiltered = false, onApply, onCancel, onReset, onOpen, onClose, children,
|
|
46
|
+
export const FilterDropdown = ({ isFiltered = false, onApply, onCancel, onReset, onOpen, onClose, children, decorators, responseMessage, triggerSize, ...props }) => {
|
|
48
47
|
const status = useMemo(() => executeDecorator(STATUS_FILTERED_TEXT, decorators?.status), [decorators]);
|
|
49
48
|
const triggerButton = useMemo(() => executeDecorator(TRIGGER_BUTTON_TEXT, decorators?.triggerButton), [decorators]);
|
|
50
49
|
const applyButton = useMemo(() => executeDecorator(APPLY_BUTTON_TEXT, decorators?.applyButton), [decorators]);
|
|
51
50
|
const cancelButton = useMemo(() => executeDecorator(CANCEL_BUTTON_TEXT, decorators?.cancelButton), [decorators]);
|
|
52
51
|
const resetButton = useMemo(() => executeDecorator(RESET_BUTTON_TEXT, decorators?.resetButton), [decorators]);
|
|
53
|
-
const filteredIconAriaLabel = useMemo(() =>
|
|
52
|
+
const filteredIconAriaLabel = useMemo(() => innerText(status), [status]);
|
|
54
53
|
const isRequestProcessing = responseMessage !== undefined && responseMessage.status === 'processing';
|
|
55
|
-
const { iconWrapperStyle, filteredIconStyle,
|
|
56
|
-
const { iconWrapper, fileteredIcon,
|
|
54
|
+
const { iconWrapperStyle, filteredIconStyle, innerStyle, actionAreaStyle, resetButtonAreaStyle, rightButtonAreaStyle, messageStyle, } = useMemo(() => {
|
|
55
|
+
const { iconWrapper, fileteredIcon, inner, actionArea, resetButtonArea, rightButtonArea, message, } = filterDropdown();
|
|
57
56
|
return {
|
|
58
57
|
iconWrapperStyle: iconWrapper({ filtered: isFiltered, triggerSize }),
|
|
59
58
|
filteredIconStyle: fileteredIcon(),
|
|
60
|
-
statusTextStyle: statusText(),
|
|
61
59
|
innerStyle: inner(),
|
|
62
60
|
actionAreaStyle: actionArea(),
|
|
63
61
|
resetButtonAreaStyle: resetButtonArea(),
|
|
@@ -69,15 +67,14 @@ export const FilterDropdown = ({ isFiltered = false, onApply, onCancel, onReset,
|
|
|
69
67
|
React.createElement(DropdownTrigger, null,
|
|
70
68
|
React.createElement(Button, { ...props, suffix: React.createElement("span", { className: iconWrapperStyle },
|
|
71
69
|
React.createElement(FaFilterIcon, null),
|
|
72
|
-
isFiltered ? (React.createElement(
|
|
73
|
-
hasStatusText && isFiltered ? React.createElement("span", { className: statusTextStyle }, status) : null,
|
|
70
|
+
isFiltered ? (React.createElement(FaCircleCheckIcon, { "aria-label": filteredIconAriaLabel, className: filteredIconStyle })) : null), size: triggerSize }, triggerButton)),
|
|
74
71
|
React.createElement(DropdownContent, { controllable: true },
|
|
75
72
|
React.createElement(DropdownScrollArea, null,
|
|
76
73
|
React.createElement("div", { className: innerStyle }, children)),
|
|
77
74
|
React.createElement(Stack, { gap: 0.5, className: actionAreaStyle },
|
|
78
75
|
React.createElement(Cluster, { gap: 1, align: "center", justify: "space-between" },
|
|
79
76
|
onReset && (React.createElement("div", { className: resetButtonAreaStyle },
|
|
80
|
-
React.createElement(Button, { variant: "text", size: "s", prefix: React.createElement(
|
|
77
|
+
React.createElement(Button, { variant: "text", size: "s", prefix: React.createElement(FaRotateLeftIcon, null), onClick: onReset, disabled: isRequestProcessing }, resetButton))),
|
|
81
78
|
React.createElement(Cluster, { gap: { column: 1, row: 0.5 }, justify: "flex-end", className: rightButtonAreaStyle },
|
|
82
79
|
React.createElement(DropdownCloser, null,
|
|
83
80
|
React.createElement(Button, { onClick: onCancel, disabled: isRequestProcessing }, cancelButton)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterDropdown.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/FilterDropdown/FilterDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiC,OAAO,EAAE,MAAM,OAAO,CAAA;AACrE,OAAO,SAAS,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,MAAM,EAA4B,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"FilterDropdown.js","sourceRoot":"","sources":["../../../../src/components/Dropdown/FilterDropdown/FilterDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiC,OAAO,EAAE,MAAM,OAAO,CAAA;AACrE,OAAO,SAAS,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,MAAM,EAA4B,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC9E,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,eAAe,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4BACb,oBAAC,MAAM,IAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,mBAAmB,IACrD,YAAY,CACN,CACM;wBACjB,oBAAC,cAAc;4BACb,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,mBAAmB,IACrE,WAAW,CACL,CACM,CACT,CACF;gBACT,CAAC,eAAe,EAAE,MAAM,KAAK,SAAS,IAAI,eAAe,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CACjF,6BAAK,SAAS,EAAE,YAAY;oBAC1B,oBAAC,eAAe,IAAC,IAAI,EAAE,eAAe,CAAC,MAAM,EAAE,IAAI,EAAC,OAAO,IACxD,eAAe,CAAC,IAAI,CACL,CACd,CACP,CACK,CACQ,CACT,CACZ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,11 +1,66 @@
|
|
|
1
1
|
import React, { ComponentProps, FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
3
|
export declare const TableGroupContext: React.Context<{
|
|
3
4
|
group: "head" | "body";
|
|
4
5
|
}>;
|
|
5
|
-
type Props = PropsWithChildren<
|
|
6
|
-
/** `true` のとき、スクロール時にヘッダーを固定表示する */
|
|
7
|
-
fixedHead?: boolean;
|
|
8
|
-
}>;
|
|
6
|
+
type Props = PropsWithChildren<VariantProps<typeof table>>;
|
|
9
7
|
type ElementProps = Omit<ComponentProps<'table'>, keyof Props>;
|
|
8
|
+
declare const table: import("tailwind-variants").TVReturnType<{
|
|
9
|
+
layout: {
|
|
10
|
+
auto: string;
|
|
11
|
+
fixed: string;
|
|
12
|
+
};
|
|
13
|
+
fixedHead: {
|
|
14
|
+
true: string[];
|
|
15
|
+
};
|
|
16
|
+
}, undefined, string[], import("tailwind-variants/dist/config").TVConfig<{
|
|
17
|
+
layout: {
|
|
18
|
+
auto: string;
|
|
19
|
+
fixed: string;
|
|
20
|
+
};
|
|
21
|
+
fixedHead: {
|
|
22
|
+
true: string[];
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
layout: {
|
|
26
|
+
auto: string;
|
|
27
|
+
fixed: string;
|
|
28
|
+
};
|
|
29
|
+
fixedHead: {
|
|
30
|
+
true: string[];
|
|
31
|
+
};
|
|
32
|
+
}>, {
|
|
33
|
+
layout: {
|
|
34
|
+
auto: string;
|
|
35
|
+
fixed: string;
|
|
36
|
+
};
|
|
37
|
+
fixedHead: {
|
|
38
|
+
true: string[];
|
|
39
|
+
};
|
|
40
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
41
|
+
layout: {
|
|
42
|
+
auto: string;
|
|
43
|
+
fixed: string;
|
|
44
|
+
};
|
|
45
|
+
fixedHead: {
|
|
46
|
+
true: string[];
|
|
47
|
+
};
|
|
48
|
+
}, undefined, string[], import("tailwind-variants/dist/config").TVConfig<{
|
|
49
|
+
layout: {
|
|
50
|
+
auto: string;
|
|
51
|
+
fixed: string;
|
|
52
|
+
};
|
|
53
|
+
fixedHead: {
|
|
54
|
+
true: string[];
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
layout: {
|
|
58
|
+
auto: string;
|
|
59
|
+
fixed: string;
|
|
60
|
+
};
|
|
61
|
+
fixedHead: {
|
|
62
|
+
true: string[];
|
|
63
|
+
};
|
|
64
|
+
}>, unknown, unknown, undefined>>;
|
|
10
65
|
export declare const Table: FC<Props & ElementProps>;
|
|
11
66
|
export {};
|
|
@@ -17,19 +17,21 @@ const table = tv({
|
|
|
17
17
|
'contrast-more:shr-border-shorthand contrast-more:shr-border-high-contrast',
|
|
18
18
|
],
|
|
19
19
|
variants: {
|
|
20
|
+
layout: {
|
|
21
|
+
auto: '',
|
|
22
|
+
fixed: 'shr-table-fixed',
|
|
23
|
+
},
|
|
20
24
|
fixedHead: {
|
|
21
25
|
true: [
|
|
22
|
-
'[&_thead]:shr-sticky',
|
|
23
|
-
'[&_thead]:shr-start-0',
|
|
24
|
-
'[&_thead]:shr-top-0',
|
|
26
|
+
'[&_thead]:shr-sticky [&_thead]:shr-start-0 [&_thead]:shr-top-0',
|
|
25
27
|
/* zIndexの値はセマンティックトークンとして管理しているため、明示的に値を指定しないと重なり順が崩れるため設定しています */
|
|
26
28
|
'[&_thead]:shr-z-fixed-menu',
|
|
27
29
|
],
|
|
28
30
|
},
|
|
29
31
|
},
|
|
30
32
|
});
|
|
31
|
-
export const Table = ({ fixedHead = false, className, ...props }) => {
|
|
32
|
-
const styles = useMemo(() => table({ fixedHead, className }), [className, fixedHead]);
|
|
33
|
+
export const Table = ({ fixedHead = false, layout = 'auto', className, ...props }) => {
|
|
34
|
+
const styles = useMemo(() => table({ fixedHead, layout, className }), [className, fixedHead, layout]);
|
|
33
35
|
return React.createElement("table", { ...props, className: styles });
|
|
34
36
|
};
|
|
35
37
|
//# sourceMappingURL=Table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAyC,aAAa,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC5F,OAAO,
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAyC,aAAa,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC5F,OAAO,EAAgB,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEpD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAE3C;IACD,KAAK,EAAE,MAAM;CACd,CAAC,CAAA;AAKF,MAAM,KAAK,GAAG,EAAE,CAAC;IACf,IAAI,EAAE;QACJ,kBAAkB;QAClB,YAAY;QACZ,sEAAsE;QACtE,qBAAqB;QACrB,sBAAsB;QACtB,eAAe;QACf,wBAAwB;QACxB,4GAA4G;QAC5G,yFAAyF;QACzF,2EAA2E;KAC5E;IACD,QAAQ,EAAE;QACR,MAAM,EAAE;YACN,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,iBAAiB;SACzB;QACD,SAAS,EAAE;YACT,IAAI,EAAE;gBACJ,gEAAgE;gBAChE,mEAAmE;gBACnE,4BAA4B;aAC7B;SACF;KACF;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,KAAK,GAA6B,CAAC,EAC9C,SAAS,GAAG,KAAK,EACjB,MAAM,GAAG,MAAM,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,OAAO,CACpB,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAC7C,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,CAC/B,CAAA;IACD,OAAO,kCAAW,KAAK,EAAE,SAAS,EAAE,MAAM,GAAI,CAAA;AAChD,CAAC,CAAA"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
|
|
2
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
+
import type { CellContentWidth } from './type';
|
|
4
|
+
export type Props = PropsWithChildren<VariantProps<typeof td> & {
|
|
5
|
+
contentWidth?: CellContentWidth | {
|
|
6
|
+
base?: CellContentWidth;
|
|
7
|
+
min?: CellContentWidth;
|
|
8
|
+
max?: CellContentWidth;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
4
11
|
type ElementProps = Omit<ComponentPropsWithoutRef<'td'>, keyof Props>;
|
|
5
12
|
export declare const Td: FC<Props & ElementProps>;
|
|
6
13
|
declare const td: import("tailwind-variants").TVReturnType<{
|
|
14
|
+
align: {
|
|
15
|
+
left: string;
|
|
16
|
+
right: string;
|
|
17
|
+
};
|
|
7
18
|
nullable: {
|
|
8
19
|
true: string;
|
|
9
20
|
};
|
|
@@ -11,6 +22,10 @@ declare const td: import("tailwind-variants").TVReturnType<{
|
|
|
11
22
|
true: string[];
|
|
12
23
|
};
|
|
13
24
|
}, undefined, string[], import("tailwind-variants/dist/config").TVConfig<{
|
|
25
|
+
align: {
|
|
26
|
+
left: string;
|
|
27
|
+
right: string;
|
|
28
|
+
};
|
|
14
29
|
nullable: {
|
|
15
30
|
true: string;
|
|
16
31
|
};
|
|
@@ -18,6 +33,10 @@ declare const td: import("tailwind-variants").TVReturnType<{
|
|
|
18
33
|
true: string[];
|
|
19
34
|
};
|
|
20
35
|
}, {
|
|
36
|
+
align: {
|
|
37
|
+
left: string;
|
|
38
|
+
right: string;
|
|
39
|
+
};
|
|
21
40
|
nullable: {
|
|
22
41
|
true: string;
|
|
23
42
|
};
|
|
@@ -25,6 +44,10 @@ declare const td: import("tailwind-variants").TVReturnType<{
|
|
|
25
44
|
true: string[];
|
|
26
45
|
};
|
|
27
46
|
}>, {
|
|
47
|
+
align: {
|
|
48
|
+
left: string;
|
|
49
|
+
right: string;
|
|
50
|
+
};
|
|
28
51
|
nullable: {
|
|
29
52
|
true: string;
|
|
30
53
|
};
|
|
@@ -32,6 +55,10 @@ declare const td: import("tailwind-variants").TVReturnType<{
|
|
|
32
55
|
true: string[];
|
|
33
56
|
};
|
|
34
57
|
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
58
|
+
align: {
|
|
59
|
+
left: string;
|
|
60
|
+
right: string;
|
|
61
|
+
};
|
|
35
62
|
nullable: {
|
|
36
63
|
true: string;
|
|
37
64
|
};
|
|
@@ -39,6 +66,10 @@ declare const td: import("tailwind-variants").TVReturnType<{
|
|
|
39
66
|
true: string[];
|
|
40
67
|
};
|
|
41
68
|
}, undefined, string[], import("tailwind-variants/dist/config").TVConfig<{
|
|
69
|
+
align: {
|
|
70
|
+
left: string;
|
|
71
|
+
right: string;
|
|
72
|
+
};
|
|
42
73
|
nullable: {
|
|
43
74
|
true: string;
|
|
44
75
|
};
|
|
@@ -46,6 +77,10 @@ declare const td: import("tailwind-variants").TVReturnType<{
|
|
|
46
77
|
true: string[];
|
|
47
78
|
};
|
|
48
79
|
}, {
|
|
80
|
+
align: {
|
|
81
|
+
left: string;
|
|
82
|
+
right: string;
|
|
83
|
+
};
|
|
49
84
|
nullable: {
|
|
50
85
|
true: string;
|
|
51
86
|
};
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { tv } from 'tailwind-variants';
|
|
3
3
|
import { reelShadowStyle } from './useReelShadow';
|
|
4
|
-
export const Td = ({ nullable = false, fixed = false, className, ...props }) => {
|
|
5
|
-
const
|
|
6
|
-
const tdStyles = td({ nullable, fixed, className });
|
|
4
|
+
export const Td = ({ align = 'left', nullable = false, fixed = false, contentWidth, className, style, ...props }) => {
|
|
5
|
+
const styleProps = useMemo(() => {
|
|
6
|
+
const tdStyles = td({ align, nullable, fixed, className });
|
|
7
7
|
const reelShadowStyles = fixed ? reelShadowStyle({ direction: 'right' }) : '';
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
return {
|
|
9
|
+
className: `${tdStyles} ${reelShadowStyles}`.trim(),
|
|
10
|
+
style: {
|
|
11
|
+
...style,
|
|
12
|
+
...getWidthStyle(contentWidth),
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
}, [align, className, contentWidth, fixed, nullable, style]);
|
|
16
|
+
return React.createElement("td", { ...props, ...styleProps });
|
|
11
17
|
};
|
|
12
18
|
const td = tv({
|
|
13
19
|
base: [
|
|
@@ -15,6 +21,10 @@ const td = tv({
|
|
|
15
21
|
'shr-border-t-shorthand shr-h-[calc(1em_*_theme(lineHeight.normal))] shr-px-1 shr-py-0.5 shr-align-middle shr-text-base shr-leading-normal shr-text-black',
|
|
16
22
|
],
|
|
17
23
|
variants: {
|
|
24
|
+
align: {
|
|
25
|
+
left: '',
|
|
26
|
+
right: 'shr-text-right',
|
|
27
|
+
},
|
|
18
28
|
nullable: {
|
|
19
29
|
true: "empty:after:shr-content-['-----']",
|
|
20
30
|
},
|
|
@@ -26,4 +36,22 @@ const td = tv({
|
|
|
26
36
|
},
|
|
27
37
|
},
|
|
28
38
|
});
|
|
39
|
+
const convertContentWidth = (contentWidth) => {
|
|
40
|
+
if (typeof contentWidth === 'number') {
|
|
41
|
+
return `${contentWidth}em`;
|
|
42
|
+
}
|
|
43
|
+
return contentWidth;
|
|
44
|
+
};
|
|
45
|
+
const getWidthStyle = (contentWidth) => {
|
|
46
|
+
if (typeof contentWidth === 'object') {
|
|
47
|
+
return {
|
|
48
|
+
width: convertContentWidth(contentWidth.base),
|
|
49
|
+
minWidth: convertContentWidth(contentWidth.min),
|
|
50
|
+
maxWidth: convertContentWidth(contentWidth.max),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
width: convertContentWidth(contentWidth),
|
|
55
|
+
};
|
|
56
|
+
};
|
|
29
57
|
//# sourceMappingURL=Td.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Td.js","sourceRoot":"","sources":["../../../src/components/Table/Td.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAmD,OAAO,EAAE,MAAM,OAAO,CAAA;AACvF,OAAO,
|
|
1
|
+
{"version":3,"file":"Td.js","sourceRoot":"","sources":["../../../src/components/Table/Td.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAmD,OAAO,EAAE,MAAM,OAAO,CAAA;AACvF,OAAO,EAAqB,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAajD,MAAM,CAAC,MAAM,EAAE,GAA6B,CAAC,EAC3C,KAAK,GAAG,MAAM,EACd,QAAQ,GAAG,KAAK,EAChB,KAAK,GAAG,KAAK,EACb,YAAY,EACZ,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,UAA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rC,OAAO;YACL,KAAK,EAAE,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC;YAC7C,QAAQ,EAAE,mBAAmB,CAAC,YAAY,CAAC,GAAG,CAAC;YAC/C,QAAQ,EAAE,mBAAmB,CAAC,YAAY,CAAC,GAAG,CAAC;SAChD,CAAA;IACH,CAAC;IAED,OAAO;QACL,KAAK,EAAE,mBAAmB,CAAC,YAAY,CAAC;KACzC,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
+
import type { CellContentWidth } from './type';
|
|
2
4
|
type sortTypes = keyof typeof SORT_DIRECTION_LABEL;
|
|
3
5
|
export type Props = PropsWithChildren<{
|
|
4
6
|
/** 並び替え状態 */
|
|
@@ -11,14 +13,70 @@ export type Props = PropsWithChildren<{
|
|
|
11
13
|
sort: sortTypes;
|
|
12
14
|
}) => ReactNode;
|
|
13
15
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}>;
|
|
16
|
+
contentWidth?: CellContentWidth;
|
|
17
|
+
} & VariantProps<typeof thWrapper>>;
|
|
17
18
|
type ElementProps = Omit<ComponentPropsWithoutRef<'th'>, keyof Props | 'onClick'>;
|
|
18
19
|
declare const SORT_DIRECTION_LABEL: {
|
|
19
20
|
asc: string;
|
|
20
21
|
desc: string;
|
|
21
22
|
none: string;
|
|
22
23
|
};
|
|
24
|
+
declare const thWrapper: import("tailwind-variants").TVReturnType<{
|
|
25
|
+
align: {
|
|
26
|
+
left: string;
|
|
27
|
+
right: string;
|
|
28
|
+
};
|
|
29
|
+
fixed: {
|
|
30
|
+
true: string[];
|
|
31
|
+
};
|
|
32
|
+
}, undefined, string[], import("tailwind-variants/dist/config").TVConfig<{
|
|
33
|
+
align: {
|
|
34
|
+
left: string;
|
|
35
|
+
right: string;
|
|
36
|
+
};
|
|
37
|
+
fixed: {
|
|
38
|
+
true: string[];
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
align: {
|
|
42
|
+
left: string;
|
|
43
|
+
right: string;
|
|
44
|
+
};
|
|
45
|
+
fixed: {
|
|
46
|
+
true: string[];
|
|
47
|
+
};
|
|
48
|
+
}>, {
|
|
49
|
+
align: {
|
|
50
|
+
left: string;
|
|
51
|
+
right: string;
|
|
52
|
+
};
|
|
53
|
+
fixed: {
|
|
54
|
+
true: string[];
|
|
55
|
+
};
|
|
56
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
57
|
+
align: {
|
|
58
|
+
left: string;
|
|
59
|
+
right: string;
|
|
60
|
+
};
|
|
61
|
+
fixed: {
|
|
62
|
+
true: string[];
|
|
63
|
+
};
|
|
64
|
+
}, undefined, string[], import("tailwind-variants/dist/config").TVConfig<{
|
|
65
|
+
align: {
|
|
66
|
+
left: string;
|
|
67
|
+
right: string;
|
|
68
|
+
};
|
|
69
|
+
fixed: {
|
|
70
|
+
true: string[];
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
align: {
|
|
74
|
+
left: string;
|
|
75
|
+
right: string;
|
|
76
|
+
};
|
|
77
|
+
fixed: {
|
|
78
|
+
true: string[];
|
|
79
|
+
};
|
|
80
|
+
}>, unknown, unknown, undefined>>;
|
|
23
81
|
export declare const Th: FC<Props & ElementProps>;
|
|
24
82
|
export {};
|
|
@@ -21,6 +21,10 @@ const thWrapper = tv({
|
|
|
21
21
|
'[&[aria-sort=descending]_.smarthr-ui-Icon:first-of-type]:forced-colors:shr-fill-[GrayText] [&[aria-sort=descending]_.smarthr-ui-Icon:last-of-type]:forced-colors:shr-fill-[CanvasText]',
|
|
22
22
|
],
|
|
23
23
|
variants: {
|
|
24
|
+
align: {
|
|
25
|
+
left: '',
|
|
26
|
+
right: 'shr-text-right',
|
|
27
|
+
},
|
|
24
28
|
fixed: {
|
|
25
29
|
true: [
|
|
26
30
|
/* これ以降の記述はTableReel内で'fixed'を利用した際に追従させるために必要 */
|
|
@@ -30,32 +34,51 @@ const thWrapper = tv({
|
|
|
30
34
|
},
|
|
31
35
|
},
|
|
32
36
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
const convertContentWidth = (contentWidth) => {
|
|
38
|
+
if (typeof contentWidth === 'number') {
|
|
39
|
+
// Th は fontSize.S のため、rem で指定する
|
|
40
|
+
return `${contentWidth}rem`;
|
|
41
|
+
}
|
|
42
|
+
return contentWidth;
|
|
43
|
+
};
|
|
44
|
+
export const Th = ({ children, sort, onSort, decorators, align = 'left', fixed = false, contentWidth, className, style, ...props }) => {
|
|
45
|
+
const styleProps = useMemo(() => {
|
|
46
|
+
const thWrapperStyle = thWrapper({ className, align, fixed });
|
|
36
47
|
const reelShadowStyles = fixed ? reelShadowStyle({ showShadow: false, direction: 'right' }) : '';
|
|
37
|
-
return
|
|
38
|
-
|
|
48
|
+
return {
|
|
49
|
+
className: `${thWrapperStyle} ${reelShadowStyles}`.trim(),
|
|
50
|
+
style: {
|
|
51
|
+
...style,
|
|
52
|
+
width: convertContentWidth(contentWidth),
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}, [align, className, contentWidth, fixed, style]);
|
|
39
56
|
const sortLabel = useMemo(() => sort &&
|
|
40
57
|
(decorators?.sortDirectionIconAlt?.(SORT_DIRECTION_LABEL[sort], { sort }) ||
|
|
41
58
|
SORT_DIRECTION_LABEL[sort]), [decorators, sort]);
|
|
42
59
|
const ariaSortProps = useMemo(() => sort && {
|
|
43
60
|
'aria-sort': sort === 'none' ? 'none' : `${sort}ending`,
|
|
44
61
|
}, [sort]);
|
|
45
|
-
return (React.createElement("th", { ...ariaSortProps, ...props,
|
|
62
|
+
return (React.createElement("th", { ...ariaSortProps, ...props, ...styleProps }, sort ? (React.createElement(SortButton, { align: align, onClick: onSort },
|
|
46
63
|
children,
|
|
47
64
|
React.createElement(SortIcon, { sort: sort }),
|
|
48
65
|
React.createElement(VisuallyHiddenText, null, sortLabel))) : (children)));
|
|
49
66
|
};
|
|
50
67
|
const sortButton = tv({
|
|
51
68
|
base: [
|
|
52
|
-
'-shr-mx-1 -shr-my-0.75 shr-inline-flex shr-w-full shr-
|
|
69
|
+
'-shr-mx-1 -shr-my-0.75 shr-inline-flex shr-w-full shr-gap-x-0.5 shr-px-1 shr-py-0.75 shr-font-bold',
|
|
53
70
|
// UnstyledButton に stretch がなぜか指定されてて負けてしまうため(UnstyledButton を見直した方がよさそう)
|
|
54
71
|
'[&]:shr-items-center',
|
|
55
72
|
],
|
|
73
|
+
variants: {
|
|
74
|
+
align: {
|
|
75
|
+
left: 'shr-justify-between',
|
|
76
|
+
right: 'shr-justify-end',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
56
79
|
});
|
|
57
|
-
const SortButton = ({ className, ...props }) => {
|
|
58
|
-
const sortButtonStyle = useMemo(() => sortButton({ className }), [className]);
|
|
80
|
+
const SortButton = ({ align, className, ...props }) => {
|
|
81
|
+
const sortButtonStyle = useMemo(() => sortButton({ align, className }), [align, className]);
|
|
59
82
|
return React.createElement(UnstyledButton, { ...props, className: sortButtonStyle });
|
|
60
83
|
};
|
|
61
84
|
const sortIcon = tv({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Th.js","sourceRoot":"","sources":["../../../src/components/Table/Th.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAOZ,OAAO,GACR,MAAM,OAAO,CAAA;AACd,OAAO,
|
|
1
|
+
{"version":3,"file":"Th.js","sourceRoot":"","sources":["../../../src/components/Table/Th.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAOZ,OAAO,GACR,MAAM,OAAO,CAAA;AACd,OAAO,EAAqB,EAAE,EAAE,MAAM,mBAAmB,CAAA;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;A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AI,EAAE,CAAC;SAChD,CAAA;IACH,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAA;IAEV,OAAO,CACL,8BAAM,SAAS,EAAE,YAAY;QAC3B,oBAAC,YAAY,IAAC,SAAS,EAAE,WAAW,GAAI;QACxC,oBAAC,cAAc,IAAC,SAAS,EAAE,aAAa,GAAI,CACvC,CACR,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CellContentWidth = number | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/components/Table/type.ts"],"names":[],"mappings":""}
|