@kanda-libs/ks-component-ts 0.2.247-qa → 0.2.248-qa

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 (32) hide show
  1. package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js +3 -3
  2. package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js.map +3 -3
  3. package/app/.yalc/@kanda-libs/ks-component-ts/package.json +1 -1
  4. package/app/.yalc/@kanda-libs/ks-component-ts/yalc.sig +1 -1
  5. package/app/.yalc/@kanda-libs/ks-design-library/dist/index.d.ts +8 -0
  6. package/app/.yalc/@kanda-libs/ks-design-library/dist/index.esm.mjs +2 -2
  7. package/app/.yalc/@kanda-libs/ks-design-library/dist/index.esm.mjs.map +3 -3
  8. package/app/.yalc/@kanda-libs/ks-design-library/package.json +2 -2
  9. package/app/.yalc/@kanda-libs/ks-design-library/src/components/DesktopLayout/DesktopLayoutBoxed/DesktopLayoutBoxedContent/constants.ts +5 -1
  10. package/app/.yalc/@kanda-libs/ks-design-library/src/components/DesktopLayout/DesktopLayoutBoxed/DesktopLayoutBoxedContent/index.tsx +4 -0
  11. package/app/.yalc/@kanda-libs/ks-design-library/src/components/DesktopLayout/DesktopLayoutBoxed/constants.ts +1 -1
  12. package/app/.yalc/@kanda-libs/ks-design-library/src/components/DesktopLayout/DesktopLayoutBoxed/index.tsx +14 -5
  13. package/app/.yalc/@kanda-libs/ks-design-library/src/components/DesktopLayout/DesktopLayoutBoxed/useDesktopLayoutBoxedProps.ts +3 -0
  14. package/app/.yalc/@kanda-libs/ks-design-library/yalc.sig +1 -1
  15. package/app/yalc.lock +2 -2
  16. package/dist/index.d.ts +8643 -8535
  17. package/dist/index.esm.js +3 -3
  18. package/dist/index.esm.js.map +3 -3
  19. package/package.json +1 -1
  20. package/src/generated/components/schemas/Enterprise.ts +43 -0
  21. package/src/generated/components/schemas/LeadTrade.ts +2 -6
  22. package/src/generated/components/schemas/index.ts +1 -0
  23. package/src/generated/operations/deleteEnterprise.ts +29 -0
  24. package/src/generated/operations/getEnterprise.ts +29 -0
  25. package/src/generated/operations/getEnterpriseBranches.ts +30 -0
  26. package/src/generated/operations/getEnterprises.ts +25 -0
  27. package/src/generated/operations/index.ts +106 -0
  28. package/src/generated/operations/infoEnterprise.ts +43 -0
  29. package/src/generated/operations/postEnterprise.ts +24 -0
  30. package/src/generated/operations/postEnterpriseBranches.ts +39 -0
  31. package/src/generated/operations/putEnterprise.ts +35 -0
  32. package/src/generated/widget/index.tsx +42080 -41640
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-design-library",
3
- "version": "0.2.79",
3
+ "version": "0.2.81",
4
4
  "description": "Kanda design components library",
5
5
  "main": "dist/index.esm.mjs",
6
6
  "module": "dist/index.esm.mjs",
@@ -72,5 +72,5 @@
72
72
  "react-toastify": "^9.0.8",
73
73
  "use-debounce": "^8.0.4"
74
74
  },
75
- "yalcSig": "312c266992896be72ed73b30f80da8e3"
75
+ "yalcSig": "5de3490dab2f6ae8ff0de3e42ea27f49"
76
76
  }
@@ -9,7 +9,11 @@ export const CLASS_NAMES = {
9
9
  },
10
10
  },
11
11
  container: {
12
- base: 'flex flex-row w-full justify-center px-16 lg:px-38 pt-18',
12
+ base: 'flex flex-row w-full justify-center',
13
+ '@noPadding': {
14
+ false: 'px-16 lg:px-38 pt-18',
15
+ true: '',
16
+ },
13
17
  '@flex': {
14
18
  true: 'flex-1',
15
19
  },
@@ -15,6 +15,10 @@ export interface ContentDefaultProps {
15
15
  left?: boolean;
16
16
  flex?: boolean;
17
17
  width?: string;
18
+ /**
19
+ * Don't add padding to the content
20
+ */
21
+ noPadding?: boolean;
18
22
  }
19
23
 
20
24
  const DesktopLayoutBoxedContent: FunctionComponent<ContentDefaultProps> =
@@ -8,7 +8,7 @@ export const CLASS_NAMES = {
8
8
  lines: 'absolute left-0 top-0',
9
9
  options: 'flex flex-row',
10
10
  wrapper: {
11
- base: 'flex flex-1 w-full flex-col px-6 lg:px-8 xl:px-16 relative mx-auto',
11
+ base: 'flex flex-1 w-full flex-col relative mx-auto px-6 lg:px-8 xl:px-16',
12
12
  '@noHeader': {
13
13
  false: 'pb-30',
14
14
  true: 'pb-20',
@@ -32,6 +32,10 @@ export interface DesktopLayoutBoxedProps {
32
32
  * Allow for the y axis to overflow when there is a lot of content within the card
33
33
  */
34
34
  allowYOverflow?: boolean;
35
+ /**
36
+ * Optional prop for whether or not to show the navigation, like with DesktopLayoutDefault
37
+ */
38
+ showNavigation?: boolean;
35
39
  }
36
40
 
37
41
  const DesktopLayoutBoxed: FunctionComponent<DesktopLayoutBoxedProps> =
@@ -46,12 +50,14 @@ const DesktopLayoutBoxed: FunctionComponent<DesktopLayoutBoxedProps> =
46
50
  help = false,
47
51
  layoutFooter,
48
52
  allowYOverflow = false,
53
+ showNavigation = false,
49
54
  }) {
50
55
  const {
51
56
  classNames,
52
57
  linkComponent: LinkComponent,
53
58
  homeLinkProps,
54
59
  sidebarView: SidebarView,
60
+ Header,
55
61
  } = useDesktopLayoutBoxedProps({
56
62
  sidebar,
57
63
  sidebarWidth,
@@ -76,11 +82,14 @@ const DesktopLayoutBoxed: FunctionComponent<DesktopLayoutBoxedProps> =
76
82
  <div className={classNames.wrapper}>
77
83
  {!noHeader && (
78
84
  <div className={classNames.header}>
79
- <LinkComponent {...homeLinkProps} className={classNames.logo}>
80
- <>
81
- <KandaLogo {...logoProps} />
82
- </>
83
- </LinkComponent>
85
+ {!showNavigation && (
86
+ <LinkComponent {...homeLinkProps} className={classNames.logo}>
87
+ <>
88
+ <KandaLogo {...logoProps} />
89
+ </>
90
+ </LinkComponent>
91
+ )}
92
+ {showNavigation && Header && <Header />}
84
93
  <div className={classNames.options}>
85
94
  {help && <HelpButton />}
86
95
  {options.map((option, i) => (
@@ -24,6 +24,7 @@ export interface DesktopLayoutBoxedPropsHook {
24
24
  homeLinkProps: HomeLinkProps;
25
25
  sidebarView: FunctionComponent;
26
26
  classNames: StringIndexedObject;
27
+ Header?: FunctionComponent<{}>;
27
28
  }
28
29
 
29
30
  export default function useDesktopLayoutBoxedProps({
@@ -36,6 +37,7 @@ export default function useDesktopLayoutBoxedProps({
36
37
  linkComponent,
37
38
  homeLinkProps,
38
39
  sidebar: defaultSidebar,
40
+ desktopHeader: Header,
39
41
  } = useContext(ConfigWrapperContext);
40
42
 
41
43
  const sidebarView = (
@@ -56,5 +58,6 @@ export default function useDesktopLayoutBoxedProps({
56
58
  homeLinkProps: homeLinkProps as HomeLinkProps,
57
59
  sidebarView,
58
60
  classNames,
61
+ Header,
59
62
  };
60
63
  }
@@ -1 +1 @@
1
- 312c266992896be72ed73b30f80da8e3
1
+ 5de3490dab2f6ae8ff0de3e42ea27f49
package/app/yalc.lock CHANGED
@@ -2,11 +2,11 @@
2
2
  "version": "v1",
3
3
  "packages": {
4
4
  "@kanda-libs/ks-component-ts": {
5
- "signature": "2d36767bafed43845c85e08cc57157dd",
5
+ "signature": "afd03a3e5dc5bb1f25ac9d4461bf5027",
6
6
  "link": true
7
7
  },
8
8
  "@kanda-libs/ks-design-library": {
9
- "signature": "312c266992896be72ed73b30f80da8e3",
9
+ "signature": "5de3490dab2f6ae8ff0de3e42ea27f49",
10
10
  "link": true
11
11
  }
12
12
  }