@j2-health/design-system 0.6.2 → 0.6.4
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/dist/index.cjs +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index2.js +2 -1
- package/dist/src/components/select/SummarizedSelect.cjs +68 -8
- package/dist/src/components/select/SummarizedSelect.cjs.map +1 -1
- package/dist/src/components/select/SummarizedSelect.d.ts +19 -1
- package/dist/src/components/select/SummarizedSelect.js +68 -8
- package/dist/src/components/select/SummarizedSelect.js.map +1 -1
- package/dist/src/components/select/SummarizedSelect.module.css.cjs +14 -11
- package/dist/src/components/select/SummarizedSelect.module.css.cjs.map +1 -1
- package/dist/src/components/select/SummarizedSelect.module.css.js +14 -12
- package/dist/src/components/select/SummarizedSelect.module.css.js.map +1 -1
- package/dist/src/components/stepDrawer/StepDrawer.cjs +89 -0
- package/dist/src/components/stepDrawer/StepDrawer.cjs.map +1 -0
- package/dist/src/components/stepDrawer/StepDrawer.d.ts +65 -0
- package/dist/src/components/stepDrawer/StepDrawer.js +88 -0
- package/dist/src/components/stepDrawer/StepDrawer.js.map +1 -0
- package/dist/src/components/stepDrawer/index.d.ts +1 -0
- package/dist/src/components/steps/Steps.cjs +4 -3
- package/dist/src/components/steps/Steps.cjs.map +1 -1
- package/dist/src/components/steps/Steps.d.ts +1 -1
- package/dist/src/components/steps/Steps.js +4 -3
- package/dist/src/components/steps/Steps.js.map +1 -1
- package/dist/src/components/steps/useSteps.cjs +2 -2
- package/dist/src/components/steps/useSteps.cjs.map +1 -1
- package/dist/src/components/steps/useSteps.js +2 -2
- package/dist/src/components/steps/useSteps.js.map +1 -1
- package/dist/style.css +34 -28
- package/package.json +20 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Steps.cjs","names":["useSteps","AntdSteps","cx","CheckIcon"],"sources":["../../../../src/components/steps/Steps.tsx"],"sourcesContent":["import { Steps as AntdSteps, StepsProps } from 'antd'\nimport './Steps.css'\nimport { CheckIcon } from '@phosphor-icons/react'\nimport cx from 'classnames'\nimport { useSteps } from './useSteps'\n\ntype AllProps = StepsProps & {\n items: NonNullable<StepsProps['items']>\n dot?: boolean\n current?: number\n setCurrent?: (current: number) => void\n}\n\ntype Props = Expand<AllProps>\n\nexport const Steps = ({\n items,\n current,\n setCurrent,\n dot = false,\n direction,\n orientation,\n size,\n labelPlacement,\n titlePlacement,\n ...props\n}: Props) => {\n const isVertical = (orientation ?? direction) === 'vertical'\n const totalSteps = items?.length || 0\n\n const { current: currentStep, setCurrent: setCurrentStep } = useSteps({\n current,\n setCurrent,\n totalSteps,\n })\n\n return (\n <AntdSteps\n
|
|
1
|
+
{"version":3,"file":"Steps.cjs","names":["useSteps","AntdSteps","cx","CheckIcon"],"sources":["../../../../src/components/steps/Steps.tsx"],"sourcesContent":["import { Steps as AntdSteps, StepsProps } from 'antd'\nimport './Steps.css'\nimport { CheckIcon } from '@phosphor-icons/react'\nimport cx from 'classnames'\nimport { useSteps } from './useSteps'\n\ntype AllProps = StepsProps & {\n items: NonNullable<StepsProps['items']>\n dot?: boolean\n current?: number\n setCurrent?: (current: number) => void\n}\n\ntype Props = Expand<AllProps>\n\nexport const Steps = ({\n items,\n current,\n setCurrent,\n dot = false,\n direction,\n orientation,\n size,\n labelPlacement,\n titlePlacement,\n className,\n ...props\n}: Props) => {\n const isVertical = (orientation ?? direction) === 'vertical'\n const totalSteps = items?.length || 0\n // antd only makes a step clickable when `onChange` is set, so a controlled\n // bar with no setter renders read-only rather than inert-but-clickable.\n const isReadOnly = current !== undefined && setCurrent === undefined\n\n const { current: currentStep, setCurrent: setCurrentStep } = useSteps({\n current,\n setCurrent,\n totalSteps,\n })\n\n return (\n <AntdSteps\n {...props}\n className={cx('j2Steps', className)}\n orientation={orientation ?? direction}\n titlePlacement={titlePlacement ?? labelPlacement}\n size={size === 'default' ? 'medium' : size}\n current={currentStep}\n onChange={isReadOnly ? undefined : (curr) => setCurrentStep(curr)}\n {...(dot && { type: 'dot' })}\n items={items?.map((item, index) => {\n const { description, ...restItem } = item\n return {\n ...restItem,\n content: item.content ?? description,\n icon:\n !dot && currentStep > index ? (\n <div\n className={cx(\n `check-${size === 'small' ? 'small' : 'medium'}`,\n isVertical ? `vertical-check-icon` : `check-icon`\n )}\n >\n <CheckIcon size={16} />\n </div>\n ) : (\n item.icon\n ),\n }\n })}\n />\n )\n}\n"],"mappings":";;;;;;;;;;AAeA,IAAa,SAAS,EACpB,OACA,SACA,YACA,MAAM,OACN,WACA,aACA,MACA,gBACA,gBACA,WACA,GAAG,YACQ;CACX,MAAM,cAAc,eAAe,eAAe;CAClD,MAAM,aAAa,OAAO,UAAU;CAGpC,MAAM,aAAa,YAAY,KAAA,KAAa,eAAe,KAAA;CAE3D,MAAM,EAAE,SAAS,aAAa,YAAY,mBAAmBA,iBAAAA,SAAS;EACpE;EACA;EACA;CACF,CAAC;CAED,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACC,KAAAA,OAAD;EACE,GAAI;EACJ,YAAA,GAAWC,WAAAA,QAAAA,CAAG,WAAW,SAAS;EAClC,aAAa,eAAe;EAC5B,gBAAgB,kBAAkB;EAClC,MAAM,SAAS,YAAY,WAAW;EACtC,SAAS;EACT,UAAU,aAAa,KAAA,KAAa,SAAS,eAAe,IAAI;EAChE,GAAK,OAAO,EAAE,MAAM,MAAM;EAC1B,OAAO,OAAO,KAAK,MAAM,UAAU;GACjC,MAAM,EAAE,aAAa,GAAG,aAAa;GACrC,OAAO;IACL,GAAG;IACH,SAAS,KAAK,WAAW;IACzB,MACE,CAAC,OAAO,cAAc,QACpB,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;KACE,YAAA,GAAWA,WAAAA,QAAAA,CACT,SAAS,SAAS,UAAU,UAAU,YACtC,aAAa,wBAAwB,YACvC;KAEA,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,WAAD,EAAW,MAAM,GAAK,CAAA;IACnB,CAAA,IAEL,KAAK;GAEX;EACF,CAAC;CACF,CAAA;AAEL"}
|
|
@@ -6,5 +6,5 @@ type AllProps = StepsProps & {
|
|
|
6
6
|
setCurrent?: (current: number) => void;
|
|
7
7
|
};
|
|
8
8
|
type Props = Expand<AllProps>;
|
|
9
|
-
export declare const Steps: ({ items, current, setCurrent, dot, direction, orientation, size, labelPlacement, titlePlacement, ...props }: Props) => import('react').JSX.Element;
|
|
9
|
+
export declare const Steps: ({ items, current, setCurrent, dot, direction, orientation, size, labelPlacement, titlePlacement, className, ...props }: Props) => import('react').JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -5,22 +5,23 @@ import { CheckIcon } from "@phosphor-icons/react";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import cx from "classnames";
|
|
7
7
|
//#region src/components/steps/Steps.tsx
|
|
8
|
-
var Steps$1 = ({ items, current, setCurrent, dot = false, direction, orientation, size, labelPlacement, titlePlacement, ...props }) => {
|
|
8
|
+
var Steps$1 = ({ items, current, setCurrent, dot = false, direction, orientation, size, labelPlacement, titlePlacement, className, ...props }) => {
|
|
9
9
|
const isVertical = (orientation ?? direction) === "vertical";
|
|
10
10
|
const totalSteps = items?.length || 0;
|
|
11
|
+
const isReadOnly = current !== void 0 && setCurrent === void 0;
|
|
11
12
|
const { current: currentStep, setCurrent: setCurrentStep } = useSteps({
|
|
12
13
|
current,
|
|
13
14
|
setCurrent,
|
|
14
15
|
totalSteps
|
|
15
16
|
});
|
|
16
17
|
return /* @__PURE__ */ jsx(Steps, {
|
|
17
|
-
className: "j2Steps",
|
|
18
18
|
...props,
|
|
19
|
+
className: cx("j2Steps", className),
|
|
19
20
|
orientation: orientation ?? direction,
|
|
20
21
|
titlePlacement: titlePlacement ?? labelPlacement,
|
|
21
22
|
size: size === "default" ? "medium" : size,
|
|
22
23
|
current: currentStep,
|
|
23
|
-
onChange: (curr) => setCurrentStep(curr),
|
|
24
|
+
onChange: isReadOnly ? void 0 : (curr) => setCurrentStep(curr),
|
|
24
25
|
...dot && { type: "dot" },
|
|
25
26
|
items: items?.map((item, index) => {
|
|
26
27
|
const { description, ...restItem } = item;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Steps.js","names":["Steps","AntdSteps"],"sources":["../../../../src/components/steps/Steps.tsx"],"sourcesContent":["import { Steps as AntdSteps, StepsProps } from 'antd'\nimport './Steps.css'\nimport { CheckIcon } from '@phosphor-icons/react'\nimport cx from 'classnames'\nimport { useSteps } from './useSteps'\n\ntype AllProps = StepsProps & {\n items: NonNullable<StepsProps['items']>\n dot?: boolean\n current?: number\n setCurrent?: (current: number) => void\n}\n\ntype Props = Expand<AllProps>\n\nexport const Steps = ({\n items,\n current,\n setCurrent,\n dot = false,\n direction,\n orientation,\n size,\n labelPlacement,\n titlePlacement,\n ...props\n}: Props) => {\n const isVertical = (orientation ?? direction) === 'vertical'\n const totalSteps = items?.length || 0\n\n const { current: currentStep, setCurrent: setCurrentStep } = useSteps({\n current,\n setCurrent,\n totalSteps,\n })\n\n return (\n <AntdSteps\n
|
|
1
|
+
{"version":3,"file":"Steps.js","names":["Steps","AntdSteps"],"sources":["../../../../src/components/steps/Steps.tsx"],"sourcesContent":["import { Steps as AntdSteps, StepsProps } from 'antd'\nimport './Steps.css'\nimport { CheckIcon } from '@phosphor-icons/react'\nimport cx from 'classnames'\nimport { useSteps } from './useSteps'\n\ntype AllProps = StepsProps & {\n items: NonNullable<StepsProps['items']>\n dot?: boolean\n current?: number\n setCurrent?: (current: number) => void\n}\n\ntype Props = Expand<AllProps>\n\nexport const Steps = ({\n items,\n current,\n setCurrent,\n dot = false,\n direction,\n orientation,\n size,\n labelPlacement,\n titlePlacement,\n className,\n ...props\n}: Props) => {\n const isVertical = (orientation ?? direction) === 'vertical'\n const totalSteps = items?.length || 0\n // antd only makes a step clickable when `onChange` is set, so a controlled\n // bar with no setter renders read-only rather than inert-but-clickable.\n const isReadOnly = current !== undefined && setCurrent === undefined\n\n const { current: currentStep, setCurrent: setCurrentStep } = useSteps({\n current,\n setCurrent,\n totalSteps,\n })\n\n return (\n <AntdSteps\n {...props}\n className={cx('j2Steps', className)}\n orientation={orientation ?? direction}\n titlePlacement={titlePlacement ?? labelPlacement}\n size={size === 'default' ? 'medium' : size}\n current={currentStep}\n onChange={isReadOnly ? undefined : (curr) => setCurrentStep(curr)}\n {...(dot && { type: 'dot' })}\n items={items?.map((item, index) => {\n const { description, ...restItem } = item\n return {\n ...restItem,\n content: item.content ?? description,\n icon:\n !dot && currentStep > index ? (\n <div\n className={cx(\n `check-${size === 'small' ? 'small' : 'medium'}`,\n isVertical ? `vertical-check-icon` : `check-icon`\n )}\n >\n <CheckIcon size={16} />\n </div>\n ) : (\n item.icon\n ),\n }\n })}\n />\n )\n}\n"],"mappings":";;;;;;;AAeA,IAAaA,WAAS,EACpB,OACA,SACA,YACA,MAAM,OACN,WACA,aACA,MACA,gBACA,gBACA,WACA,GAAG,YACQ;CACX,MAAM,cAAc,eAAe,eAAe;CAClD,MAAM,aAAa,OAAO,UAAU;CAGpC,MAAM,aAAa,YAAY,KAAA,KAAa,eAAe,KAAA;CAE3D,MAAM,EAAE,SAAS,aAAa,YAAY,mBAAmB,SAAS;EACpE;EACA;EACA;CACF,CAAC;CAED,OACE,oBAACC,OAAD;EACE,GAAI;EACJ,WAAW,GAAG,WAAW,SAAS;EAClC,aAAa,eAAe;EAC5B,gBAAgB,kBAAkB;EAClC,MAAM,SAAS,YAAY,WAAW;EACtC,SAAS;EACT,UAAU,aAAa,KAAA,KAAa,SAAS,eAAe,IAAI;EAChE,GAAK,OAAO,EAAE,MAAM,MAAM;EAC1B,OAAO,OAAO,KAAK,MAAM,UAAU;GACjC,MAAM,EAAE,aAAa,GAAG,aAAa;GACrC,OAAO;IACL,GAAG;IACH,SAAS,KAAK,WAAW;IACzB,MACE,CAAC,OAAO,cAAc,QACpB,oBAAC,OAAD;KACE,WAAW,GACT,SAAS,SAAS,UAAU,UAAU,YACtC,aAAa,wBAAwB,YACvC;KAEA,UAAA,oBAAC,WAAD,EAAW,MAAM,GAAK,CAAA;IACnB,CAAA,IAEL,KAAK;GAEX;EACF,CAAC;CACF,CAAA;AAEL"}
|
|
@@ -2,10 +2,10 @@ let react = require("react");
|
|
|
2
2
|
//#region src/components/steps/useSteps.ts
|
|
3
3
|
var useSteps = ({ current, setCurrent, totalSteps, initialStep = 0 }) => {
|
|
4
4
|
const [internalCurrent, setInternalCurrent] = (0, react.useState)(initialStep);
|
|
5
|
-
const isControlled = current !== void 0
|
|
5
|
+
const isControlled = current !== void 0;
|
|
6
6
|
const currentStep = isControlled ? current : internalCurrent;
|
|
7
7
|
const handleSetCurrent = (0, react.useCallback)((newCurrent) => {
|
|
8
|
-
if (isControlled) setCurrent(newCurrent);
|
|
8
|
+
if (isControlled) setCurrent?.(newCurrent);
|
|
9
9
|
else setInternalCurrent(newCurrent);
|
|
10
10
|
}, [isControlled, setCurrent]);
|
|
11
11
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSteps.cjs","names":["useState","useCallback"],"sources":["../../../../src/components/steps/useSteps.ts"],"sourcesContent":["import { useState, useCallback } from 'react'\n\ninterface UseStepsOptions {\n current?: number\n setCurrent?: (current: number) => void\n totalSteps: number\n initialStep?: number\n}\n\nexport const useSteps = ({\n current,\n setCurrent,\n totalSteps,\n initialStep = 0,\n}: UseStepsOptions) => {\n const [internalCurrent, setInternalCurrent] = useState(initialStep)\n\n
|
|
1
|
+
{"version":3,"file":"useSteps.cjs","names":["useState","useCallback"],"sources":["../../../../src/components/steps/useSteps.ts"],"sourcesContent":["import { useState, useCallback } from 'react'\n\ninterface UseStepsOptions {\n current?: number\n setCurrent?: (current: number) => void\n totalSteps: number\n initialStep?: number\n}\n\nexport const useSteps = ({\n current,\n setCurrent,\n totalSteps,\n initialStep = 0,\n}: UseStepsOptions) => {\n const [internalCurrent, setInternalCurrent] = useState(initialStep)\n\n // `current` alone makes the steps controlled. Without `setCurrent` they are\n // read-only: navigation is a no-op and the parent moves `current` itself.\n const isControlled = current !== undefined\n const currentStep = isControlled ? current : internalCurrent\n\n const handleSetCurrent = useCallback(\n (newCurrent: number) => {\n if (isControlled) {\n setCurrent?.(newCurrent)\n } else {\n setInternalCurrent(newCurrent)\n }\n },\n [isControlled, setCurrent]\n )\n\n const next = useCallback(() => {\n if (currentStep < totalSteps - 1) {\n handleSetCurrent(currentStep + 1)\n }\n }, [currentStep, totalSteps, handleSetCurrent])\n\n const previous = useCallback(() => {\n if (currentStep > 0) {\n handleSetCurrent(currentStep - 1)\n }\n }, [currentStep, handleSetCurrent])\n\n const goToStep = useCallback(\n (step: number) => {\n if (step >= 0 && step < totalSteps) {\n handleSetCurrent(step)\n }\n },\n [totalSteps, handleSetCurrent]\n )\n\n const cancel = useCallback(() => {\n handleSetCurrent(initialStep)\n }, [handleSetCurrent, initialStep])\n\n return {\n next,\n previous,\n goToStep,\n cancel,\n current: currentStep,\n setCurrent: handleSetCurrent,\n canGoNext: currentStep < totalSteps - 1,\n canGoPrevious: currentStep > 0,\n }\n}\n"],"mappings":";;AASA,IAAa,YAAY,EACvB,SACA,YACA,YACA,cAAc,QACO;CACrB,MAAM,CAAC,iBAAiB,uBAAA,GAAsBA,MAAAA,SAAAA,CAAS,WAAW;CAIlE,MAAM,eAAe,YAAY,KAAA;CACjC,MAAM,cAAc,eAAe,UAAU;CAE7C,MAAM,oBAAA,GAAmBC,MAAAA,YAAAA,EACtB,eAAuB;EACtB,IAAI,cACF,aAAa,UAAU;OAEvB,mBAAmB,UAAU;CAEjC,GACA,CAAC,cAAc,UAAU,CAC3B;CA2BA,OAAO;EACL,OAAA,GA1BWA,MAAAA,YAAAA,OAAkB;GAC7B,IAAI,cAAc,aAAa,GAC7B,iBAAiB,cAAc,CAAC;EAEpC,GAAG;GAAC;GAAa;GAAY;EAAgB,CAsB3C;EACA,WAAA,GArBeA,MAAAA,YAAAA,OAAkB;GACjC,IAAI,cAAc,GAChB,iBAAiB,cAAc,CAAC;EAEpC,GAAG,CAAC,aAAa,gBAAgB,CAiB/B;EACA,WAAA,GAhBeA,MAAAA,YAAAA,EACd,SAAiB;GAChB,IAAI,QAAQ,KAAK,OAAO,YACtB,iBAAiB,IAAI;EAEzB,GACA,CAAC,YAAY,gBAAgB,CAU7B;EACA,SAAA,GARaA,MAAAA,YAAAA,OAAkB;GAC/B,iBAAiB,WAAW;EAC9B,GAAG,CAAC,kBAAkB,WAAW,CAM/B;EACA,SAAS;EACT,YAAY;EACZ,WAAW,cAAc,aAAa;EACtC,eAAe,cAAc;CAC/B;AACF"}
|
|
@@ -2,10 +2,10 @@ import { useCallback, useState } from "react";
|
|
|
2
2
|
//#region src/components/steps/useSteps.ts
|
|
3
3
|
var useSteps = ({ current, setCurrent, totalSteps, initialStep = 0 }) => {
|
|
4
4
|
const [internalCurrent, setInternalCurrent] = useState(initialStep);
|
|
5
|
-
const isControlled = current !== void 0
|
|
5
|
+
const isControlled = current !== void 0;
|
|
6
6
|
const currentStep = isControlled ? current : internalCurrent;
|
|
7
7
|
const handleSetCurrent = useCallback((newCurrent) => {
|
|
8
|
-
if (isControlled) setCurrent(newCurrent);
|
|
8
|
+
if (isControlled) setCurrent?.(newCurrent);
|
|
9
9
|
else setInternalCurrent(newCurrent);
|
|
10
10
|
}, [isControlled, setCurrent]);
|
|
11
11
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSteps.js","names":[],"sources":["../../../../src/components/steps/useSteps.ts"],"sourcesContent":["import { useState, useCallback } from 'react'\n\ninterface UseStepsOptions {\n current?: number\n setCurrent?: (current: number) => void\n totalSteps: number\n initialStep?: number\n}\n\nexport const useSteps = ({\n current,\n setCurrent,\n totalSteps,\n initialStep = 0,\n}: UseStepsOptions) => {\n const [internalCurrent, setInternalCurrent] = useState(initialStep)\n\n
|
|
1
|
+
{"version":3,"file":"useSteps.js","names":[],"sources":["../../../../src/components/steps/useSteps.ts"],"sourcesContent":["import { useState, useCallback } from 'react'\n\ninterface UseStepsOptions {\n current?: number\n setCurrent?: (current: number) => void\n totalSteps: number\n initialStep?: number\n}\n\nexport const useSteps = ({\n current,\n setCurrent,\n totalSteps,\n initialStep = 0,\n}: UseStepsOptions) => {\n const [internalCurrent, setInternalCurrent] = useState(initialStep)\n\n // `current` alone makes the steps controlled. Without `setCurrent` they are\n // read-only: navigation is a no-op and the parent moves `current` itself.\n const isControlled = current !== undefined\n const currentStep = isControlled ? current : internalCurrent\n\n const handleSetCurrent = useCallback(\n (newCurrent: number) => {\n if (isControlled) {\n setCurrent?.(newCurrent)\n } else {\n setInternalCurrent(newCurrent)\n }\n },\n [isControlled, setCurrent]\n )\n\n const next = useCallback(() => {\n if (currentStep < totalSteps - 1) {\n handleSetCurrent(currentStep + 1)\n }\n }, [currentStep, totalSteps, handleSetCurrent])\n\n const previous = useCallback(() => {\n if (currentStep > 0) {\n handleSetCurrent(currentStep - 1)\n }\n }, [currentStep, handleSetCurrent])\n\n const goToStep = useCallback(\n (step: number) => {\n if (step >= 0 && step < totalSteps) {\n handleSetCurrent(step)\n }\n },\n [totalSteps, handleSetCurrent]\n )\n\n const cancel = useCallback(() => {\n handleSetCurrent(initialStep)\n }, [handleSetCurrent, initialStep])\n\n return {\n next,\n previous,\n goToStep,\n cancel,\n current: currentStep,\n setCurrent: handleSetCurrent,\n canGoNext: currentStep < totalSteps - 1,\n canGoPrevious: currentStep > 0,\n }\n}\n"],"mappings":";;AASA,IAAa,YAAY,EACvB,SACA,YACA,YACA,cAAc,QACO;CACrB,MAAM,CAAC,iBAAiB,sBAAsB,SAAS,WAAW;CAIlE,MAAM,eAAe,YAAY,KAAA;CACjC,MAAM,cAAc,eAAe,UAAU;CAE7C,MAAM,mBAAmB,aACtB,eAAuB;EACtB,IAAI,cACF,aAAa,UAAU;OAEvB,mBAAmB,UAAU;CAEjC,GACA,CAAC,cAAc,UAAU,CAC3B;CA2BA,OAAO;EACL,MA1BW,kBAAkB;GAC7B,IAAI,cAAc,aAAa,GAC7B,iBAAiB,cAAc,CAAC;EAEpC,GAAG;GAAC;GAAa;GAAY;EAAgB,CAsB3C;EACA,UArBe,kBAAkB;GACjC,IAAI,cAAc,GAChB,iBAAiB,cAAc,CAAC;EAEpC,GAAG,CAAC,aAAa,gBAAgB,CAiB/B;EACA,UAhBe,aACd,SAAiB;GAChB,IAAI,QAAQ,KAAK,OAAO,YACtB,iBAAiB,IAAI;EAEzB,GACA,CAAC,YAAY,gBAAgB,CAU7B;EACA,QARa,kBAAkB;GAC/B,iBAAiB,WAAW;EAC9B,GAAG,CAAC,kBAAkB,WAAW,CAM/B;EACA,SAAS;EACT,YAAY;EACZ,WAAW,cAAc,aAAa;EACtC,eAAe,cAAc;CAC/B;AACF"}
|
package/dist/style.css
CHANGED
|
@@ -792,7 +792,7 @@
|
|
|
792
792
|
color: white;
|
|
793
793
|
font-weight: 700;
|
|
794
794
|
}
|
|
795
|
-
.
|
|
795
|
+
._hemisphericSelect_1pxzv_1 {
|
|
796
796
|
border-radius: 9999px !important;
|
|
797
797
|
|
|
798
798
|
.ant-select-placeholder {
|
|
@@ -800,7 +800,7 @@
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
-
.
|
|
803
|
+
._summarizedSelect_1pxzv_9 {
|
|
804
804
|
.ant-select-suffix {
|
|
805
805
|
color: var(--j2-color-primary);
|
|
806
806
|
}
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
.
|
|
840
|
+
._isActive_1pxzv_46 {
|
|
841
841
|
background: var(--j2-color-primary) !important;
|
|
842
842
|
|
|
843
843
|
.ant-select-selection-item-content {
|
|
@@ -849,21 +849,21 @@
|
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
.
|
|
852
|
+
._menuContainer_1pxzv_58 .ant-select-item-option-selected {
|
|
853
853
|
background: var(--j2-color-primary) !important;
|
|
854
854
|
}
|
|
855
855
|
|
|
856
|
-
.
|
|
856
|
+
._menuContainer_1pxzv_58
|
|
857
857
|
.ant-select-item-option-selected
|
|
858
858
|
.ant-select-item-option-content {
|
|
859
859
|
color: white;
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
.
|
|
862
|
+
._menuContainerMultiple_1pxzv_68 .ant-select-item-option-selected {
|
|
863
863
|
background: var(--j2-color-primary-bg-hover) !important;
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
-
.
|
|
866
|
+
._menuContainerMultiple_1pxzv_68
|
|
867
867
|
.ant-select-item-option-selected
|
|
868
868
|
.ant-select-item-option-content {
|
|
869
869
|
color: inherit;
|
|
@@ -874,14 +874,14 @@
|
|
|
874
874
|
* The select root owns its border and background in Ant Design 6.
|
|
875
875
|
*/
|
|
876
876
|
|
|
877
|
-
.
|
|
877
|
+
._headlinedSelect_1pxzv_83.ant-select.ant-select-single {
|
|
878
878
|
font-size: var(--j2-font-size-heading-2);
|
|
879
879
|
height: 40px;
|
|
880
880
|
width: -moz-fit-content !important;
|
|
881
881
|
width: fit-content !important;
|
|
882
882
|
}
|
|
883
883
|
|
|
884
|
-
.
|
|
884
|
+
._headlinedSelect_1pxzv_83.ant-select {
|
|
885
885
|
background: transparent;
|
|
886
886
|
padding-left: 0;
|
|
887
887
|
padding-right: 4px;
|
|
@@ -890,13 +890,13 @@
|
|
|
890
890
|
border-radius: 0;
|
|
891
891
|
}
|
|
892
892
|
|
|
893
|
-
.
|
|
893
|
+
._headlinedSelect_1pxzv_83.ant-select .ant-select-suffix {
|
|
894
894
|
height: 16px;
|
|
895
895
|
width: 16px;
|
|
896
896
|
right: 0;
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
-
.
|
|
899
|
+
._headlinedSelect_1pxzv_83.ant-select .ant-select-content {
|
|
900
900
|
font-weight: 600;
|
|
901
901
|
line-height: 1.3;
|
|
902
902
|
}
|
|
@@ -906,43 +906,43 @@
|
|
|
906
906
|
too, so every click boxed the headline. The underline below already marks
|
|
907
907
|
focus. `!important` because antd's status variants of that rule reach
|
|
908
908
|
(0,5,1) specificity. */
|
|
909
|
-
.
|
|
909
|
+
._headlinedSelect_1pxzv_83.ant-select {
|
|
910
910
|
outline: none !important;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
913
|
/* Hover state - show underline */
|
|
914
|
-
.
|
|
914
|
+
._headlinedSelect_1pxzv_83.ant-select:hover {
|
|
915
915
|
border-bottom-color: var(--j2-color-primary);
|
|
916
916
|
}
|
|
917
917
|
|
|
918
918
|
/* Open/focused state - keep underline and text color */
|
|
919
|
-
.
|
|
920
|
-
.
|
|
919
|
+
._headlinedSelect_1pxzv_83.ant-select-open,
|
|
920
|
+
._headlinedSelect_1pxzv_83.ant-select-focused {
|
|
921
921
|
border-bottom-color: var(--j2-color-primary);
|
|
922
922
|
}
|
|
923
923
|
|
|
924
|
-
.
|
|
925
|
-
.
|
|
924
|
+
._headlinedSelect_1pxzv_83.ant-select-open .ant-select-content,
|
|
925
|
+
._headlinedSelect_1pxzv_83.ant-select-focused .ant-select-content {
|
|
926
926
|
color: inherit;
|
|
927
927
|
}
|
|
928
928
|
|
|
929
929
|
/* Headline dropdown styles - needs !important to override .menuContainer */
|
|
930
|
-
.
|
|
930
|
+
._menuContainer_1pxzv_58._headlinedMenuContainer_1pxzv_135
|
|
931
931
|
.ant-select-item-option-selected {
|
|
932
932
|
background: var(--j2-color-primary) !important;
|
|
933
933
|
}
|
|
934
934
|
|
|
935
|
-
.
|
|
935
|
+
._menuContainer_1pxzv_58._headlinedMenuContainer_1pxzv_135
|
|
936
936
|
.ant-select-item-option-selected
|
|
937
937
|
.ant-select-item-option-content {
|
|
938
938
|
color: white;
|
|
939
939
|
}
|
|
940
940
|
|
|
941
|
-
.
|
|
941
|
+
._clearAllButton_1pxzv_146 {
|
|
942
942
|
color: var(--j2-color-primary);
|
|
943
943
|
}
|
|
944
944
|
|
|
945
|
-
.
|
|
945
|
+
._clearAllButton_1pxzv_146:hover {
|
|
946
946
|
background-color: var(--j2-color-primary-bg-hover);
|
|
947
947
|
}
|
|
948
948
|
|
|
@@ -957,19 +957,19 @@
|
|
|
957
957
|
* Color needs `.ant-typography` to beat antd's link color.
|
|
958
958
|
*/
|
|
959
959
|
|
|
960
|
-
.
|
|
961
|
-
.
|
|
962
|
-
.
|
|
960
|
+
._dropdownTrigger_1pxzv_165.ant-typography,
|
|
961
|
+
._dropdownTrigger_1pxzv_165.ant-typography:hover,
|
|
962
|
+
._dropdownTrigger_1pxzv_165.ant-typography:focus {
|
|
963
963
|
color: var(--j2-color-primary);
|
|
964
964
|
text-decoration: none;
|
|
965
965
|
}
|
|
966
966
|
|
|
967
|
-
.
|
|
967
|
+
._dropdownTrigger_1pxzv_165.ant-typography:hover {
|
|
968
968
|
opacity: 0.7;
|
|
969
969
|
}
|
|
970
970
|
|
|
971
|
-
.
|
|
972
|
-
.
|
|
971
|
+
._dropdownTrigger_1pxzv_165.ant-typography-disabled,
|
|
972
|
+
._dropdownTrigger_1pxzv_165.ant-typography-disabled:hover {
|
|
973
973
|
color: var(--j2-color-text-disabled);
|
|
974
974
|
opacity: 1;
|
|
975
975
|
}
|
|
@@ -978,9 +978,15 @@
|
|
|
978
978
|
* Field variant (`variant="field"`)
|
|
979
979
|
* A form field: full width, the field's own text color, a muted caret.
|
|
980
980
|
*/
|
|
981
|
-
.
|
|
981
|
+
._fieldSelect_1pxzv_186 .ant-select-suffix {
|
|
982
982
|
color: var(--j2-color-text-secondary);
|
|
983
983
|
}
|
|
984
|
+
|
|
985
|
+
/* A line between option groups, drawn on every group after the first. */
|
|
986
|
+
._groupDivider_1pxzv_191 {
|
|
987
|
+
border-top: 1px solid var(--j2-color-border-secondary);
|
|
988
|
+
border-radius: 0 !important;
|
|
989
|
+
}
|
|
984
990
|
._pill_16f8w_1 {
|
|
985
991
|
display: inline-flex;
|
|
986
992
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@j2-health/design-system",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "J2 Health shared React component library",
|
|
6
6
|
"repository": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@dnd-kit/utilities": "^3.2.2",
|
|
61
61
|
"@highcharts/react": "^5.0.0",
|
|
62
62
|
"@phosphor-icons/react": "^2.1.7",
|
|
63
|
-
"antd": "^6.6.
|
|
63
|
+
"antd": "^6.6.6",
|
|
64
64
|
"classnames": "^2.5.1",
|
|
65
65
|
"formik": "^2.4.6",
|
|
66
66
|
"highcharts": "^13.1.1",
|
|
@@ -76,51 +76,51 @@
|
|
|
76
76
|
"@dnd-kit/utilities": "^3.2.2",
|
|
77
77
|
"@eslint/compat": "^2.1.1",
|
|
78
78
|
"@eslint/js": "^10.0.1",
|
|
79
|
-
"@highcharts/react": "^5.
|
|
79
|
+
"@highcharts/react": "^5.4.0",
|
|
80
80
|
"@phosphor-icons/react": "^2.1.7",
|
|
81
|
-
"@storybook/addon-docs": "^10.6.
|
|
82
|
-
"@storybook/addon-links": "^10.6.
|
|
83
|
-
"@storybook/react-vite": "^10.6.
|
|
81
|
+
"@storybook/addon-docs": "^10.6.2",
|
|
82
|
+
"@storybook/addon-links": "^10.6.2",
|
|
83
|
+
"@storybook/react-vite": "^10.6.2",
|
|
84
84
|
"@tailwindcss/postcss": "^4.3.3",
|
|
85
85
|
"@testing-library/jest-dom": "^7.0.1",
|
|
86
86
|
"@testing-library/react": "^16.3.3",
|
|
87
|
-
"@types/lodash": "^4.17.
|
|
87
|
+
"@types/lodash": "^4.17.26",
|
|
88
88
|
"@types/react": "^19.2.18",
|
|
89
89
|
"@types/react-dom": "^19.2.5",
|
|
90
90
|
"@vitejs/plugin-react": "^6.1.2",
|
|
91
|
-
"@vitest/coverage-v8": "^5.0.
|
|
92
|
-
"antd": "^6.6.
|
|
91
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
92
|
+
"antd": "^6.6.6",
|
|
93
93
|
"autoprefixer": "^10.6.1",
|
|
94
94
|
"classnames": "^2.5.1",
|
|
95
|
-
"eslint": "^10.
|
|
95
|
+
"eslint": "^10.13.0",
|
|
96
96
|
"eslint-config-prettier": "^10.1.8",
|
|
97
97
|
"eslint-plugin-react": "^7.37.2",
|
|
98
98
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
99
99
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
100
|
-
"eslint-plugin-storybook": "^10.6.
|
|
100
|
+
"eslint-plugin-storybook": "^10.6.2",
|
|
101
101
|
"formik": "^2.4.6",
|
|
102
102
|
"globals": "^17.13.0",
|
|
103
|
-
"happy-dom": "^
|
|
103
|
+
"happy-dom": "^21.0.3",
|
|
104
104
|
"highcharts": "^13.1.1",
|
|
105
105
|
"lodash": "^4.18.1",
|
|
106
|
-
"postcss": "^8.5.
|
|
107
|
-
"prettier": "^3.9.
|
|
106
|
+
"postcss": "^8.5.31",
|
|
107
|
+
"prettier": "^3.9.10",
|
|
108
108
|
"react": "^19.2.8",
|
|
109
|
-
"react-dom": "^19.
|
|
109
|
+
"react-dom": "^19.3.1",
|
|
110
110
|
"semver": "^7.8.5",
|
|
111
|
-
"storybook": "^10.6.
|
|
111
|
+
"storybook": "^10.6.2",
|
|
112
112
|
"tailwindcss": "^4.3.3",
|
|
113
113
|
"ts-node": "^10.9.2",
|
|
114
114
|
"typescript": "^5.5.3",
|
|
115
|
-
"typescript-eslint": "^8.71.
|
|
116
|
-
"vite": "^8.3.
|
|
115
|
+
"typescript-eslint": "^8.71.2",
|
|
116
|
+
"vite": "^8.3.4",
|
|
117
117
|
"vite-plugin-dts": "^5.1.2",
|
|
118
118
|
"vite-plugin-svgr": "^5.2.0",
|
|
119
|
-
"vitest": "^5.0.
|
|
119
|
+
"vitest": "^5.0.4",
|
|
120
120
|
"yup": "^1.4.0"
|
|
121
121
|
},
|
|
122
122
|
"optionalDependencies": {
|
|
123
|
-
"@rollup/rollup-linux-x64-gnu": "^4.64.
|
|
123
|
+
"@rollup/rollup-linux-x64-gnu": "^4.64.10"
|
|
124
124
|
},
|
|
125
125
|
"eslintConfig": {
|
|
126
126
|
"extends": [
|