allaw-ui 0.1.23 → 0.1.26

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 (76) hide show
  1. package/README.md +0 -0
  2. package/dist/app/globals.css +0 -0
  3. package/dist/assets/NoPhoto.png +0 -0
  4. package/dist/assets/NoPhoto.svg +0 -0
  5. package/dist/assets/allaw-font.eot +0 -0
  6. package/dist/assets/allaw-font.svg +0 -0
  7. package/dist/assets/allaw-font.ttf +0 -0
  8. package/dist/assets/allaw-font.woff +0 -0
  9. package/dist/components/atoms/buttons/ActionCircleButton.css +0 -0
  10. package/dist/components/atoms/buttons/AgendaSlot.css +0 -0
  11. package/dist/components/atoms/buttons/FavoriteToggle.css +0 -0
  12. package/dist/components/atoms/buttons/FilterButton.css +0 -0
  13. package/dist/components/atoms/buttons/GhostButton.css +0 -0
  14. package/dist/components/atoms/buttons/IconButton.css +0 -0
  15. package/dist/components/atoms/buttons/OAuthProviderButton.css +0 -0
  16. package/dist/components/atoms/buttons/PendingDocuments.css +0 -0
  17. package/dist/components/atoms/buttons/PrimaryButton.css +0 -0
  18. package/dist/components/atoms/buttons/SecondaryButton.css +0 -0
  19. package/dist/components/atoms/buttons/TabNavigation.css +0 -0
  20. package/dist/components/atoms/buttons/TertiaryButton.css +0 -0
  21. package/dist/components/atoms/checkboxes/Checkbox.css +0 -0
  22. package/dist/components/atoms/checkboxes/Checkbox.d.ts +1 -0
  23. package/dist/components/atoms/checkboxes/Checkbox.js +3 -3
  24. package/dist/components/atoms/filter/Basefiler.css +0 -0
  25. package/dist/components/atoms/filters/SingleFilter.css +0 -0
  26. package/dist/components/atoms/inputs/Input.css +0 -0
  27. package/dist/components/atoms/inputs/SearchBar.css +0 -0
  28. package/dist/components/atoms/progressBars/ProgressBar.css +0 -0
  29. package/dist/components/atoms/radios/RadioButton.css +0 -0
  30. package/dist/components/atoms/selects/Select.css +0 -0
  31. package/dist/components/atoms/tags/AppointementStatusTag.css +0 -0
  32. package/dist/components/atoms/tags/FolderStatusTag.css +0 -0
  33. package/dist/components/atoms/tags/OtherStatusTag.css +0 -0
  34. package/dist/components/atoms/typography/Heading.css +0 -0
  35. package/dist/components/atoms/typography/Paragraph.css +0 -0
  36. package/dist/components/atoms/typography/SmallTitle.css +0 -0
  37. package/dist/components/atoms/typography/Subtitle.css +0 -0
  38. package/dist/components/atoms/typography/TinyInfo.css +0 -0
  39. package/dist/components/atoms/uiVariables/BorderRadiusExample.css +0 -0
  40. package/dist/components/atoms/uiVariables/ShadowsExample.css +0 -0
  41. package/dist/components/atoms/uiVariables/StrokesExample.css +0 -0
  42. package/dist/components/molecules/appointmentSlot/AppointmentSlot.css +0 -0
  43. package/dist/components/molecules/breadcrumb/Breadcrumb.css +0 -0
  44. package/dist/components/molecules/caseCard/CaseCard.css +0 -0
  45. package/dist/components/molecules/checkboxForm/CheckboxForm.css +0 -0
  46. package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +1 -0
  47. package/dist/components/molecules/checkboxForm/CheckboxForm.js +2 -2
  48. package/dist/components/molecules/contactCard/ContactCard.css +0 -0
  49. package/dist/components/molecules/documentCard/DocumentCard.css +0 -0
  50. package/dist/components/molecules/employeeCard/EmployeeCard.css +0 -0
  51. package/dist/components/molecules/proCard/ProCard.css +0 -0
  52. package/dist/components/molecules/radioForm/RadioForm.css +0 -0
  53. package/dist/components/molecules/selectForm/SelectForm.css +0 -0
  54. package/dist/components/molecules/stepper/Stepper.css +0 -0
  55. package/dist/stories/assets/accessibility.png +0 -0
  56. package/dist/stories/assets/accessibility.svg +0 -0
  57. package/dist/stories/assets/addon-library.png +0 -0
  58. package/dist/stories/assets/assets.png +0 -0
  59. package/dist/stories/assets/context.png +0 -0
  60. package/dist/stories/assets/discord.svg +0 -0
  61. package/dist/stories/assets/docs.png +0 -0
  62. package/dist/stories/assets/figma-plugin.png +0 -0
  63. package/dist/stories/assets/github.svg +0 -0
  64. package/dist/stories/assets/share.png +0 -0
  65. package/dist/stories/assets/styling.png +0 -0
  66. package/dist/stories/assets/testing.png +0 -0
  67. package/dist/stories/assets/theming.png +0 -0
  68. package/dist/stories/assets/tutorials.svg +0 -0
  69. package/dist/stories/assets/youtube.svg +0 -0
  70. package/dist/styles/colors.css +0 -0
  71. package/dist/styles/global.css +0 -0
  72. package/dist/styles/icons.css +0 -0
  73. package/dist/styles/ui-variables/border-radius.css +0 -0
  74. package/dist/styles/ui-variables/shadows.css +0 -0
  75. package/dist/styles/ui-variables/stroke.css +0 -0
  76. package/package.json +1 -1
package/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -8,6 +8,7 @@ export interface CheckboxProps {
8
8
  color?: string;
9
9
  size?: "default" | "small";
10
10
  style?: "default" | "light";
11
+ markType?: "cross" | "check";
11
12
  }
12
13
  declare const Checkbox: React.FC<CheckboxProps>;
13
14
  export default Checkbox;
@@ -2,8 +2,8 @@ import React, { useState } from "react";
2
2
  import "./Checkbox.css";
3
3
  import "../../../styles/global.css";
4
4
  var Checkbox = function (_a) {
5
- var id = _a.id, _b = _a.checked, checked = _b === void 0 ? false : _b, onChange = _a.onChange, _c = _a.color, color = _c === void 0 ? "noir" : _c, _d = _a.size, size = _d === void 0 ? "default" : _d, _e = _a.style, style = _e === void 0 ? "default" : _e;
6
- var _f = useState(checked), isChecked = _f[0], setIsChecked = _f[1];
5
+ var id = _a.id, _b = _a.checked, checked = _b === void 0 ? false : _b, onChange = _a.onChange, _c = _a.color, color = _c === void 0 ? "noir" : _c, _d = _a.size, size = _d === void 0 ? "default" : _d, _e = _a.style, style = _e === void 0 ? "default" : _e, _f = _a.markType, markType = _f === void 0 ? "cross" : _f;
6
+ var _g = useState(checked), isChecked = _g[0], setIsChecked = _g[1];
7
7
  var handleClick = function (e) {
8
8
  e.preventDefault();
9
9
  e.stopPropagation();
@@ -14,6 +14,6 @@ var Checkbox = function (_a) {
14
14
  }
15
15
  };
16
16
  var checkboxColor = style === "light" ? "light" : color;
17
- return (React.createElement("button", { id: id, className: "checkbox ".concat(isChecked ? "checkbox-pressed" : "checkbox-default", " ").concat("checkbox-".concat(checkboxColor), " ").concat(size === "small" ? "checkbox-small" : "", " ").concat(style === "light" ? "checkbox-light" : ""), onClick: handleClick }, isChecked && (React.createElement("span", { className: "checkbox-icon allaw-icon-close ".concat("checkbox-icon-".concat(checkboxColor), " ").concat(style === "light" ? "checkbox-icon-light" : "") }))));
17
+ return (React.createElement("button", { id: id, className: "checkbox ".concat(isChecked ? "checkbox-pressed" : "checkbox-default", " ").concat("checkbox-".concat(checkboxColor), " ").concat(size === "small" ? "checkbox-small" : "", " ").concat(style === "light" ? "checkbox-light" : ""), onClick: handleClick }, isChecked && (React.createElement("span", { className: "checkbox-icon ".concat(markType === "cross" ? "allaw-icon-close" : "allaw-icon-check", " ").concat("checkbox-icon-".concat(checkboxColor), " ").concat(style === "light" ? "checkbox-icon-light" : "") }))));
18
18
  };
19
19
  export default Checkbox;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -11,6 +11,7 @@ export interface CheckboxFormProps {
11
11
  linkUrl?: string;
12
12
  size?: "default" | "small";
13
13
  style?: "default" | "light";
14
+ markType?: "cross" | "check";
14
15
  }
15
16
  declare const CheckboxForm: React.FC<CheckboxFormProps>;
16
17
  export default CheckboxForm;
@@ -3,7 +3,7 @@ import Checkbox from "../../atoms/checkboxes/Checkbox";
3
3
  import Paragraph from "../../atoms/typography/Paragraph";
4
4
  import "./CheckboxForm.css";
5
5
  var CheckboxForm = function (_a) {
6
- var _b = _a.checked, checked = _b === void 0 ? false : _b, onChange = _a.onChange, _c = _a.color, color = _c === void 0 ? "noir" : _c, label = _a.label, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, linkText = _a.linkText, linkUrl = _a.linkUrl, _e = _a.size, size = _e === void 0 ? "default" : _e, _f = _a.style, style = _f === void 0 ? "default" : _f;
6
+ var _b = _a.checked, checked = _b === void 0 ? false : _b, onChange = _a.onChange, _c = _a.color, color = _c === void 0 ? "noir" : _c, label = _a.label, _d = _a.isRequired, isRequired = _d === void 0 ? false : _d, linkText = _a.linkText, linkUrl = _a.linkUrl, _e = _a.size, size = _e === void 0 ? "default" : _e, _f = _a.style, style = _f === void 0 ? "default" : _f, _g = _a.markType, markType = _g === void 0 ? "cross" : _g;
7
7
  var checkboxId = "checkbox-".concat(Math.random().toString(36).substr(2, 9));
8
8
  var handleCheckboxChange = function (checked) {
9
9
  if (onChange) {
@@ -12,7 +12,7 @@ var CheckboxForm = function (_a) {
12
12
  };
13
13
  var checkboxColor = style === "light" ? "light" : color;
14
14
  return (React.createElement("div", { className: "checkbox-form checkbox-form-".concat(checkboxColor, " ").concat(size === "small" ? "checkbox-form-small" : "") },
15
- React.createElement(Checkbox, { id: checkboxId, checked: checked, onChange: handleCheckboxChange, color: checkboxColor, size: size, style: style }),
15
+ React.createElement(Checkbox, { id: checkboxId, checked: checked, onChange: handleCheckboxChange, color: checkboxColor, size: size, style: style, markType: markType }),
16
16
  label && (React.createElement("label", { htmlFor: checkboxId, className: "checkbox-form-label-container" },
17
17
  React.createElement(Paragraph, { variant: "semiBold", color: color, text: React.createElement(React.Fragment, null,
18
18
  React.createElement("span", null, label),
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "0.1.23",
3
+ "version": "0.1.26",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",