@salt-ds/lab 1.0.0-alpha.47 → 1.0.0-alpha.48
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/css/salt-lab.css +1 -25
- package/dist-cjs/calendar/Calendar.js +4 -1
- package/dist-cjs/calendar/Calendar.js.map +1 -1
- package/dist-cjs/calendar/useSelection.js +1 -1
- package/dist-cjs/calendar/useSelection.js.map +1 -1
- package/dist-cjs/date-input/DateInput.js +235 -234
- package/dist-cjs/date-input/DateInput.js.map +1 -1
- package/dist-cjs/date-picker/DatePicker.js +135 -142
- package/dist-cjs/date-picker/DatePicker.js.map +1 -1
- package/dist-cjs/date-picker/DatePickerContext.js +14 -20
- package/dist-cjs/date-picker/DatePickerContext.js.map +1 -1
- package/dist-cjs/date-picker/DatePickerPanel.js +129 -115
- package/dist-cjs/date-picker/DatePickerPanel.js.map +1 -1
- package/dist-cjs/index.js +0 -2
- package/dist-cjs/index.js.map +1 -1
- package/dist-es/calendar/Calendar.js +4 -1
- package/dist-es/calendar/Calendar.js.map +1 -1
- package/dist-es/calendar/useSelection.js +1 -1
- package/dist-es/calendar/useSelection.js.map +1 -1
- package/dist-es/date-input/DateInput.js +235 -234
- package/dist-es/date-input/DateInput.js.map +1 -1
- package/dist-es/date-picker/DatePicker.js +135 -142
- package/dist-es/date-picker/DatePicker.js.map +1 -1
- package/dist-es/date-picker/DatePickerContext.js +14 -20
- package/dist-es/date-picker/DatePickerContext.js.map +1 -1
- package/dist-es/date-picker/DatePickerPanel.js +129 -115
- package/dist-es/date-picker/DatePickerPanel.js.map +1 -1
- package/dist-es/index.js +0 -1
- package/dist-es/index.js.map +1 -1
- package/dist-types/calendar/useCalendar.d.ts +1 -4
- package/dist-types/calendar/useSelection.d.ts +2 -2
- package/dist-types/date-input/DateInput.d.ts +10 -9
- package/dist-types/date-picker/DatePicker.d.ts +18 -22
- package/dist-types/date-picker/DatePickerContext.d.ts +7 -9
- package/dist-types/date-picker/DatePickerPanel.d.ts +5 -7
- package/dist-types/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist-cjs/divider/Divider.css.js +0 -6
- package/dist-cjs/divider/Divider.css.js.map +0 -1
- package/dist-cjs/divider/Divider.js +0 -44
- package/dist-cjs/divider/Divider.js.map +0 -1
- package/dist-es/divider/Divider.css.js +0 -4
- package/dist-es/divider/Divider.css.js.map +0 -1
- package/dist-es/divider/Divider.js +0 -40
- package/dist-es/divider/Divider.js.map +0 -1
- package/dist-types/divider/Divider.d.ts +0 -12
- package/dist-types/divider/index.d.ts +0 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { clsx } from 'clsx';
|
|
4
|
-
import { makePrefixer } from '@salt-ds/core';
|
|
5
|
-
import { useWindow } from '@salt-ds/window';
|
|
6
|
-
import { useComponentCssInjection } from '@salt-ds/styles';
|
|
7
|
-
import css_248z from './Divider.css.js';
|
|
8
|
-
|
|
9
|
-
const withBaseName = makePrefixer("saltDivider");
|
|
10
|
-
const Divider = forwardRef(
|
|
11
|
-
function Divider2(props, ref) {
|
|
12
|
-
const {
|
|
13
|
-
className,
|
|
14
|
-
orientation = "horizontal",
|
|
15
|
-
variant = "primary",
|
|
16
|
-
...rest
|
|
17
|
-
} = props;
|
|
18
|
-
const targetWindow = useWindow();
|
|
19
|
-
useComponentCssInjection({
|
|
20
|
-
testId: "salt-divider",
|
|
21
|
-
css: css_248z,
|
|
22
|
-
window: targetWindow
|
|
23
|
-
});
|
|
24
|
-
return /* @__PURE__ */ jsx("div", {
|
|
25
|
-
className: clsx(
|
|
26
|
-
withBaseName(),
|
|
27
|
-
withBaseName(orientation),
|
|
28
|
-
withBaseName(variant),
|
|
29
|
-
className
|
|
30
|
-
),
|
|
31
|
-
"aria-orientation": orientation,
|
|
32
|
-
role: "separator",
|
|
33
|
-
ref,
|
|
34
|
-
...rest
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
export { Divider };
|
|
40
|
-
//# sourceMappingURL=Divider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.js","sources":["../src/divider/Divider.tsx"],"sourcesContent":["import { ComponentPropsWithoutRef, forwardRef } from \"react\";\nimport { clsx } from \"clsx\";\nimport { makePrefixer } from \"@salt-ds/core\";\nimport { useWindow } from \"@salt-ds/window\";\nimport { useComponentCssInjection } from \"@salt-ds/styles\";\nimport dividerCss from \"./Divider.css\";\n\ntype a = HTMLElementTagNameMap;\n\nexport interface DividerProps extends ComponentPropsWithoutRef<\"div\"> {\n /**\n * The orientation of the divider. Defaults to `\"horizontal\"`.\n */\n orientation?: \"horizontal\" | \"vertical\";\n /**\n * The variant of the divider. Defaults to `\"primary\"`.\n */\n variant?: \"primary\" | \"secondary\" | \"tertiary\";\n}\n\nconst withBaseName = makePrefixer(\"saltDivider\");\n\nexport const Divider = forwardRef<HTMLDivElement, DividerProps>(\n function Divider(props, ref) {\n const {\n className,\n orientation = \"horizontal\",\n variant = \"primary\",\n ...rest\n } = props;\n\n const targetWindow = useWindow();\n useComponentCssInjection({\n testId: \"salt-divider\",\n css: dividerCss,\n window: targetWindow,\n });\n\n return (\n <div\n className={clsx(\n withBaseName(),\n withBaseName(orientation),\n withBaseName(variant),\n className\n )}\n aria-orientation={orientation}\n role=\"separator\"\n ref={ref}\n {...rest}\n />\n );\n }\n);\n"],"names":["Divider","dividerCss"],"mappings":";;;;;;;;AAoBA,MAAM,YAAA,GAAe,aAAa,aAAa,CAAA,CAAA;AAExC,MAAM,OAAU,GAAA,UAAA;AAAA,EACrB,SAASA,QAAQ,CAAA,KAAA,EAAO,GAAK,EAAA;AAC3B,IAAM,MAAA;AAAA,MACJ,SAAA;AAAA,MACA,WAAc,GAAA,YAAA;AAAA,MACd,OAAU,GAAA,SAAA;AAAA,MACP,GAAA,IAAA;AAAA,KACD,GAAA,KAAA,CAAA;AAEJ,IAAA,MAAM,eAAe,SAAU,EAAA,CAAA;AAC/B,IAAyB,wBAAA,CAAA;AAAA,MACvB,MAAQ,EAAA,cAAA;AAAA,MACR,GAAK,EAAAC,QAAA;AAAA,MACL,MAAQ,EAAA,YAAA;AAAA,KACT,CAAA,CAAA;AAED,IAAA,uBACG,GAAA,CAAA,KAAA,EAAA;AAAA,MACC,SAAW,EAAA,IAAA;AAAA,QACT,YAAa,EAAA;AAAA,QACb,aAAa,WAAW,CAAA;AAAA,QACxB,aAAa,OAAO,CAAA;AAAA,QACpB,SAAA;AAAA,OACF;AAAA,MACA,kBAAkB,EAAA,WAAA;AAAA,MAClB,IAAK,EAAA,WAAA;AAAA,MACL,GAAA;AAAA,MACC,GAAG,IAAA;AAAA,KACN,CAAA,CAAA;AAAA,GAEJ;AACF;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
export interface DividerProps extends ComponentPropsWithoutRef<"div"> {
|
|
3
|
-
/**
|
|
4
|
-
* The orientation of the divider. Defaults to `"horizontal"`.
|
|
5
|
-
*/
|
|
6
|
-
orientation?: "horizontal" | "vertical";
|
|
7
|
-
/**
|
|
8
|
-
* The variant of the divider. Defaults to `"primary"`.
|
|
9
|
-
*/
|
|
10
|
-
variant?: "primary" | "secondary" | "tertiary";
|
|
11
|
-
}
|
|
12
|
-
export declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Divider";
|