@elice/material-survey 1.260220.0 → 1.260429.0-improvetimerpopoverui.0

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.
@@ -6,7 +6,7 @@ var _styled = require('@emotion/styled/base');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var blocks = require('@elice/blocks');
8
8
  var intl = require('@elice/intl');
9
- var green = require('../../node_modules/@elice/mui-system/es/tokens/colors/green.js');
9
+ var muiSystem = require('@elice/mui-system');
10
10
 
11
11
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
12
12
 
@@ -14,7 +14,7 @@ var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
14
14
 
15
15
  var StyledSuccessStatusText = /*#__PURE__*/_styled__default.default(blocks.StatusText, {
16
16
  target: "ey5sx8r0"
17
- })("color:", green.green[400], ";");
17
+ })("color:", muiSystem.colors.green[400], ";");
18
18
  var SurveySubmitStatusText = function SurveySubmitStatusText(_ref) {
19
19
  var status = _ref.status;
20
20
  var intl$1 = intl.useRawEliceIntl();
@@ -1,6 +1,7 @@
1
1
  import type { ButtonProps } from '@elice/blocks';
2
2
  import type React from 'react';
3
3
  interface QuestionBoxProps {
4
+ children?: React.ReactNode;
4
5
  footerActions?: ButtonProps[];
5
6
  title?: string;
6
7
  submitResult?: React.ReactNode;
@@ -1,5 +1,6 @@
1
1
  import type React from 'react';
2
2
  export interface QuestionCheckboxProps {
3
+ children?: React.ReactNode;
3
4
  selectedOptions: any[];
4
5
  onSelect: (index: number) => void;
5
6
  disabled: boolean;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  type Status = 'correct' | 'wrong' | 'answer';
3
3
  interface QuestionCheckboxOptionProps {
4
+ children?: React.ReactNode;
4
5
  value: any;
5
6
  status?: Status;
6
7
  isAnswer?: boolean;
@@ -1,5 +1,6 @@
1
1
  import type React from 'react';
2
2
  export interface QuestionRadioProps {
3
+ children?: React.ReactNode;
3
4
  selectedValue: any;
4
5
  onSelect: (index: number) => void;
5
6
  disabled: boolean;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  type Status = 'correct' | 'wrong' | 'answer';
3
3
  interface QuestionRadioOptionProps {
4
+ children?: React.ReactNode;
4
5
  value: any;
5
6
  status?: Status;
6
7
  isAnswer?: boolean;
@@ -2,11 +2,11 @@ import _styled from '@emotion/styled/base';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { StatusText } from '@elice/blocks';
4
4
  import { useRawEliceIntl } from '@elice/intl';
5
- import { green } from '../../node_modules/@elice/mui-system/es/tokens/colors/green.js';
5
+ import { colors } from '@elice/mui-system';
6
6
 
7
7
  var StyledSuccessStatusText = /*#__PURE__*/_styled(StatusText, {
8
8
  target: "ey5sx8r0"
9
- })("color:", green[400], ";");
9
+ })("color:", colors.green[400], ";");
10
10
  var SurveySubmitStatusText = function SurveySubmitStatusText(_ref) {
11
11
  var status = _ref.status;
12
12
  var intl = useRawEliceIntl();
@@ -1,6 +1,7 @@
1
1
  import type { ButtonProps } from '@elice/blocks';
2
2
  import type React from 'react';
3
3
  interface QuestionBoxProps {
4
+ children?: React.ReactNode;
4
5
  footerActions?: ButtonProps[];
5
6
  title?: string;
6
7
  submitResult?: React.ReactNode;
@@ -1,5 +1,6 @@
1
1
  import type React from 'react';
2
2
  export interface QuestionCheckboxProps {
3
+ children?: React.ReactNode;
3
4
  selectedOptions: any[];
4
5
  onSelect: (index: number) => void;
5
6
  disabled: boolean;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  type Status = 'correct' | 'wrong' | 'answer';
3
3
  interface QuestionCheckboxOptionProps {
4
+ children?: React.ReactNode;
4
5
  value: any;
5
6
  status?: Status;
6
7
  isAnswer?: boolean;
@@ -1,5 +1,6 @@
1
1
  import type React from 'react';
2
2
  export interface QuestionRadioProps {
3
+ children?: React.ReactNode;
3
4
  selectedValue: any;
4
5
  onSelect: (index: number) => void;
5
6
  disabled: boolean;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  type Status = 'correct' | 'wrong' | 'answer';
3
3
  interface QuestionRadioOptionProps {
4
+ children?: React.ReactNode;
4
5
  value: any;
5
6
  status?: Status;
6
7
  isAnswer?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-survey",
3
- "version": "1.260220.0",
3
+ "version": "1.260429.0-improvetimerpopoverui.0",
4
4
  "description": "User view and editing components of Elice material survey",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -14,14 +14,6 @@
14
14
  "README.md"
15
15
  ],
16
16
  "sideEffects": false,
17
- "scripts": {
18
- "start": "run-s watch",
19
- "prebuild": "run-s clean",
20
- "build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs",
21
- "watch": "rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs -w",
22
- "lint": "eslint --ext .ts,.tsx ./src --max-warnings=0",
23
- "clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
24
- },
25
17
  "peerDependencies": {
26
18
  "@elice/api-client": "^1",
27
19
  "@elice/blocks": "^1",
@@ -29,14 +21,15 @@
29
21
  "@elice/icons": "^1",
30
22
  "@elice/intl": "^0",
31
23
  "@elice/markdown": "^1",
32
- "@elice/material-shared-types": "1.260220.0",
33
- "@elice/material-shared-utils": "1.260220.0",
24
+ "@elice/mui-system": "^5",
34
25
  "@elice/types": "^1",
35
26
  "@elice/wysiwyg": "^1",
36
27
  "@emotion/react": "^11.10.0",
37
28
  "@emotion/styled": "^11.10.0",
38
29
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
39
- "react-use": "^17.0.0"
30
+ "react-use": "^17.0.0",
31
+ "@elice/material-shared-utils": "1.260429.0-improvetimerpopoverui.0",
32
+ "@elice/material-shared-types": "1.260429.0-improvetimerpopoverui.0"
40
33
  },
41
34
  "dependencies": {
42
35
  "classnames": "^2.2.0",
@@ -53,8 +46,8 @@
53
46
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
54
47
  "@elice/intl": "0.241127.0",
55
48
  "@elice/markdown": "1.241015.0",
56
- "@elice/material-shared-types": "1.260220.0",
57
- "@elice/material-shared-utils": "1.260220.0",
49
+ "@elice/mui-system": "5.251204.0",
50
+ "@elice/rollup-config": "^1.260406.0",
58
51
  "@elice/types": "^1.251229.0",
59
52
  "@elice/wysiwyg": "1.241015.0",
60
53
  "@emotion/react": "^11.10.0",
@@ -63,7 +56,23 @@
63
56
  "@types/react": "~17.0.9",
64
57
  "@types/react-transition-group": "^4.4.4",
65
58
  "@types/styled-components": "^5.1.36",
66
- "react": "^17.0.2",
67
- "react-use": "^17.2.4"
59
+ "cross-env": "^7.0.3",
60
+ "del-cli": "^3.0.1",
61
+ "eslint": "~9.39.0",
62
+ "npm-run-all": "^4.1.5",
63
+ "react": "~18.2.0",
64
+ "react-use": "^17.2.4",
65
+ "rollup": "^4.0.0",
66
+ "typescript": "~5.9.3",
67
+ "@elice/material-shared-types": "1.260429.0-improvetimerpopoverui.0",
68
+ "@elice/material-shared-utils": "1.260429.0-improvetimerpopoverui.0"
69
+ },
70
+ "scripts": {
71
+ "start": "run-s watch",
72
+ "prebuild": "run-s clean",
73
+ "build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs",
74
+ "watch": "rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs -w",
75
+ "lint": "eslint --ext .ts,.tsx ./src --max-warnings=0",
76
+ "clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
68
77
  }
69
- }
78
+ }
@@ -1,31 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * Color "Green" palette for Elice Design System.
5
- * (https://zeroheight.com/28e7b9d96/p/25a3d8-color/b/281ad3/t/7636cc)
6
- *
7
- * - `50`: `#e8f5e9`
8
- * - `100`: `#c8e6c9`
9
- * - `200`: `#a5d6a7`
10
- * - `300`: `#81c784`
11
- * - `400`: `#66bb6a`
12
- * - `500`: `#4caf50`
13
- * - `600`: `#43a047`
14
- * - `700`: `#388e3c`
15
- * - `800`: `#2e7d32`
16
- * - `900`: `#1b5e20`
17
- */
18
- var green = Object.freeze({
19
- 50: '#e8f5e9',
20
- 100: '#c8e6c9',
21
- 200: '#a5d6a7',
22
- 300: '#81c784',
23
- 400: '#66bb6a',
24
- 500: '#4caf50',
25
- 600: '#43a047',
26
- 700: '#388e3c',
27
- 800: '#2e7d32',
28
- 900: '#1b5e20'
29
- });
30
-
31
- exports.green = green;
@@ -1,29 +0,0 @@
1
- /**
2
- * Color "Green" palette for Elice Design System.
3
- * (https://zeroheight.com/28e7b9d96/p/25a3d8-color/b/281ad3/t/7636cc)
4
- *
5
- * - `50`: `#e8f5e9`
6
- * - `100`: `#c8e6c9`
7
- * - `200`: `#a5d6a7`
8
- * - `300`: `#81c784`
9
- * - `400`: `#66bb6a`
10
- * - `500`: `#4caf50`
11
- * - `600`: `#43a047`
12
- * - `700`: `#388e3c`
13
- * - `800`: `#2e7d32`
14
- * - `900`: `#1b5e20`
15
- */
16
- var green = Object.freeze({
17
- 50: '#e8f5e9',
18
- 100: '#c8e6c9',
19
- 200: '#a5d6a7',
20
- 300: '#81c784',
21
- 400: '#66bb6a',
22
- 500: '#4caf50',
23
- 600: '#43a047',
24
- 700: '#388e3c',
25
- 800: '#2e7d32',
26
- 900: '#1b5e20'
27
- });
28
-
29
- export { green };