jvetrau-ds 0.2.16 → 0.2.17
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/components/choice-group/choice-group.cjs +34 -0
- package/components/choice-group/choice-group.cjs.map +1 -0
- package/components/choice-group/choice-group.css +50 -0
- package/components/choice-group/choice-group.d.ts +8 -0
- package/components/choice-group/choice-group.js +32 -0
- package/components/choice-group/choice-group.js.map +1 -0
- package/components/choice-group/choice-group.meta.d.ts +2 -0
- package/components/choice-group/index.cjs +22 -0
- package/components/choice-group/index.cjs.map +1 -0
- package/components/choice-group/index.d.ts +3 -0
- package/components/choice-group/index.js +3 -0
- package/components/choice-group/index.js.map +1 -0
- package/components/index.cjs +6 -0
- package/components/index.d.ts +2 -0
- package/components/index.js +1 -0
- package/index.cjs +6 -0
- package/index.d.ts +2 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/styles.css +52 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
require('./choice-group.css');
|
|
5
|
+
var classnames = require('../helpers/classnames');
|
|
6
|
+
|
|
7
|
+
const ChoiceGroup = ({
|
|
8
|
+
direction = "column",
|
|
9
|
+
className = "",
|
|
10
|
+
children,
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
const classes = classnames.classnames(
|
|
14
|
+
"choice-group",
|
|
15
|
+
className,
|
|
16
|
+
{
|
|
17
|
+
"choice-group--row": direction === "row",
|
|
18
|
+
"choice-group--column": direction === "column"
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className: classes,
|
|
25
|
+
...props,
|
|
26
|
+
children
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
var choice_group_default = ChoiceGroup;
|
|
31
|
+
|
|
32
|
+
module.exports = choice_group_default;
|
|
33
|
+
//# sourceMappingURL=choice-group.cjs.map
|
|
34
|
+
//# sourceMappingURL=choice-group.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/choice-group/choice-group.tsx"],"names":["classnames","jsx"],"mappings":";;;;;;AAcA,MAAM,cAEF,CAAC;AAAA,EACH,SAAA,GAAY,QAAA;AAAA,EACZ,SAAA,GAAY,EAAA;AAAA,EACZ,QAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,OAAA,GAAUA,qBAAA;AAAA,IACd,cAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,MACE,qBACE,SAAA,KAAc,KAAA;AAAA,MAChB,wBACE,SAAA,KAAc;AAAA;AAClB,GACF;AAEA,EAAA,uBACEC,cAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,OAAA;AAAA,MACV,GAAG,KAAA;AAAA,MAEH;AAAA;AAAA,GACH;AAEJ,CAAA;AAEA,IAAO,oBAAA,GAAQ","file":"choice-group.cjs","sourcesContent":["import React from 'react';\n\nimport './choice-group.css';\nimport { classnames } from '../helpers/classnames';\n\nexport type ChoiceGroupDirection =\n | 'column'\n | 'row';\n\nexport interface ChoiceGroupProps\n extends React.HTMLAttributes<HTMLDivElement> {\n direction?: ChoiceGroupDirection;\n}\n\nconst ChoiceGroup: React.FC<\n ChoiceGroupProps\n> = ({\n direction = 'column',\n className = '',\n children,\n ...props\n}) => {\n const classes = classnames(\n 'choice-group',\n className,\n {\n 'choice-group--row':\n direction === 'row',\n 'choice-group--column':\n direction === 'column',\n },\n );\n\n return (\n <div\n className={classes}\n {...props}\n >\n {children}\n </div>\n );\n};\n\nexport default ChoiceGroup;\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.choice-group {
|
|
2
|
+
/* color */
|
|
3
|
+
|
|
4
|
+
/* typography */
|
|
5
|
+
|
|
6
|
+
/* size */
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: var(--margin-choice);
|
|
9
|
+
|
|
10
|
+
min-width: 0;
|
|
11
|
+
|
|
12
|
+
/* border */
|
|
13
|
+
|
|
14
|
+
/* depth */
|
|
15
|
+
|
|
16
|
+
/* motion */
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.choice-group--column {
|
|
20
|
+
/* color */
|
|
21
|
+
|
|
22
|
+
/* typography */
|
|
23
|
+
|
|
24
|
+
/* size */
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
align-items: flex-start;
|
|
27
|
+
|
|
28
|
+
/* border */
|
|
29
|
+
|
|
30
|
+
/* depth */
|
|
31
|
+
|
|
32
|
+
/* motion */
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.choice-group--row {
|
|
36
|
+
/* color */
|
|
37
|
+
|
|
38
|
+
/* typography */
|
|
39
|
+
|
|
40
|
+
/* size */
|
|
41
|
+
flex-direction: row;
|
|
42
|
+
flex-wrap: wrap;
|
|
43
|
+
align-items: center;
|
|
44
|
+
|
|
45
|
+
/* border */
|
|
46
|
+
|
|
47
|
+
/* depth */
|
|
48
|
+
|
|
49
|
+
/* motion */
|
|
50
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './choice-group.css';
|
|
3
|
+
export type ChoiceGroupDirection = 'column' | 'row';
|
|
4
|
+
export interface ChoiceGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
direction?: ChoiceGroupDirection;
|
|
6
|
+
}
|
|
7
|
+
declare const ChoiceGroup: React.FC<ChoiceGroupProps>;
|
|
8
|
+
export default ChoiceGroup;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import './choice-group.css';
|
|
3
|
+
import { classnames } from '../helpers/classnames';
|
|
4
|
+
|
|
5
|
+
const ChoiceGroup = ({
|
|
6
|
+
direction = "column",
|
|
7
|
+
className = "",
|
|
8
|
+
children,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
const classes = classnames(
|
|
12
|
+
"choice-group",
|
|
13
|
+
className,
|
|
14
|
+
{
|
|
15
|
+
"choice-group--row": direction === "row",
|
|
16
|
+
"choice-group--column": direction === "column"
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: classes,
|
|
23
|
+
...props,
|
|
24
|
+
children
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
var choice_group_default = ChoiceGroup;
|
|
29
|
+
|
|
30
|
+
export { choice_group_default as default };
|
|
31
|
+
//# sourceMappingURL=choice-group.js.map
|
|
32
|
+
//# sourceMappingURL=choice-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/choice-group/choice-group.tsx"],"names":[],"mappings":";;;;AAcA,MAAM,cAEF,CAAC;AAAA,EACH,SAAA,GAAY,QAAA;AAAA,EACZ,SAAA,GAAY,EAAA;AAAA,EACZ,QAAA;AAAA,EACA,GAAG;AACL,CAAA,KAAM;AACJ,EAAA,MAAM,OAAA,GAAU,UAAA;AAAA,IACd,cAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,MACE,qBACE,SAAA,KAAc,KAAA;AAAA,MAChB,wBACE,SAAA,KAAc;AAAA;AAClB,GACF;AAEA,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,OAAA;AAAA,MACV,GAAG,KAAA;AAAA,MAEH;AAAA;AAAA,GACH;AAEJ,CAAA;AAEA,IAAO,oBAAA,GAAQ","file":"choice-group.js","sourcesContent":["import React from 'react';\n\nimport './choice-group.css';\nimport { classnames } from '../helpers/classnames';\n\nexport type ChoiceGroupDirection =\n | 'column'\n | 'row';\n\nexport interface ChoiceGroupProps\n extends React.HTMLAttributes<HTMLDivElement> {\n direction?: ChoiceGroupDirection;\n}\n\nconst ChoiceGroup: React.FC<\n ChoiceGroupProps\n> = ({\n direction = 'column',\n className = '',\n children,\n ...props\n}) => {\n const classes = classnames(\n 'choice-group',\n className,\n {\n 'choice-group--row':\n direction === 'row',\n 'choice-group--column':\n direction === 'column',\n },\n );\n\n return (\n <div\n className={classes}\n {...props}\n >\n {children}\n </div>\n );\n};\n\nexport default ChoiceGroup;\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var choiceGroup = require('./choice-group');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var choiceGroup__default = /*#__PURE__*/_interopDefault(choiceGroup);
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, "ChoiceGroup", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return choiceGroup__default.default; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "default", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return choiceGroup__default.default; }
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=index.cjs.map
|
|
22
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
package/components/index.cjs
CHANGED
|
@@ -7,6 +7,7 @@ var select = require('./select/select');
|
|
|
7
7
|
var dropdown = require('./dropdown/dropdown');
|
|
8
8
|
var checkbox = require('./checkbox/checkbox');
|
|
9
9
|
var radio = require('./radio/radio');
|
|
10
|
+
var choiceGroup = require('./choice-group');
|
|
10
11
|
var field = require('./field/field');
|
|
11
12
|
var fieldGroup = require('./field-group/field-group');
|
|
12
13
|
var formMessage = require('./form-message');
|
|
@@ -40,6 +41,7 @@ var select__default = /*#__PURE__*/_interopDefault(select);
|
|
|
40
41
|
var dropdown__default = /*#__PURE__*/_interopDefault(dropdown);
|
|
41
42
|
var checkbox__default = /*#__PURE__*/_interopDefault(checkbox);
|
|
42
43
|
var radio__default = /*#__PURE__*/_interopDefault(radio);
|
|
44
|
+
var choiceGroup__default = /*#__PURE__*/_interopDefault(choiceGroup);
|
|
43
45
|
var field__default = /*#__PURE__*/_interopDefault(field);
|
|
44
46
|
var fieldGroup__default = /*#__PURE__*/_interopDefault(fieldGroup);
|
|
45
47
|
var formMessage__default = /*#__PURE__*/_interopDefault(formMessage);
|
|
@@ -97,6 +99,10 @@ Object.defineProperty(exports, "Radio", {
|
|
|
97
99
|
enumerable: true,
|
|
98
100
|
get: function () { return radio__default.default; }
|
|
99
101
|
});
|
|
102
|
+
Object.defineProperty(exports, "ChoiceGroup", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () { return choiceGroup__default.default; }
|
|
105
|
+
});
|
|
100
106
|
Object.defineProperty(exports, "Field", {
|
|
101
107
|
enumerable: true,
|
|
102
108
|
get: function () { return field__default.default; }
|
package/components/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export { default as Checkbox } from './checkbox/checkbox';
|
|
|
13
13
|
export type { CheckboxProps } from './checkbox/checkbox';
|
|
14
14
|
export { default as Radio } from './radio/radio';
|
|
15
15
|
export type { RadioProps } from './radio/radio';
|
|
16
|
+
export { default as ChoiceGroup } from './choice-group';
|
|
17
|
+
export type { ChoiceGroupDirection, ChoiceGroupProps, } from './choice-group';
|
|
16
18
|
export { default as Field } from './field/field';
|
|
17
19
|
export type { FieldProps } from './field/field';
|
|
18
20
|
export { default as FieldGroup } from './field-group/field-group';
|
package/components/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { default as Select } from './select/select';
|
|
|
5
5
|
export { default as Dropdown } from './dropdown/dropdown';
|
|
6
6
|
export { default as Checkbox } from './checkbox/checkbox';
|
|
7
7
|
export { default as Radio } from './radio/radio';
|
|
8
|
+
export { default as ChoiceGroup } from './choice-group';
|
|
8
9
|
export { default as Field } from './field/field';
|
|
9
10
|
export { default as FieldGroup } from './field-group/field-group';
|
|
10
11
|
export { default as FormMessage } from './form-message';
|
package/index.cjs
CHANGED
|
@@ -7,6 +7,7 @@ var select = require('./components/select');
|
|
|
7
7
|
var dropdown = require('./components/dropdown');
|
|
8
8
|
var checkbox = require('./components/checkbox');
|
|
9
9
|
var radio = require('./components/radio');
|
|
10
|
+
var choiceGroup = require('./components/choice-group');
|
|
10
11
|
var field = require('./components/field');
|
|
11
12
|
var fieldGroup = require('./components/field-group');
|
|
12
13
|
var formMessage = require('./components/form-message');
|
|
@@ -52,6 +53,7 @@ var select__default = /*#__PURE__*/_interopDefault(select);
|
|
|
52
53
|
var dropdown__default = /*#__PURE__*/_interopDefault(dropdown);
|
|
53
54
|
var checkbox__default = /*#__PURE__*/_interopDefault(checkbox);
|
|
54
55
|
var radio__default = /*#__PURE__*/_interopDefault(radio);
|
|
56
|
+
var choiceGroup__default = /*#__PURE__*/_interopDefault(choiceGroup);
|
|
55
57
|
var field__default = /*#__PURE__*/_interopDefault(field);
|
|
56
58
|
var fieldGroup__default = /*#__PURE__*/_interopDefault(fieldGroup);
|
|
57
59
|
var formMessage__default = /*#__PURE__*/_interopDefault(formMessage);
|
|
@@ -121,6 +123,10 @@ Object.defineProperty(exports, "Radio", {
|
|
|
121
123
|
enumerable: true,
|
|
122
124
|
get: function () { return radio__default.default; }
|
|
123
125
|
});
|
|
126
|
+
Object.defineProperty(exports, "ChoiceGroup", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () { return choiceGroup__default.default; }
|
|
129
|
+
});
|
|
124
130
|
Object.defineProperty(exports, "Field", {
|
|
125
131
|
enumerable: true,
|
|
126
132
|
get: function () { return field__default.default; }
|
package/index.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export { default as Checkbox } from './components/checkbox';
|
|
|
16
16
|
export type { CheckboxProps } from './components/checkbox';
|
|
17
17
|
export { default as Radio } from './components/radio';
|
|
18
18
|
export type { RadioProps } from './components/radio';
|
|
19
|
+
export { default as ChoiceGroup } from './components/choice-group';
|
|
20
|
+
export type { ChoiceGroupDirection, ChoiceGroupProps, } from './components/choice-group';
|
|
19
21
|
export { default as Field } from './components/field';
|
|
20
22
|
export type { FieldProps } from './components/field';
|
|
21
23
|
export { default as FieldGroup } from './components/field-group';
|
package/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { default as Select } from './components/select';
|
|
|
5
5
|
export { default as Dropdown } from './components/dropdown';
|
|
6
6
|
export { default as Checkbox } from './components/checkbox';
|
|
7
7
|
export { default as Radio } from './components/radio';
|
|
8
|
+
export { default as ChoiceGroup } from './components/choice-group';
|
|
8
9
|
export { default as Field } from './components/field';
|
|
9
10
|
export { default as FieldGroup } from './components/field-group';
|
|
10
11
|
export { default as FormMessage } from './components/form-message';
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -1497,6 +1497,58 @@
|
|
|
1497
1497
|
cursor: not-allowed;
|
|
1498
1498
|
}
|
|
1499
1499
|
|
|
1500
|
+
/* src/components/choice-group/choice-group.css */
|
|
1501
|
+
.choice-group {
|
|
1502
|
+
/* color */
|
|
1503
|
+
|
|
1504
|
+
/* typography */
|
|
1505
|
+
|
|
1506
|
+
/* size */
|
|
1507
|
+
display: flex;
|
|
1508
|
+
gap: var(--margin-choice);
|
|
1509
|
+
|
|
1510
|
+
min-width: 0;
|
|
1511
|
+
|
|
1512
|
+
/* border */
|
|
1513
|
+
|
|
1514
|
+
/* depth */
|
|
1515
|
+
|
|
1516
|
+
/* motion */
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
.choice-group--column {
|
|
1520
|
+
/* color */
|
|
1521
|
+
|
|
1522
|
+
/* typography */
|
|
1523
|
+
|
|
1524
|
+
/* size */
|
|
1525
|
+
flex-direction: column;
|
|
1526
|
+
align-items: flex-start;
|
|
1527
|
+
|
|
1528
|
+
/* border */
|
|
1529
|
+
|
|
1530
|
+
/* depth */
|
|
1531
|
+
|
|
1532
|
+
/* motion */
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
.choice-group--row {
|
|
1536
|
+
/* color */
|
|
1537
|
+
|
|
1538
|
+
/* typography */
|
|
1539
|
+
|
|
1540
|
+
/* size */
|
|
1541
|
+
flex-direction: row;
|
|
1542
|
+
flex-wrap: wrap;
|
|
1543
|
+
align-items: center;
|
|
1544
|
+
|
|
1545
|
+
/* border */
|
|
1546
|
+
|
|
1547
|
+
/* depth */
|
|
1548
|
+
|
|
1549
|
+
/* motion */
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1500
1552
|
/* src/components/course-outline/course-outline.css */
|
|
1501
1553
|
.course-outline {
|
|
1502
1554
|
/* color */
|