@elliemae/ds-chip 3.0.0-next.67
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/cjs/DSChip.js +82 -0
- package/dist/cjs/DSChip.js.map +7 -0
- package/dist/cjs/config/useConfig.js +53 -0
- package/dist/cjs/config/useConfig.js.map +7 -0
- package/dist/cjs/constants.js +74 -0
- package/dist/cjs/constants.js.map +7 -0
- package/dist/cjs/exported_related/data-test-ids.js +32 -0
- package/dist/cjs/exported_related/data-test-ids.js.map +7 -0
- package/dist/cjs/exported_related/index.js +23 -0
- package/dist/cjs/exported_related/index.js.map +7 -0
- package/dist/cjs/exported_related/theming.js +34 -0
- package/dist/cjs/exported_related/theming.js.map +7 -0
- package/dist/cjs/index.js +24 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/react-desc-prop-types.js +59 -0
- package/dist/cjs/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/sharedTypes.js +20 -0
- package/dist/cjs/sharedTypes.js.map +7 -0
- package/dist/cjs/styles.js +175 -0
- package/dist/cjs/styles.js.map +7 -0
- package/dist/esm/DSChip.js +62 -0
- package/dist/esm/DSChip.js.map +7 -0
- package/dist/esm/config/useConfig.js +38 -0
- package/dist/esm/config/useConfig.js.map +7 -0
- package/dist/esm/constants.js +52 -0
- package/dist/esm/constants.js.map +7 -0
- package/dist/esm/exported_related/data-test-ids.js +10 -0
- package/dist/esm/exported_related/data-test-ids.js.map +7 -0
- package/dist/esm/exported_related/index.js +4 -0
- package/dist/esm/exported_related/index.js.map +7 -0
- package/dist/esm/exported_related/theming.js +12 -0
- package/dist/esm/exported_related/theming.js.map +7 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/react-desc-prop-types.js +50 -0
- package/dist/esm/react-desc-prop-types.js.map +7 -0
- package/dist/esm/sharedTypes.js +2 -0
- package/dist/esm/sharedTypes.js.map +7 -0
- package/dist/esm/styles.js +153 -0
- package/dist/esm/styles.js.map +7 -0
- package/package.json +91 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var styles_exports = {};
|
|
22
|
+
__export(styles_exports, {
|
|
23
|
+
StyledChip: () => StyledChip,
|
|
24
|
+
StyledChipLabel: () => StyledChipLabel,
|
|
25
|
+
StyledRoundShape: () => StyledRoundShape
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(styles_exports);
|
|
28
|
+
var React = __toESM(require("react"));
|
|
29
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
30
|
+
var import_constants = require("./constants");
|
|
31
|
+
var import_exported_related = require("./exported_related");
|
|
32
|
+
const getChipSize = (shape) => shape === import_constants.CHIP_SHAPES.ROUND ? import_constants.shapeSizes : import_constants.basicSizes;
|
|
33
|
+
const styledChipSelectedCss = import_ds_system.css`
|
|
34
|
+
& > div:first-child {
|
|
35
|
+
background-color: ${({ theme }) => theme.colors.brand[800]};
|
|
36
|
+
}
|
|
37
|
+
color: ${({ theme }) => theme.colors.brand[800]};
|
|
38
|
+
background-color: ${({ theme }) => theme.colors.brand[200]};
|
|
39
|
+
|
|
40
|
+
.ds-icon-svg {
|
|
41
|
+
fill: ${({ theme }) => theme.colors.brand[800]};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:before {
|
|
45
|
+
border: 1px solid ${({ theme }) => theme.colors.brand[600]};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:focus {
|
|
49
|
+
&:before {
|
|
50
|
+
border: 2px solid ${({ theme }) => theme.colors.brand[800]};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`;
|
|
54
|
+
const StyledChipLabel = (0, import_ds_system.styled)("div", { name: import_exported_related.DSChipName, slot: import_exported_related.DSChipSlots.LABEL })`
|
|
55
|
+
font-size: ${({ theme }) => theme.fontSizes.label[200]};
|
|
56
|
+
font-weight: ${({ theme }) => theme.fontWeights.semibold};
|
|
57
|
+
word-wrap: break-word;
|
|
58
|
+
margin: 0 6px;
|
|
59
|
+
line-height: 1.45;
|
|
60
|
+
width: 100%;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
`;
|
|
65
|
+
const StyledChip = (0, import_ds_system.styled)("button", { name: import_exported_related.DSChipName, slot: import_exported_related.DSChipSlots.BUTTON })`
|
|
66
|
+
position: relative;
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: space-evenly;
|
|
71
|
+
border: none;
|
|
72
|
+
height: ${({ size, buttonShape }) => getChipSize(buttonShape)[size].height};
|
|
73
|
+
width: ${({ size, buttonShape }) => getChipSize(buttonShape)[size].width};
|
|
74
|
+
background-color: #fff;
|
|
75
|
+
color: ${({ theme }) => theme.colors.brand[600]};
|
|
76
|
+
border-radius: 4px;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
outline: none;
|
|
79
|
+
|
|
80
|
+
&:before {
|
|
81
|
+
content: '';
|
|
82
|
+
position: absolute;
|
|
83
|
+
top: 0;
|
|
84
|
+
left: 0;
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 100%;
|
|
87
|
+
border-radius: 4px;
|
|
88
|
+
border: 2px solid transparent;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
& .ds-icon-root .ds-icon-svg {
|
|
92
|
+
fill: ${({ theme }) => theme.colors.brand[600]};
|
|
93
|
+
height: 24px;
|
|
94
|
+
width: 24px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
& .ds-icon-root {
|
|
98
|
+
height: 24px;
|
|
99
|
+
width: 24px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:hover {
|
|
103
|
+
& > div:first-child {
|
|
104
|
+
background-color: ${({ theme }) => theme.colors.brand[800]};
|
|
105
|
+
}
|
|
106
|
+
color: ${({ theme }) => theme.colors.brand[800]};
|
|
107
|
+
background-color: ${({ theme }) => theme.colors.brand[200]};
|
|
108
|
+
.ds-icon-svg {
|
|
109
|
+
fill: ${({ theme }) => theme.colors.brand[800]};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:focus {
|
|
114
|
+
&:before {
|
|
115
|
+
border-color: ${({ theme }) => theme.colors.brand[800]};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:disabled {
|
|
120
|
+
color: ${({ theme }) => theme.colors.neutral[500]};
|
|
121
|
+
cursor: not-allowed;
|
|
122
|
+
|
|
123
|
+
.ds-icon-svg {
|
|
124
|
+
fill: ${({ theme }) => theme.colors.neutral[500]};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:focus,
|
|
128
|
+
&:hover {
|
|
129
|
+
& > div:first-child {
|
|
130
|
+
background-color: ${({ theme }) => theme.colors.neutral[200]};
|
|
131
|
+
}
|
|
132
|
+
background-color: #fff;
|
|
133
|
+
cursor: not-allowed;
|
|
134
|
+
&:before {
|
|
135
|
+
border-color: transparent;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
${StyledChipLabel} {
|
|
139
|
+
color: ${({ theme }) => theme.colors.neutral[500]};
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:hover .ds-icon-svg {
|
|
144
|
+
fill: ${({ theme }) => theme.colors.neutral[500]};
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
${({ selected }) => !selected ? "" : styledChipSelectedCss}
|
|
149
|
+
`;
|
|
150
|
+
const disabledRoundShape = import_ds_system.css`
|
|
151
|
+
background-color: ${({ theme }) => theme.colors.neutral[200]};
|
|
152
|
+
|
|
153
|
+
& .ds-icon-root .ds-icon-svg {
|
|
154
|
+
fill: ${({ theme }) => theme.colors.neutral[500]};
|
|
155
|
+
}
|
|
156
|
+
`;
|
|
157
|
+
const StyledRoundShape = (0, import_ds_system.styled)("div", { name: import_exported_related.DSChipName, slot: import_exported_related.DSChipSlots.ROUND_SHAPE })`
|
|
158
|
+
background-color: ${({ theme }) => theme.colors.brand[600]};
|
|
159
|
+
width: ${({ size }) => size === import_constants.CHIP_SIZES.L ? import_constants.roundShapeLarge : import_constants.roundShapeSmall};
|
|
160
|
+
height: ${({ size }) => size === import_constants.CHIP_SIZES.L ? import_constants.roundShapeLarge : import_constants.roundShapeSmall};
|
|
161
|
+
border-radius: 50px;
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
margin: 3px 0px;
|
|
166
|
+
|
|
167
|
+
& .ds-icon-root .ds-icon-svg {
|
|
168
|
+
fill: #fff;
|
|
169
|
+
height: 24px;
|
|
170
|
+
width: 24px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
${({ disabled }) => disabled && disabledRoundShape}
|
|
174
|
+
`;
|
|
175
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/styles.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable max-lines */\nimport { styled, css } from '@elliemae/ds-system';\nimport { basicSizes, shapeSizes, CHIP_SHAPES, CHIP_SIZES, roundShapeLarge, roundShapeSmall } from './constants';\nimport type { ChipShapesT, ChipSizesT } from './sharedTypes';\nimport { DSChipName, DSChipSlots } from './exported_related';\n\nexport interface StyledChipPropsT {\n size: ChipSizesT;\n buttonShape: ChipShapesT;\n}\n\nconst getChipSize = (shape: ChipShapesT) => (shape === CHIP_SHAPES.ROUND ? shapeSizes : basicSizes);\n\nconst styledChipSelectedCss = css`\n & > div:first-child {\n background-color: ${({ theme }) => theme.colors.brand[800]};\n }\n color: ${({ theme }) => theme.colors.brand[800]};\n background-color: ${({ theme }) => theme.colors.brand[200]};\n\n .ds-icon-svg {\n fill: ${({ theme }) => theme.colors.brand[800]};\n }\n\n &:before {\n border: 1px solid ${({ theme }) => theme.colors.brand[600]};\n }\n\n &:focus {\n &:before {\n border: 2px solid ${({ theme }) => theme.colors.brand[800]};\n }\n }\n`;\n\nexport const StyledChipLabel = styled('div', { name: DSChipName, slot: DSChipSlots.LABEL })`\n font-size: ${({ theme }) => theme.fontSizes.label[200]};\n font-weight: ${({ theme }) => theme.fontWeights.semibold};\n word-wrap: break-word;\n margin: 0 6px;\n line-height: 1.45;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const StyledChip = styled('button', { name: DSChipName, slot: DSChipSlots.BUTTON })<{\n selected: boolean | undefined;\n}>`\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-evenly;\n border: none;\n height: ${({ size, buttonShape }) => getChipSize(buttonShape)[size].height};\n width: ${({ size, buttonShape }) => getChipSize(buttonShape)[size].width};\n background-color: #fff;\n color: ${({ theme }) => theme.colors.brand[600]};\n border-radius: 4px;\n cursor: pointer;\n outline: none;\n\n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: 4px;\n border: 2px solid transparent;\n }\n\n & .ds-icon-root .ds-icon-svg {\n fill: ${({ theme }) => theme.colors.brand[600]};\n height: 24px;\n width: 24px;\n }\n\n & .ds-icon-root {\n height: 24px;\n width: 24px;\n }\n\n &:hover {\n & > div:first-child {\n background-color: ${({ theme }) => theme.colors.brand[800]};\n }\n color: ${({ theme }) => theme.colors.brand[800]};\n background-color: ${({ theme }) => theme.colors.brand[200]};\n .ds-icon-svg {\n fill: ${({ theme }) => theme.colors.brand[800]};\n }\n }\n\n &:focus {\n &:before {\n border-color: ${({ theme }) => theme.colors.brand[800]};\n }\n }\n\n &:disabled {\n color: ${({ theme }) => theme.colors.neutral[500]};\n cursor: not-allowed;\n\n .ds-icon-svg {\n fill: ${({ theme }) => theme.colors.neutral[500]};\n }\n\n &:focus,\n &:hover {\n & > div:first-child {\n background-color: ${({ theme }) => theme.colors.neutral[200]};\n }\n background-color: #fff;\n cursor: not-allowed;\n &:before {\n border-color: transparent;\n }\n\n ${StyledChipLabel} {\n color: ${({ theme }) => theme.colors.neutral[500]};\n }\n }\n\n &:hover .ds-icon-svg {\n fill: ${({ theme }) => theme.colors.neutral[500]};\n }\n }\n\n ${({ selected }) => (!selected ? '' : styledChipSelectedCss)}\n`;\n\nconst disabledRoundShape = css`\n background-color: ${({ theme }) => theme.colors.neutral[200]};\n\n & .ds-icon-root .ds-icon-svg {\n fill: ${({ theme }) => theme.colors.neutral[500]};\n }\n`;\n\nexport const StyledRoundShape = styled('div', { name: DSChipName, slot: DSChipSlots.ROUND_SHAPE })`\n background-color: ${({ theme }) => theme.colors.brand[600]};\n width: ${({ size }) => (size === CHIP_SIZES.L ? roundShapeLarge : roundShapeSmall)};\n height: ${({ size }) => (size === CHIP_SIZES.L ? roundShapeLarge : roundShapeSmall)};\n border-radius: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 3px 0px;\n\n & .ds-icon-root .ds-icon-svg {\n fill: #fff;\n height: 24px;\n width: 24px;\n }\n\n ${({ disabled }) => disabled && disabledRoundShape}\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
import * as React from "react";
|
|
30
|
+
import React2 from "react";
|
|
31
|
+
import { describe } from "@elliemae/ds-utilities";
|
|
32
|
+
import { SimpleTruncatedTooltipText } from "@elliemae/ds-truncated-tooltip-text";
|
|
33
|
+
import { useConfig } from "./config/useConfig";
|
|
34
|
+
import { StyledChip, StyledChipLabel, StyledRoundShape } from "./styles";
|
|
35
|
+
import { CHIP_SHAPES } from "./constants";
|
|
36
|
+
import { DSChipPropTypes } from "./react-desc-prop-types";
|
|
37
|
+
const DSChip = (props) => {
|
|
38
|
+
const { size, selected, innerRef, icon: Icon, globalAttrs, xStyledAttrs } = useConfig(props);
|
|
39
|
+
const _a = globalAttrs, { shape, label, type, disabled } = _a, restGlobals = __objRest(_a, ["shape", "label", "type", "disabled"]);
|
|
40
|
+
return /* @__PURE__ */ React2.createElement(StyledChip, __spreadValues(__spreadValues({
|
|
41
|
+
"aria-disabled": disabled,
|
|
42
|
+
disabled,
|
|
43
|
+
buttonShape: shape,
|
|
44
|
+
size,
|
|
45
|
+
ref: innerRef,
|
|
46
|
+
selected
|
|
47
|
+
}, restGlobals), xStyledAttrs), shape === CHIP_SHAPES.ROUND ? /* @__PURE__ */ React2.createElement(StyledRoundShape, {
|
|
48
|
+
disabled,
|
|
49
|
+
size
|
|
50
|
+
}, /* @__PURE__ */ React2.createElement(Icon, null)) : /* @__PURE__ */ React2.createElement(Icon, null), /* @__PURE__ */ React2.createElement(StyledChipLabel, null, /* @__PURE__ */ React2.createElement(SimpleTruncatedTooltipText, {
|
|
51
|
+
value: label,
|
|
52
|
+
placement: "bottom"
|
|
53
|
+
})));
|
|
54
|
+
};
|
|
55
|
+
DSChip.propTypes = DSChipPropTypes;
|
|
56
|
+
const DSChipWithSchema = describe(DSChip);
|
|
57
|
+
DSChipWithSchema.propTypes = DSChipPropTypes;
|
|
58
|
+
export {
|
|
59
|
+
DSChip,
|
|
60
|
+
DSChipWithSchema
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=DSChip.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSChip.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { SimpleTruncatedTooltipText } from '@elliemae/ds-truncated-tooltip-text';\nimport { useConfig } from './config/useConfig';\nimport { StyledChip, StyledChipLabel, StyledRoundShape } from './styles';\nimport { CHIP_SHAPES } from './constants';\nimport { DSChipT, DSChipPropTypes } from './react-desc-prop-types';\n\nconst DSChip: React.ComponentType<DSChipT.Props> = (props) => {\n const { size, selected, innerRef, icon: Icon, globalAttrs, xStyledAttrs } = useConfig(props);\n\n const { shape, label, type, disabled, ...restGlobals } = globalAttrs;\n\n return (\n <StyledChip\n aria-disabled={disabled}\n disabled={disabled}\n buttonShape={shape}\n size={size}\n ref={innerRef}\n selected={selected}\n {...restGlobals}\n {...xStyledAttrs}\n >\n {shape === CHIP_SHAPES.ROUND ? (\n <StyledRoundShape disabled={disabled} size={size}>\n <Icon />\n </StyledRoundShape>\n ) : (\n <Icon />\n )}\n <StyledChipLabel>\n <SimpleTruncatedTooltipText value={label} placement=\"bottom\" />\n </StyledChipLabel>\n </StyledChip>\n );\n};\n\nDSChip.propTypes = DSChipPropTypes;\nconst DSChipWithSchema = describe(DSChip);\nDSChipWithSchema.propTypes = DSChipPropTypes;\n\nexport { DSChip, DSChipWithSchema };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,SAA6C,CAAC,UAAU;AAC5D,QAAM,EAAE,MAAM,UAAU,UAAU,MAAM,MAAM,aAAa,iBAAiB,UAAU,KAAK;AAE3F,QAAyD,kBAAjD,SAAO,OAAO,MAAM,aAA6B,IAAhB,wBAAgB,IAAhB,CAAjC,SAAO,SAAO,QAAM;AAE5B,SACE,qCAAC;AAAA,IACC,iBAAe;AAAA,IACf;AAAA,IACA,aAAa;AAAA,IACb;AAAA,IACA,KAAK;AAAA,IACL;AAAA,KACI,cACA,eAEH,UAAU,YAAY,QACrB,qCAAC;AAAA,IAAiB;AAAA,IAAoB;AAAA,KACpC,qCAAC,UAAK,CACR,IAEA,qCAAC,UAAK,GAER,qCAAC,uBACC,qCAAC;AAAA,IAA2B,OAAO;AAAA,IAAO,WAAU;AAAA,GAAS,CAC/D,CACF;AAEJ;AAEA,OAAO,YAAY;AACnB,MAAM,mBAAmB,SAAS,MAAM;AACxC,iBAAiB,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import * as React from "react";
|
|
21
|
+
import {
|
|
22
|
+
useMemoMergePropsWithDefault,
|
|
23
|
+
useGetGlobalAttributes,
|
|
24
|
+
useValidateTypescriptPropTypes,
|
|
25
|
+
useGetXstyledProps
|
|
26
|
+
} from "@elliemae/ds-utilities";
|
|
27
|
+
import { defaultProps, DSChipPropTypes } from "../react-desc-prop-types";
|
|
28
|
+
const useConfig = (props) => {
|
|
29
|
+
const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
|
|
30
|
+
useValidateTypescriptPropTypes(propsWithDefault, DSChipPropTypes);
|
|
31
|
+
const globalAttrs = useGetGlobalAttributes(propsWithDefault);
|
|
32
|
+
const xStyledAttrs = useGetXstyledProps(propsWithDefault);
|
|
33
|
+
return __spreadProps(__spreadValues({}, propsWithDefault), { globalAttrs, xStyledAttrs });
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
useConfig
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=useConfig.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/config/useConfig.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import {\n useMemoMergePropsWithDefault,\n useGetGlobalAttributes,\n useValidateTypescriptPropTypes,\n useGetXstyledProps,\n} from '@elliemae/ds-utilities';\nimport { DSChipT, defaultProps, DSChipPropTypes } from '../react-desc-prop-types';\n\nexport const useConfig = (props: DSChipT.Props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n\n useValidateTypescriptPropTypes<DSChipT.Props>(propsWithDefault, DSChipPropTypes);\n const globalAttrs = useGetGlobalAttributes(propsWithDefault);\n const xStyledAttrs = useGetXstyledProps(propsWithDefault);\n\n return { ...propsWithDefault, globalAttrs, xStyledAttrs };\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA;AAEO,MAAM,YAAY,CAAC,UAAyB;AACjD,QAAM,mBAAmB,6BAA6B,OAAO,YAAY;AAEzE,iCAA8C,kBAAkB,eAAe;AAC/E,QAAM,cAAc,uBAAuB,gBAAgB;AAC3D,QAAM,eAAe,mBAAmB,gBAAgB;AAExD,SAAO,iCAAK,mBAAL,EAAuB,aAAa,aAAa;AAC1D;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const CHIP_SHAPES = {
|
|
3
|
+
DEFAULT: "default",
|
|
4
|
+
ROUND: "round"
|
|
5
|
+
};
|
|
6
|
+
const CHIP_SIZES = {
|
|
7
|
+
S: "s",
|
|
8
|
+
L: "l"
|
|
9
|
+
};
|
|
10
|
+
const roundShapeLarge = "56px";
|
|
11
|
+
const roundShapeSmall = "40px";
|
|
12
|
+
const basicSizes = {
|
|
13
|
+
s: {
|
|
14
|
+
width: "72px",
|
|
15
|
+
height: "67px"
|
|
16
|
+
},
|
|
17
|
+
l: {
|
|
18
|
+
width: "92px",
|
|
19
|
+
height: "67px"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const shapeSizes = {
|
|
23
|
+
s: {
|
|
24
|
+
width: "72px",
|
|
25
|
+
height: "77px"
|
|
26
|
+
},
|
|
27
|
+
l: {
|
|
28
|
+
width: "92px",
|
|
29
|
+
height: "85px"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const ChipSizesValuesArray = Object.values(CHIP_SIZES);
|
|
33
|
+
const ChipShapesValuesArray = Object.values(CHIP_SHAPES);
|
|
34
|
+
const ChipInteractionStates = ["hover", "focus", "active"];
|
|
35
|
+
const ChipSizesValuesString = JSON.stringify(ChipSizesValuesArray);
|
|
36
|
+
const ChipShapesValuesString = JSON.stringify(ChipShapesValuesArray);
|
|
37
|
+
const ChipInteractionStatesValuesString = JSON.stringify(ChipInteractionStates);
|
|
38
|
+
export {
|
|
39
|
+
CHIP_SHAPES,
|
|
40
|
+
CHIP_SIZES,
|
|
41
|
+
ChipInteractionStates,
|
|
42
|
+
ChipInteractionStatesValuesString,
|
|
43
|
+
ChipShapesValuesArray,
|
|
44
|
+
ChipShapesValuesString,
|
|
45
|
+
ChipSizesValuesArray,
|
|
46
|
+
ChipSizesValuesString,
|
|
47
|
+
basicSizes,
|
|
48
|
+
roundShapeLarge,
|
|
49
|
+
roundShapeSmall,
|
|
50
|
+
shapeSizes
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/constants.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const CHIP_SHAPES = {\n DEFAULT: 'default' as const,\n ROUND: 'round' as const,\n};\n\nexport const CHIP_SIZES = {\n S: 's' as const,\n L: 'l' as const,\n};\n\nexport const roundShapeLarge = '56px';\nexport const roundShapeSmall = '40px';\n\nexport const basicSizes = {\n s: {\n width: '72px',\n height: '67px',\n } as const,\n l: {\n width: '92px',\n height: '67px',\n } as const,\n};\n\nexport const shapeSizes = {\n s: {\n width: '72px',\n height: '77px',\n } as const,\n l: {\n width: '92px',\n height: '85px',\n } as const,\n};\n\nexport const ChipSizesValuesArray = Object.values(CHIP_SIZES);\nexport const ChipShapesValuesArray = Object.values(CHIP_SHAPES);\nexport const ChipInteractionStates = ['hover', 'focus', 'active'];\n\nexport const ChipSizesValuesString = JSON.stringify(ChipSizesValuesArray);\nexport const ChipShapesValuesString = JSON.stringify(ChipShapesValuesArray);\nexport const ChipInteractionStatesValuesString = JSON.stringify(ChipInteractionStates);\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,OAAO;AACT;AAEO,MAAM,aAAa;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AACL;AAEO,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AAExB,MAAM,aAAa;AAAA,EACxB,GAAG;AAAA,IACD,OAAO;AAAA,IACP,QAAQ;AAAA,EACV;AAAA,EACA,GAAG;AAAA,IACD,OAAO;AAAA,IACP,QAAQ;AAAA,EACV;AACF;AAEO,MAAM,aAAa;AAAA,EACxB,GAAG;AAAA,IACD,OAAO;AAAA,IACP,QAAQ;AAAA,EACV;AAAA,EACA,GAAG;AAAA,IACD,OAAO;AAAA,IACP,QAAQ;AAAA,EACV;AACF;AAEO,MAAM,uBAAuB,OAAO,OAAO,UAAU;AACrD,MAAM,wBAAwB,OAAO,OAAO,WAAW;AACvD,MAAM,wBAAwB,CAAC,SAAS,SAAS,QAAQ;AAEzD,MAAM,wBAAwB,KAAK,UAAU,oBAAoB;AACjE,MAAM,yBAAyB,KAAK,UAAU,qBAAqB;AACnE,MAAM,oCAAoC,KAAK,UAAU,qBAAqB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/exported_related/data-test-ids.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSChipDataTestIds = {\n BUTTON: 'ds-chip-button',\n LABEL: 'ds-chip-label',\n ROUND_SHAPE: 'ds-chip-round-shape',\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,oBAAoB;AAAA,EAC/B,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,aAAa;AACf;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/exported_related/index.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './data-test-ids';\nexport * from './theming';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/exported_related/theming.ts"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSChipName = 'DS-Chip';\n\nexport const DSChipSlots = {\n BUTTON: 'root',\n LABEL: 'label',\n ROUND_SHAPE: 'round-shape',\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,aAAa;AAEnB,MAAM,cAAc;AAAA,EACzB,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,aAAa;AACf;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSChip';\nexport * from './constants';\nexport * from './exported_related';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import * as React from "react";
|
|
21
|
+
import {
|
|
22
|
+
PropTypes,
|
|
23
|
+
globalAttributesPropTypes,
|
|
24
|
+
xstyledPropTypes
|
|
25
|
+
} from "@elliemae/ds-utilities";
|
|
26
|
+
import {
|
|
27
|
+
CHIP_SIZES,
|
|
28
|
+
CHIP_SHAPES,
|
|
29
|
+
ChipSizesValuesArray,
|
|
30
|
+
ChipSizesValuesString,
|
|
31
|
+
ChipShapesValuesArray,
|
|
32
|
+
ChipShapesValuesString
|
|
33
|
+
} from "./constants";
|
|
34
|
+
const defaultProps = {
|
|
35
|
+
size: CHIP_SIZES.L,
|
|
36
|
+
shape: CHIP_SHAPES.DEFAULT
|
|
37
|
+
};
|
|
38
|
+
const DSChipPropTypes = __spreadProps(__spreadValues(__spreadValues({}, globalAttributesPropTypes), xstyledPropTypes), {
|
|
39
|
+
icon: PropTypes.func.isRequired.description("Chip Icon").defaultValue(),
|
|
40
|
+
label: PropTypes.string.isRequired.description("Chip Label").defaultValue(""),
|
|
41
|
+
selected: PropTypes.bool.description("Whether chip is selected").defaultValue(""),
|
|
42
|
+
shape: PropTypes.oneOf(ChipShapesValuesArray).description(ChipShapesValuesString).defaultValue(CHIP_SHAPES.DEFAULT),
|
|
43
|
+
size: PropTypes.oneOf(ChipSizesValuesArray).description(ChipSizesValuesString).defaultValue(CHIP_SIZES.L),
|
|
44
|
+
innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).description("Inner ref to button component.")
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
DSChipPropTypes,
|
|
48
|
+
defaultProps
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { WeakValidationMap } from 'react';\nimport {\n PropTypes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n GlobalAttributesT,\n XstyledProps,\n} from '@elliemae/ds-utilities';\nimport {\n CHIP_SIZES,\n CHIP_SHAPES,\n ChipSizesValuesArray,\n ChipSizesValuesString,\n ChipShapesValuesArray,\n ChipShapesValuesString,\n} from './constants';\nimport type { ChipSizesT, ChipShapesT } from './sharedTypes';\n\nexport const defaultProps: Omit<DSChipT.Props, 'label'> = {\n size: CHIP_SIZES.L,\n shape: CHIP_SHAPES.DEFAULT,\n};\n\nexport declare namespace DSChipT {\n interface IProps {\n selected?: boolean;\n size?: ChipSizesT;\n innerRef?: React.RefObject<HTMLButtonElement> | ((_ref: HTMLButtonElement) => void);\n shape?: ChipShapesT;\n }\n\n interface RequiredProps {\n label: string;\n icon: JSX.Element;\n }\n export interface Props\n extends IProps,\n RequiredProps,\n Omit<GlobalAttributesT<HTMLButtonElement>, keyof IProps>,\n XstyledProps {}\n}\n\nexport const DSChipPropTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n icon: PropTypes.func.isRequired.description('Chip Icon').defaultValue(),\n label: PropTypes.string.isRequired.description('Chip Label').defaultValue(''),\n selected: PropTypes.bool.description('Whether chip is selected').defaultValue(''),\n shape: PropTypes.oneOf(ChipShapesValuesArray).description(ChipShapesValuesString).defaultValue(CHIP_SHAPES.DEFAULT),\n size: PropTypes.oneOf(ChipSizesValuesArray).description(ChipSizesValuesString).defaultValue(CHIP_SIZES.L),\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).description('Inner ref to button component.'),\n} as WeakValidationMap<unknown>;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACCA;AAAA;AAAA;AAAA;AAAA;AAOA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,MAAM,eAA6C;AAAA,EACxD,MAAM,WAAW;AAAA,EACjB,OAAO,YAAY;AACrB;AAqBO,MAAM,kBAAkB,gDAC1B,4BACA,mBAF0B;AAAA,EAG7B,MAAM,UAAU,KAAK,WAAW,YAAY,WAAW,EAAE,aAAa;AAAA,EACtE,OAAO,UAAU,OAAO,WAAW,YAAY,YAAY,EAAE,aAAa,EAAE;AAAA,EAC5E,UAAU,UAAU,KAAK,YAAY,0BAA0B,EAAE,aAAa,EAAE;AAAA,EAChF,OAAO,UAAU,MAAM,qBAAqB,EAAE,YAAY,sBAAsB,EAAE,aAAa,YAAY,OAAO;AAAA,EAClH,MAAM,UAAU,MAAM,oBAAoB,EAAE,YAAY,qBAAqB,EAAE,aAAa,WAAW,CAAC;AAAA,EACxG,UAAU,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,IAAI,CAAC,EAAE,YAAY,gCAAgC;AAChH;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|