@elliemae/ds-slider-v2 3.26.0-next.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.
Files changed (91) hide show
  1. package/dist/cjs/DSSliderV2.js +50 -0
  2. package/dist/cjs/DSSliderV2.js.map +7 -0
  3. package/dist/cjs/DSSliderV2CTX.js +40 -0
  4. package/dist/cjs/DSSliderV2CTX.js.map +7 -0
  5. package/dist/cjs/config/useSliderV2.js +70 -0
  6. package/dist/cjs/config/useSliderV2.js.map +7 -0
  7. package/dist/cjs/config/useTickMarksValues.js +51 -0
  8. package/dist/cjs/config/useTickMarksValues.js.map +7 -0
  9. package/dist/cjs/config/useValidateProps.js +45 -0
  10. package/dist/cjs/config/useValidateProps.js.map +7 -0
  11. package/dist/cjs/constants/index.js +50 -0
  12. package/dist/cjs/constants/index.js.map +7 -0
  13. package/dist/cjs/index.js +42 -0
  14. package/dist/cjs/index.js.map +7 -0
  15. package/dist/cjs/package.json +7 -0
  16. package/dist/cjs/parts/MainContent.js +95 -0
  17. package/dist/cjs/parts/MainContent.js.map +7 -0
  18. package/dist/cjs/parts/Thumb.js +82 -0
  19. package/dist/cjs/parts/Thumb.js.map +7 -0
  20. package/dist/cjs/parts/TickMarks.js +67 -0
  21. package/dist/cjs/parts/TickMarks.js.map +7 -0
  22. package/dist/cjs/parts/TickMarksValues.js +67 -0
  23. package/dist/cjs/parts/TickMarksValues.js.map +7 -0
  24. package/dist/cjs/parts/Track.js +71 -0
  25. package/dist/cjs/parts/Track.js.map +7 -0
  26. package/dist/cjs/react-desc-prop-types.js +64 -0
  27. package/dist/cjs/react-desc-prop-types.js.map +7 -0
  28. package/dist/cjs/styles.js +122 -0
  29. package/dist/cjs/styles.js.map +7 -0
  30. package/dist/cjs/typescript-testing/typescript-slider-v2-valid.js +95 -0
  31. package/dist/cjs/typescript-testing/typescript-slider-v2-valid.js.map +7 -0
  32. package/dist/cjs/utils/inRange.js +42 -0
  33. package/dist/cjs/utils/inRange.js.map +7 -0
  34. package/dist/cjs/utils/thumbLabels.js +51 -0
  35. package/dist/cjs/utils/thumbLabels.js.map +7 -0
  36. package/dist/esm/DSSliderV2.js +20 -0
  37. package/dist/esm/DSSliderV2.js.map +7 -0
  38. package/dist/esm/DSSliderV2CTX.js +10 -0
  39. package/dist/esm/DSSliderV2CTX.js.map +7 -0
  40. package/dist/esm/config/useSliderV2.js +40 -0
  41. package/dist/esm/config/useSliderV2.js.map +7 -0
  42. package/dist/esm/config/useTickMarksValues.js +21 -0
  43. package/dist/esm/config/useTickMarksValues.js.map +7 -0
  44. package/dist/esm/config/useValidateProps.js +15 -0
  45. package/dist/esm/config/useValidateProps.js.map +7 -0
  46. package/dist/esm/constants/index.js +20 -0
  47. package/dist/esm/constants/index.js.map +7 -0
  48. package/dist/esm/index.js +12 -0
  49. package/dist/esm/index.js.map +7 -0
  50. package/dist/esm/package.json +7 -0
  51. package/dist/esm/parts/MainContent.js +65 -0
  52. package/dist/esm/parts/MainContent.js.map +7 -0
  53. package/dist/esm/parts/Thumb.js +52 -0
  54. package/dist/esm/parts/Thumb.js.map +7 -0
  55. package/dist/esm/parts/TickMarks.js +37 -0
  56. package/dist/esm/parts/TickMarks.js.map +7 -0
  57. package/dist/esm/parts/TickMarksValues.js +37 -0
  58. package/dist/esm/parts/TickMarksValues.js.map +7 -0
  59. package/dist/esm/parts/Track.js +41 -0
  60. package/dist/esm/parts/Track.js.map +7 -0
  61. package/dist/esm/react-desc-prop-types.js +39 -0
  62. package/dist/esm/react-desc-prop-types.js.map +7 -0
  63. package/dist/esm/styles.js +92 -0
  64. package/dist/esm/styles.js.map +7 -0
  65. package/dist/esm/typescript-testing/typescript-slider-v2-valid.js +72 -0
  66. package/dist/esm/typescript-testing/typescript-slider-v2-valid.js.map +7 -0
  67. package/dist/esm/utils/inRange.js +12 -0
  68. package/dist/esm/utils/inRange.js.map +7 -0
  69. package/dist/esm/utils/thumbLabels.js +21 -0
  70. package/dist/esm/utils/thumbLabels.js.map +7 -0
  71. package/dist/types/DSSliderV2.d.ts +7 -0
  72. package/dist/types/DSSliderV2CTX.d.ts +5 -0
  73. package/dist/types/config/useSliderV2.d.ts +20 -0
  74. package/dist/types/config/useTickMarksValues.d.ts +2 -0
  75. package/dist/types/config/useValidateProps.d.ts +5 -0
  76. package/dist/types/constants/index.d.ts +12 -0
  77. package/dist/types/index.d.ts +3 -0
  78. package/dist/types/parts/MainContent.d.ts +1 -0
  79. package/dist/types/parts/Thumb.d.ts +2 -0
  80. package/dist/types/parts/TickMarks.d.ts +1 -0
  81. package/dist/types/parts/TickMarksValues.d.ts +1 -0
  82. package/dist/types/parts/Track.d.ts +2 -0
  83. package/dist/types/react-desc-prop-types.d.ts +30 -0
  84. package/dist/types/styles.d.ts +21 -0
  85. package/dist/types/tests/axe-core.test.d.ts +1 -0
  86. package/dist/types/tests/events.test.d.ts +1 -0
  87. package/dist/types/tests/render.test.d.ts +1 -0
  88. package/dist/types/typescript-testing/typescript-slider-v2-valid.d.ts +1 -0
  89. package/dist/types/utils/inRange.d.ts +1 -0
  90. package/dist/types/utils/thumbLabels.d.ts +7 -0
  91. package/package.json +78 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport {\n PropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n getPropsPerSlotPropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { DSSliderV2Name, SLIDER_V2_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSSliderV2T {\n export type ValueType<TMultiple extends boolean> = TMultiple extends true\n ? [number, number]\n : TMultiple extends false\n ? number\n : number | [number, number];\n\n export interface RequiredProps<TMultiple extends boolean> {\n value: ValueType<TMultiple>;\n minValue: number;\n maxValue: number;\n }\n\n export interface DefaultProps<TMultiple extends boolean> {\n multiple: TMultiple;\n disabled: boolean;\n step: number;\n onValueChange: (newValue: ValueType<TMultiple>) => void;\n withTickMarks: boolean;\n withTickMarksValues: boolean;\n customTickMarksValues: string[];\n }\n\n export interface OptionalProps extends PropsForGlobalOnSlots<typeof DSSliderV2Name, typeof SLIDER_V2_SLOTS> {\n className?: string;\n }\n\n export interface Props<TMultiple extends boolean = false>\n extends Partial<DefaultProps<TMultiple>>,\n OptionalProps,\n XstyledProps,\n RequiredProps<TMultiple> {}\n\n export interface InternalProps<TMultiple extends boolean = false>\n extends DefaultProps<TMultiple>,\n OptionalProps,\n XstyledProps,\n RequiredProps<TMultiple> {}\n}\n\nexport const defaultProps: DSSliderV2T.DefaultProps<boolean> = {\n disabled: false,\n step: 5,\n onValueChange: () => {},\n withTickMarks: false,\n withTickMarksValues: false,\n customTickMarksValues: [],\n multiple: false as boolean,\n};\n\nexport const DSSliderV2PropTypes: DSPropTypesSchema<DSSliderV2T.Props<boolean>> = {\n ...getPropsPerSlotPropTypes(DSSliderV2Name, SLIDER_V2_SLOTS),\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n disabled: PropTypes.bool.description('disable slider').defaultValue(false),\n minValue: PropTypes.number.description('min value for slider').defaultValue(0),\n maxValue: PropTypes.number.description('max value for slider').defaultValue(100),\n step: PropTypes.number.description('steps of values from min to max').defaultValue(5),\n onValueChange: PropTypes.func.description('change handler').defaultValue(() => {}),\n withTickMarks: PropTypes.bool.description('add tick marks between steps').defaultValue(false),\n withTickMarksValues: PropTypes.bool.description('add step value to tickmark').defaultValue(false),\n customTickMarksValues: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))\n .description('Explicitly set tickmark values for custom tickmarks')\n .defaultValue([]),\n};\n\nexport const DSSliderV2PropTypesSchema = DSSliderV2PropTypes as unknown as WeakValidationMap<\n DSSliderV2T.Props<boolean>\n>;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,gBAAgB,uBAAuB;AA2CzC,MAAM,eAAkD;AAAA,EAC7D,UAAU;AAAA,EACV,MAAM;AAAA,EACN,eAAe,MAAM;AAAA,EAAC;AAAA,EACtB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,uBAAuB,CAAC;AAAA,EACxB,UAAU;AACZ;AAEO,MAAM,sBAAqE;AAAA,EAChF,GAAG,yBAAyB,gBAAgB,eAAe;AAAA,EAC3D,GAAG;AAAA,EACH,GAAG;AAAA,EACH,UAAU,UAAU,KAAK,YAAY,gBAAgB,EAAE,aAAa,KAAK;AAAA,EACzE,UAAU,UAAU,OAAO,YAAY,sBAAsB,EAAE,aAAa,CAAC;AAAA,EAC7E,UAAU,UAAU,OAAO,YAAY,sBAAsB,EAAE,aAAa,GAAG;AAAA,EAC/E,MAAM,UAAU,OAAO,YAAY,iCAAiC,EAAE,aAAa,CAAC;AAAA,EACpF,eAAe,UAAU,KAAK,YAAY,gBAAgB,EAAE,aAAa,MAAM;AAAA,EAAC,CAAC;AAAA,EACjF,eAAe,UAAU,KAAK,YAAY,8BAA8B,EAAE,aAAa,KAAK;AAAA,EAC5F,qBAAqB,UAAU,KAAK,YAAY,4BAA4B,EAAE,aAAa,KAAK;AAAA,EAChG,uBAAuB,UAAU,QAAQ,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,CAAC,EAC/F,YAAY,qDAAqD,EACjE,aAAa,CAAC,CAAC;AACpB;AAEO,MAAM,4BAA4B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,92 @@
1
+ import * as React from "react";
2
+ import { getTrackBackground } from "react-range";
3
+ import { Grid } from "@elliemae/ds-grid";
4
+ import { styled } from "@elliemae/ds-system";
5
+ import { DSSliderV2Name, SLIDER_V2_SLOTS } from "./constants/index.js";
6
+ const StyledWrapper = styled(Grid, { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.ROOT })``;
7
+ const StyledRangeWrapper = styled(Grid, { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.RANGE_WRAPPER })``;
8
+ const StyledTrack = styled("div", { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.TRACK })`
9
+ position: relative;
10
+ height: ${(props) => props.theme.space.xxxs};
11
+ width: 100%;
12
+ min-width: ${(props) => props.theme.space.xl};
13
+ border-radius: ${(props) => props.theme.space.xxxs};
14
+ background: ${(props) => props.disabled ? props.theme.colors.neutral[100] : getTrackBackground({
15
+ values: props.rangeValues,
16
+ colors: props.multiple ? [props.theme.colors.neutral[100], props.theme.colors.brand[600], props.theme.colors.neutral[100]] : [props.theme.colors.brand[600], props.theme.colors.neutral[100]],
17
+ min: props.minValue,
18
+ max: props.maxValue
19
+ })};
20
+ `;
21
+ const StyledDot = styled("div", { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.DOT })`
22
+ &:after {
23
+ content: '';
24
+ background: ${(props) => props.isActive ? props.theme.colors.brand[300] : props.theme.colors.neutral[400]};
25
+ border-radius: ${(props) => props.theme.space.xxxs};
26
+ display: block;
27
+ position: relative;
28
+ width: 2px;
29
+ height: 2px;
30
+ }
31
+ `;
32
+ const StyledDotsContainer = styled("div", { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.DOT_CONTAINER })`
33
+ padding: 0 2px;
34
+ align-items: center;
35
+ display: flex;
36
+ justify-content: space-between;
37
+ pointer-events: none;
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ right: 0;
42
+ bottom: 0;
43
+ z-index: ${(props) => props.theme.zIndex.tooltip - 1};
44
+ `;
45
+ const StyledTickMarkValue = styled("div", { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.TICK_MARK_VALUE })`
46
+ display: flex;
47
+ justify-content: center;
48
+ text-align: center;
49
+ min-height: ${(props) => props.theme.space.xs};
50
+ overflow: visible;
51
+ width: ${(props) => props.theme.space.xxxs};
52
+ color: ${(props) => props.isSelected ? props.theme.colors.neutral[800] : props.theme.colors.neutral[500]};
53
+ `;
54
+ const StyledTickMarksContainer = styled("div", {
55
+ name: DSSliderV2Name,
56
+ slot: SLIDER_V2_SLOTS.TICK_MARK_CONTAINER
57
+ })`
58
+ display: flex;
59
+ justify-content: space-between;
60
+ // this next property-value rever the sanitize.css value
61
+ overflow-wrap: normal;
62
+ `;
63
+ const StyledThumb = styled("div", { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.THUMB })`
64
+ height: 20px;
65
+ width: 20px;
66
+ top: 0;
67
+ background-color: ${(props) => props.disabled ? props.theme.colors.neutral[100] : props.theme.colors.neutral["000"]};
68
+ border-radius: 10px;
69
+ border: 1px solid ${(props) => props.disabled ? props.theme.colors.neutral[100] : props.theme.colors.neutral[400]};
70
+
71
+ :focus {
72
+ border: 2px solid brand-700;
73
+ outline: unset;
74
+ }
75
+
76
+ :hover {
77
+ background-color: ${({ disabled, theme }) => disabled ? theme.colors.neutral[100] : theme.colors.brand[200]};
78
+ }
79
+
80
+ z-index: ${(props) => props.theme.zIndex.tooltip};
81
+ `;
82
+ export {
83
+ StyledDot,
84
+ StyledDotsContainer,
85
+ StyledRangeWrapper,
86
+ StyledThumb,
87
+ StyledTickMarkValue,
88
+ StyledTickMarksContainer,
89
+ StyledTrack,
90
+ StyledWrapper
91
+ };
92
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/styles.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { getTrackBackground } from 'react-range';\nimport { Grid } from '@elliemae/ds-grid';\nimport { styled } from '@elliemae/ds-system';\nimport { DSSliderV2Name, SLIDER_V2_SLOTS } from './constants/index.js';\n\nexport const StyledWrapper = styled(Grid, { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.ROOT })``;\n\nexport const StyledRangeWrapper = styled(Grid, { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.RANGE_WRAPPER })``;\n\nexport const StyledTrack = styled('div', { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.TRACK })<{\n disabled: boolean;\n multiple: boolean;\n minValue: number;\n maxValue: number;\n rangeValues: [number] | [number, number];\n}>`\n position: relative;\n height: ${(props) => props.theme.space.xxxs};\n width: 100%;\n min-width: ${(props) => props.theme.space.xl};\n border-radius: ${(props) => props.theme.space.xxxs};\n background: ${(props) =>\n props.disabled\n ? props.theme.colors.neutral[100]\n : getTrackBackground({\n values: props.rangeValues,\n colors: props.multiple\n ? [props.theme.colors.neutral[100], props.theme.colors.brand[600], props.theme.colors.neutral[100]]\n : [props.theme.colors.brand[600], props.theme.colors.neutral[100]],\n min: props.minValue,\n max: props.maxValue,\n })};\n`;\n\nexport const StyledDot = styled('div', { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.DOT })<{ isActive: boolean }>`\n &:after {\n content: '';\n background: ${(props) => (props.isActive ? props.theme.colors.brand[300] : props.theme.colors.neutral[400])};\n border-radius: ${(props) => props.theme.space.xxxs};\n display: block;\n position: relative;\n width: 2px;\n height: 2px;\n }\n`;\n\nexport const StyledDotsContainer = styled('div', { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.DOT_CONTAINER })`\n padding: 0 2px;\n align-items: center;\n display: flex;\n justify-content: space-between;\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: ${(props) => props.theme.zIndex.tooltip - 1};\n`;\n\nexport const StyledTickMarkValue = styled('div', { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.TICK_MARK_VALUE })<{\n isSelected: boolean;\n}>`\n display: flex;\n justify-content: center;\n text-align: center;\n min-height: ${(props) => props.theme.space.xs};\n overflow: visible;\n width: ${(props) => props.theme.space.xxxs};\n color: ${(props) => (props.isSelected ? props.theme.colors.neutral[800] : props.theme.colors.neutral[500])};\n`;\n\nexport const StyledTickMarksContainer = styled('div', {\n name: DSSliderV2Name,\n slot: SLIDER_V2_SLOTS.TICK_MARK_CONTAINER,\n})`\n display: flex;\n justify-content: space-between;\n // this next property-value rever the sanitize.css value\n overflow-wrap: normal;\n`;\n\nexport const StyledThumb = styled('div', { name: DSSliderV2Name, slot: SLIDER_V2_SLOTS.THUMB })<{ disabled: boolean }>`\n height: 20px;\n width: 20px;\n top: 0;\n background-color: ${(props) =>\n props.disabled ? props.theme.colors.neutral[100] : props.theme.colors.neutral['000']};\n border-radius: 10px;\n border: 1px solid ${(props) => (props.disabled ? props.theme.colors.neutral[100] : props.theme.colors.neutral[400])};\n\n :focus {\n border: 2px solid brand-700;\n outline: unset;\n }\n\n :hover {\n background-color: ${({ disabled, theme }) => (disabled ? theme.colors.neutral[100] : theme.colors.brand[200])};\n }\n\n z-index: ${(props) => props.theme.zIndex.tooltip};\n`;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,0BAA0B;AACnC,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,SAAS,gBAAgB,uBAAuB;AAEzC,MAAM,gBAAgB,OAAO,MAAM,EAAE,MAAM,gBAAgB,MAAM,gBAAgB,KAAK,CAAC;AAEvF,MAAM,qBAAqB,OAAO,MAAM,EAAE,MAAM,gBAAgB,MAAM,gBAAgB,cAAc,CAAC;AAErG,MAAM,cAAc,OAAO,OAAO,EAAE,MAAM,gBAAgB,MAAM,gBAAgB,MAAM,CAAC;AAAA;AAAA,YAQlF,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA,eAE1B,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,mBACzB,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,gBAChC,CAAC,UACb,MAAM,WACF,MAAM,MAAM,OAAO,QAAQ,GAAG,IAC9B,mBAAmB;AAAA,EACjB,QAAQ,MAAM;AAAA,EACd,QAAQ,MAAM,WACV,CAAC,MAAM,MAAM,OAAO,QAAQ,GAAG,GAAG,MAAM,MAAM,OAAO,MAAM,GAAG,GAAG,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC,IAChG,CAAC,MAAM,MAAM,OAAO,MAAM,GAAG,GAAG,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA,EACnE,KAAK,MAAM;AAAA,EACX,KAAK,MAAM;AACb,CAAC;AAAA;AAGF,MAAM,YAAY,OAAO,OAAO,EAAE,MAAM,gBAAgB,MAAM,gBAAgB,IAAI,CAAC;AAAA;AAAA;AAAA,kBAGxE,CAAC,UAAW,MAAM,WAAW,MAAM,MAAM,OAAO,MAAM,GAAG,IAAI,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA,qBACxF,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ3C,MAAM,sBAAsB,OAAO,OAAO,EAAE,MAAM,gBAAgB,MAAM,gBAAgB,cAAc,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAWjG,CAAC,UAAU,MAAM,MAAM,OAAO,UAAU;AAAA;AAG9C,MAAM,sBAAsB,OAAO,OAAO,EAAE,MAAM,gBAAgB,MAAM,gBAAgB,gBAAgB,CAAC;AAAA;AAAA;AAAA;AAAA,gBAMhG,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA,WAElC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,WAC7B,CAAC,UAAW,MAAM,aAAa,MAAM,MAAM,OAAO,QAAQ,GAAG,IAAI,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA;AAGnG,MAAM,2BAA2B,OAAO,OAAO;AAAA,EACpD,MAAM;AAAA,EACN,MAAM,gBAAgB;AACxB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAOM,MAAM,cAAc,OAAO,OAAO,EAAE,MAAM,gBAAgB,MAAM,gBAAgB,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA,sBAIxE,CAAC,UACnB,MAAM,WAAW,MAAM,MAAM,OAAO,QAAQ,GAAG,IAAI,MAAM,MAAM,OAAO,QAAQ,KAAK;AAAA;AAAA,sBAEjE,CAAC,UAAW,MAAM,WAAW,MAAM,MAAM,OAAO,QAAQ,GAAG,IAAI,MAAM,MAAM,OAAO,QAAQ,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAQ3F,CAAC,EAAE,UAAU,MAAM,MAAO,WAAW,MAAM,OAAO,QAAQ,GAAG,IAAI,MAAM,OAAO,MAAM,GAAG;AAAA;AAAA;AAAA,aAGlG,CAAC,UAAU,MAAM,MAAM,OAAO;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,72 @@
1
+ import * as React from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { DSSliderV2 } from "../index.js";
4
+ const testRequiredProps = {
5
+ value: 0,
6
+ minValue: 0,
7
+ maxValue: 100
8
+ };
9
+ const testOptionalProps = {};
10
+ const testPartialDefaults = {
11
+ multiple: false
12
+ };
13
+ const testProps = {
14
+ ...testRequiredProps,
15
+ ...testOptionalProps,
16
+ ...testPartialDefaults
17
+ };
18
+ const testPropsAsSyntax = {
19
+ ...testRequiredProps,
20
+ ...testOptionalProps,
21
+ ...testPartialDefaults
22
+ };
23
+ const testCompleteDefaults = {
24
+ multiple: false,
25
+ disabled: false,
26
+ step: 5,
27
+ onValueChange: () => {
28
+ },
29
+ withTickMarks: false,
30
+ withTickMarksValues: false,
31
+ customTickMarksValues: []
32
+ };
33
+ const testInternalProps = {
34
+ ...testRequiredProps,
35
+ ...testOptionalProps,
36
+ ...testCompleteDefaults
37
+ };
38
+ const testInternalPropsAsSyntax = {
39
+ ...testRequiredProps,
40
+ ...testOptionalProps,
41
+ ...testCompleteDefaults
42
+ };
43
+ const testExplicitDefinition = {
44
+ value: 0,
45
+ minValue: 0,
46
+ maxValue: 100,
47
+ multiple: false
48
+ };
49
+ const testInferedTypeCompatibility = {
50
+ value: 0,
51
+ minValue: 0,
52
+ maxValue: 100,
53
+ multiple: false
54
+ };
55
+ const testDefinitionAsConst = {
56
+ value: 0,
57
+ minValue: 0,
58
+ maxValue: 100,
59
+ multiple: false
60
+ };
61
+ const onSingleValueChange = (value) => {
62
+ };
63
+ const onMultipleValueChange = (value) => {
64
+ };
65
+ const ExampleUsageComponent = () => /* @__PURE__ */ jsxs(Fragment, { children: [
66
+ /* @__PURE__ */ jsx(DSSliderV2, { ...testExplicitDefinition }),
67
+ /* @__PURE__ */ jsx(DSSliderV2, { ...testInferedTypeCompatibility }),
68
+ /* @__PURE__ */ jsx(DSSliderV2, { ...testDefinitionAsConst }),
69
+ /* @__PURE__ */ jsx(DSSliderV2, { value: 0, minValue: 0, maxValue: 100, onValueChange: onSingleValueChange }),
70
+ /* @__PURE__ */ jsx(DSSliderV2, { multiple: true, value: [0, 100], minValue: 0, maxValue: 100, onValueChange: onMultipleValueChange })
71
+ ] });
72
+ //# sourceMappingURL=typescript-slider-v2-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-slider-v2-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSSliderV2 } from '../index.js';\nimport type { DSSliderV2T } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSSliderV2T.Props<boolean>;\ntype ComponentPropsInternals = DSSliderV2T.InternalProps<boolean>;\ntype ComponentPropsDefaultProps = DSSliderV2T.DefaultProps<boolean>;\ntype ComponentPropsOptionalProps = DSSliderV2T.OptionalProps;\ntype ComponentPropsRequiredProps = DSSliderV2T.RequiredProps<boolean>;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n value: 0,\n minValue: 0,\n maxValue: 100,\n};\nconst testOptionalProps: ComponentPropsOptionalProps = {};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n multiple: false,\n};\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n multiple: false,\n disabled: false,\n step: 5,\n onValueChange: () => {},\n withTickMarks: false,\n withTickMarksValues: false,\n customTickMarksValues: [],\n};\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n value: 0,\n minValue: 0,\n maxValue: 100,\n multiple: false,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n value: 0,\n minValue: 0,\n maxValue: 100,\n multiple: false,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n value: 0,\n minValue: 0,\n maxValue: 100,\n multiple: false,\n} as const;\n\nconst onSingleValueChange = (value: number) => {};\nconst onMultipleValueChange = (value: [number, number]) => {};\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSSliderV2 {...testExplicitDefinition} />\n <DSSliderV2 {...testInferedTypeCompatibility} />\n <DSSliderV2 {...testDefinitionAsConst} />\n {/* works with inline values */}\n <DSSliderV2 value={0} minValue={0} maxValue={100} onValueChange={onSingleValueChange} />\n {/* multiple auto inference works */}\n <DSSliderV2 multiple value={[0, 100]} minValue={0} maxValue={100} onValueChange={onMultipleValueChange} />\n </>\n);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACiFrB,mBAEE,KAFF;AAhFF,SAAS,kBAAkB;AAU3B,MAAM,oBAAiD;AAAA,EACrD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AACZ;AACA,MAAM,oBAAiD,CAAC;AAIxD,MAAM,sBAA2D;AAAA,EAC/D,UAAU;AACZ;AACA,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,uBAA6D;AAAA,EACjE,UAAU;AAAA,EACV,UAAU;AAAA,EACV,MAAM;AAAA,EACN,eAAe,MAAM;AAAA,EAAC;AAAA,EACtB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,uBAAuB,CAAC;AAC1B;AACA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AACZ;AAGA,MAAM,+BAA+B;AAAA,EACnC,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AACZ;AAEA,MAAM,wBAAwB;AAAA,EAC5B,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AACZ;AAEA,MAAM,sBAAsB,CAAC,UAAkB;AAAC;AAChD,MAAM,wBAAwB,CAAC,UAA4B;AAAC;AAE5D,MAAM,wBAAwB,MAC5B,iCAEE;AAAA,sBAAC,cAAY,GAAG,wBAAwB;AAAA,EACxC,oBAAC,cAAY,GAAG,8BAA8B;AAAA,EAC9C,oBAAC,cAAY,GAAG,uBAAuB;AAAA,EAEvC,oBAAC,cAAW,OAAO,GAAG,UAAU,GAAG,UAAU,KAAK,eAAe,qBAAqB;AAAA,EAEtF,oBAAC,cAAW,UAAQ,MAAC,OAAO,CAAC,GAAG,GAAG,GAAG,UAAU,GAAG,UAAU,KAAK,eAAe,uBAAuB;AAAA,GAC1G;",
6
+ "names": []
7
+ }
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ const inRange = (value, range) => {
3
+ const [left, right] = range;
4
+ if (right === void 0) {
5
+ return value === left;
6
+ }
7
+ return left <= value && value <= right;
8
+ };
9
+ export {
10
+ inRange
11
+ };
12
+ //# sourceMappingURL=inRange.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/utils/inRange.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const inRange = (value: number, range: [number] | [number, number]) => {\n const [left, right] = range;\n\n if (right === undefined) {\n return value === left;\n }\n return left <= value && value <= right;\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,UAAU,CAAC,OAAe,UAAuC;AAC5E,QAAM,CAAC,MAAM,KAAK,IAAI;AAEtB,MAAI,UAAU,QAAW;AACvB,WAAO,UAAU;AAAA,EACnB;AACA,SAAO,QAAQ,SAAS,SAAS;AACnC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ const conformedThumbLabel = ({
3
+ rangeValues,
4
+ customTickMarksValues,
5
+ index,
6
+ step,
7
+ minValue
8
+ }) => {
9
+ let msg = `Value: `;
10
+ if (customTickMarksValues.length) {
11
+ const foundValue = customTickMarksValues[Math.floor((rangeValues[index] - minValue) / step)];
12
+ msg += `${foundValue ?? rangeValues[index].toFixed(1)}`;
13
+ } else {
14
+ msg += `${rangeValues[index].toFixed(1)}`;
15
+ }
16
+ return msg;
17
+ };
18
+ export {
19
+ conformedThumbLabel
20
+ };
21
+ //# sourceMappingURL=thumbLabels.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/utils/thumbLabels.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const conformedThumbLabel = ({\n rangeValues,\n customTickMarksValues,\n index,\n step,\n minValue,\n}: {\n rangeValues: [number] | [number, number];\n customTickMarksValues: string[];\n index: number;\n step: number;\n minValue: number;\n}) => {\n let msg = `Value: `;\n if (customTickMarksValues.length) {\n const foundValue = customTickMarksValues[Math.floor((rangeValues[index] - minValue) / step)];\n msg += `${foundValue ?? rangeValues[index].toFixed(1)}`;\n } else {\n msg += `${rangeValues[index].toFixed(1)}`;\n }\n\n return msg;\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,sBAAsB,CAAC;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAMM;AACJ,MAAI,MAAM;AACV,MAAI,sBAAsB,QAAQ;AAChC,UAAM,aAAa,sBAAsB,KAAK,OAAO,YAAY,KAAK,IAAI,YAAY,IAAI,CAAC;AAC3F,WAAO,GAAG,cAAc,YAAY,KAAK,EAAE,QAAQ,CAAC;AAAA,EACtD,OAAO;AACL,WAAO,GAAG,YAAY,KAAK,EAAE,QAAQ,CAAC;AAAA,EACxC;AAEA,SAAO;AACT;",
6
+ "names": []
7
+ }
@@ -0,0 +1,7 @@
1
+ import { type DSSliderV2T } from './react-desc-prop-types.js';
2
+ declare const DSSliderV2: {
3
+ <TMultiple extends boolean = false>(props: DSSliderV2T.Props<TMultiple>): import("react/jsx-runtime.js").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ declare const DSSliderV2WithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSSliderV2T.Props<boolean>>;
7
+ export { DSSliderV2, DSSliderV2WithSchema };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { DSSliderV2CTX } from './config/useSliderV2.js';
3
+ /** Context for cross component communication */
4
+ export declare const DSSliderV2Context: import("react").Context<DSSliderV2CTX<boolean>>;
5
+ export default DSSliderV2Context;
@@ -0,0 +1,20 @@
1
+ import type { XstyledProps } from '@elliemae/ds-props-helpers';
2
+ import { type DSSliderV2T } from '../react-desc-prop-types.js';
3
+ export interface DSSliderV2CTX<TMultiple extends boolean> {
4
+ propsWithDefault: DSSliderV2T.InternalProps<TMultiple>;
5
+ xstyledProps: XstyledProps;
6
+ instanceUid: string;
7
+ rangeValues: [number, number] | [number];
8
+ tickMarkPositions: number[];
9
+ getOwnerProps: () => DSSliderV2T.InternalProps<TMultiple>;
10
+ getOwnerPropsArguments: () => Record<string, unknown>;
11
+ }
12
+ export declare const useSliderV2: <TMultiple extends boolean>(propsFromUser: DSSliderV2T.Props<TMultiple>) => {
13
+ getOwnerProps: () => DSSliderV2T.InternalProps<TMultiple>;
14
+ getOwnerPropsArguments: () => {};
15
+ propsWithDefault: DSSliderV2T.InternalProps<TMultiple>;
16
+ xstyledProps: XstyledProps;
17
+ instanceUid: string;
18
+ rangeValues: [number, number] | [number];
19
+ tickMarkPositions: number[];
20
+ };
@@ -0,0 +1,2 @@
1
+ import type { DSSliderV2T } from '../react-desc-prop-types.js';
2
+ export declare const useTickMarksValues: <TMultiple extends boolean>(props: DSSliderV2T.InternalProps<TMultiple>) => number[];
@@ -0,0 +1,5 @@
1
+ import type { WeakValidationMap } from 'react';
2
+ import { type DSSliderV2T } from '../react-desc-prop-types.js';
3
+ export declare const useValidateProps: <TMultiple extends boolean>(props: DSSliderV2T.InternalProps<TMultiple>, propTypes: WeakValidationMap<unknown>, { tickMarkPositions }: {
4
+ tickMarkPositions: number[];
5
+ }) => void;
@@ -0,0 +1,12 @@
1
+ export declare const DSSliderV2Name = "DSSliderV2";
2
+ export declare const SLIDER_V2_SLOTS: {
3
+ readonly ROOT: "root";
4
+ readonly RANGE_WRAPPER: "range-wrapper";
5
+ readonly TRACK: "track";
6
+ readonly DOT: "dot";
7
+ readonly DOT_CONTAINER: "dot-container";
8
+ readonly TICK_MARK_VALUE: "tick-mark-value";
9
+ readonly TICK_MARK_CONTAINER: "tick-mark-container";
10
+ readonly THUMB: "thumb";
11
+ };
12
+ export declare const SLIDER_V2_DATA_TESTID: Record<string, string>;
@@ -0,0 +1,3 @@
1
+ export { DSSliderV2, DSSliderV2WithSchema } from './DSSliderV2.js';
2
+ export { type DSSliderV2T } from './react-desc-prop-types.js';
3
+ export { DSSliderV2Name, SLIDER_V2_SLOTS, SLIDER_V2_DATA_TESTID } from './constants/index.js';
@@ -0,0 +1 @@
1
+ export declare const MainContent: () => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IRenderThumbParams } from 'react-range/lib/types.js';
2
+ export declare const Thumb: ({ index, props, isDragged }: IRenderThumbParams) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const TickMarks: () => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const TickMarksValues: () => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IRenderTrackParams } from 'react-range/lib/types.js';
2
+ export declare const Track: ({ children, props, disabled }: IRenderTrackParams) => import("react/jsx-runtime.js").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';
2
+ import { DSSliderV2Name, SLIDER_V2_SLOTS } from './constants/index.js';
3
+ import type { WeakValidationMap } from 'react';
4
+ export declare namespace DSSliderV2T {
5
+ type ValueType<TMultiple extends boolean> = TMultiple extends true ? [number, number] : TMultiple extends false ? number : number | [number, number];
6
+ interface RequiredProps<TMultiple extends boolean> {
7
+ value: ValueType<TMultiple>;
8
+ minValue: number;
9
+ maxValue: number;
10
+ }
11
+ interface DefaultProps<TMultiple extends boolean> {
12
+ multiple: TMultiple;
13
+ disabled: boolean;
14
+ step: number;
15
+ onValueChange: (newValue: ValueType<TMultiple>) => void;
16
+ withTickMarks: boolean;
17
+ withTickMarksValues: boolean;
18
+ customTickMarksValues: string[];
19
+ }
20
+ interface OptionalProps extends PropsForGlobalOnSlots<typeof DSSliderV2Name, typeof SLIDER_V2_SLOTS> {
21
+ className?: string;
22
+ }
23
+ interface Props<TMultiple extends boolean = false> extends Partial<DefaultProps<TMultiple>>, OptionalProps, XstyledProps, RequiredProps<TMultiple> {
24
+ }
25
+ interface InternalProps<TMultiple extends boolean = false> extends DefaultProps<TMultiple>, OptionalProps, XstyledProps, RequiredProps<TMultiple> {
26
+ }
27
+ }
28
+ export declare const defaultProps: DSSliderV2T.DefaultProps<boolean>;
29
+ export declare const DSSliderV2PropTypes: DSPropTypesSchema<DSSliderV2T.Props<boolean>>;
30
+ export declare const DSSliderV2PropTypesSchema: WeakValidationMap<DSSliderV2T.Props<boolean>>;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
3
+ export declare const StyledRangeWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>, import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid").DSGridT.Props & import("react").RefAttributes<HTMLDivElement>>>, never>;
4
+ export declare const StyledTrack: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
5
+ disabled: boolean;
6
+ multiple: boolean;
7
+ minValue: number;
8
+ maxValue: number;
9
+ rangeValues: [number] | [number, number];
10
+ } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
11
+ export declare const StyledDot: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
12
+ isActive: boolean;
13
+ } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
14
+ export declare const StyledDotsContainer: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
15
+ export declare const StyledTickMarkValue: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
16
+ isSelected: boolean;
17
+ } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
18
+ export declare const StyledTickMarksContainer: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
19
+ export declare const StyledThumb: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, {
20
+ disabled: boolean;
21
+ } & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const inRange: (value: number, range: [number] | [number, number]) => boolean;
@@ -0,0 +1,7 @@
1
+ export declare const conformedThumbLabel: ({ rangeValues, customTickMarksValues, index, step, minValue, }: {
2
+ rangeValues: [number] | [number, number];
3
+ customTickMarksValues: string[];
4
+ index: number;
5
+ step: number;
6
+ minValue: number;
7
+ }) => string;
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@elliemae/ds-slider-v2",
3
+ "version": "3.26.0-next.4",
4
+ "license": "MIT",
5
+ "description": "ICE MT - Dimsum - Slider V 2",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
16
+ }
17
+ },
18
+ "sideEffects": [
19
+ "*.css",
20
+ "*.scss"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://git.elliemae.io/platform-ui/dimsum.git"
25
+ },
26
+ "engines": {
27
+ "pnpm": ">=6",
28
+ "node": ">=16"
29
+ },
30
+ "author": "ICE MT",
31
+ "jestSonar": {
32
+ "sonar56x": true,
33
+ "reportPath": "reports",
34
+ "reportFile": "tests.xml",
35
+ "indent": 4
36
+ },
37
+ "dependencies": {
38
+ "react-range": "~1.8.14",
39
+ "uid": "^2.0.2",
40
+ "@elliemae/ds-grid": "3.26.0-next.4",
41
+ "@elliemae/ds-props-helpers": "3.26.0-next.4",
42
+ "@elliemae/ds-system": "3.26.0-next.4",
43
+ "@elliemae/ds-tooltip": "3.26.0-next.4",
44
+ "@elliemae/ds-truncated-tooltip-text": "3.26.0-next.4",
45
+ "@elliemae/ds-utilities": "3.26.0-next.4"
46
+ },
47
+ "devDependencies": {
48
+ "@elliemae/pui-cli": "~9.0.0-next.31",
49
+ "lodash": "^4.17.21",
50
+ "styled-components": "~5.3.9",
51
+ "@elliemae/ds-monorepo-devops": "3.26.0-next.4"
52
+ },
53
+ "peerDependencies": {
54
+ "@testing-library/jest-dom": "~5.16.4",
55
+ "@testing-library/react": "~12.1.3",
56
+ "@testing-library/user-event": "~13.5.0",
57
+ "lodash": "^4.17.21",
58
+ "react": "^17.0.2",
59
+ "react-dom": "^17.0.2",
60
+ "styled-components": "~5.3.9"
61
+ },
62
+ "publishConfig": {
63
+ "access": "public",
64
+ "typeSafety": false
65
+ },
66
+ "scripts": {
67
+ "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
68
+ "test": "pui-cli test --passWithNoTests",
69
+ "lint": "node ../../../scripts/lint.mjs --fix",
70
+ "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
71
+ "dts": "node ../../scripts/dts.mjs",
72
+ "dts:withdeps": "pnpm --filter {.}... dts",
73
+ "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
74
+ "dev:build": "pnpm --filter {.}... build",
75
+ "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
76
+ "checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
77
+ }
78
+ }