@solibo/solibo-ui 0.2.14 → 0.2.16

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 (116) hide show
  1. package/README.md +16 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/assets/index10.css +1 -1
  4. package/dist/assets/index11.css +1 -1
  5. package/dist/assets/index12.css +1 -1
  6. package/dist/assets/index13.css +1 -1
  7. package/dist/assets/index14.css +1 -1
  8. package/dist/assets/index15.css +1 -1
  9. package/dist/assets/index16.css +1 -1
  10. package/dist/assets/index17.css +1 -1
  11. package/dist/assets/index18.css +1 -1
  12. package/dist/assets/index19.css +1 -1
  13. package/dist/assets/index2.css +1 -1
  14. package/dist/assets/index20.css +1 -0
  15. package/dist/assets/index21.css +1 -0
  16. package/dist/assets/index22.css +1 -0
  17. package/dist/assets/index23.css +1 -0
  18. package/dist/assets/index24.css +1 -0
  19. package/dist/assets/index3.css +1 -1
  20. package/dist/assets/index4.css +1 -1
  21. package/dist/assets/index5.css +1 -1
  22. package/dist/assets/index6.css +1 -1
  23. package/dist/assets/index7.css +1 -1
  24. package/dist/assets/index8.css +1 -1
  25. package/dist/assets/index9.css +0 -1
  26. package/dist/components/accordion/index.cjs +1 -1
  27. package/dist/components/accordion/index.cjs.map +1 -1
  28. package/dist/components/accordion/index.js +14 -28
  29. package/dist/components/accordion/index.js.map +1 -1
  30. package/dist/components/aside/index.cjs +1 -1
  31. package/dist/components/aside/index.cjs.map +1 -1
  32. package/dist/components/aside/index.js +18 -16
  33. package/dist/components/aside/index.js.map +1 -1
  34. package/dist/components/banner/index.cjs +1 -1
  35. package/dist/components/banner/index.cjs.map +1 -1
  36. package/dist/components/banner/index.js +14 -35
  37. package/dist/components/banner/index.js.map +1 -1
  38. package/dist/components/branding/index.cjs +1 -1
  39. package/dist/components/branding/index.js +1 -1
  40. package/dist/components/button/index.cjs +1 -1
  41. package/dist/components/button/index.cjs.map +1 -1
  42. package/dist/components/button/index.js +23 -36
  43. package/dist/components/button/index.js.map +1 -1
  44. package/dist/components/card/index.cjs +1 -1
  45. package/dist/components/card/index.cjs.map +1 -1
  46. package/dist/components/card/index.js +11 -23
  47. package/dist/components/card/index.js.map +1 -1
  48. package/dist/components/checkbox/index.cjs +2 -0
  49. package/dist/components/checkbox/index.cjs.map +1 -0
  50. package/dist/components/checkbox/index.js +29 -0
  51. package/dist/components/checkbox/index.js.map +1 -0
  52. package/dist/components/dialog/index.cjs +1 -1
  53. package/dist/components/dialog/index.cjs.map +1 -1
  54. package/dist/components/dialog/index.js +9 -54
  55. package/dist/components/dialog/index.js.map +1 -1
  56. package/dist/components/dropdown/index.cjs +1 -1
  57. package/dist/components/dropdown/index.cjs.map +1 -1
  58. package/dist/components/dropdown/index.js +20 -15
  59. package/dist/components/dropdown/index.js.map +1 -1
  60. package/dist/components/dropzone/index.cjs +2 -0
  61. package/dist/components/dropzone/index.cjs.map +1 -0
  62. package/dist/components/dropzone/index.js +63 -0
  63. package/dist/components/dropzone/index.js.map +1 -0
  64. package/dist/components/editor/index.cjs +2 -2
  65. package/dist/components/editor/index.js +2 -2
  66. package/dist/components/figure/index.cjs +1 -1
  67. package/dist/components/figure/index.js +3 -3
  68. package/dist/components/file/index.cjs +2 -0
  69. package/dist/components/file/index.cjs.map +1 -0
  70. package/dist/components/file/index.js +27 -0
  71. package/dist/components/file/index.js.map +1 -0
  72. package/dist/components/footer/index.cjs +2 -0
  73. package/dist/components/footer/index.cjs.map +1 -0
  74. package/dist/components/footer/index.js +15 -0
  75. package/dist/components/footer/index.js.map +1 -0
  76. package/dist/components/form/index.cjs +1 -1
  77. package/dist/components/form/index.cjs.map +1 -1
  78. package/dist/components/form/index.js +5 -5
  79. package/dist/components/form/index.js.map +1 -1
  80. package/dist/components/header/index.cjs +1 -1
  81. package/dist/components/header/index.cjs.map +1 -1
  82. package/dist/components/header/index.js +10 -9
  83. package/dist/components/header/index.js.map +1 -1
  84. package/dist/components/icon/index.cjs +1 -1
  85. package/dist/components/icon/index.cjs.map +1 -1
  86. package/dist/components/icon/index.js +39 -35
  87. package/dist/components/icon/index.js.map +1 -1
  88. package/dist/components/input/index.cjs +1 -1
  89. package/dist/components/input/index.cjs.map +1 -1
  90. package/dist/components/input/index.js +13 -13
  91. package/dist/components/input/index.js.map +1 -1
  92. package/dist/components/layout/index.cjs +2 -0
  93. package/dist/components/layout/index.cjs.map +1 -0
  94. package/dist/components/layout/index.js +17 -0
  95. package/dist/components/layout/index.js.map +1 -0
  96. package/dist/components/link/index.cjs +1 -1
  97. package/dist/components/link/index.js +9 -9
  98. package/dist/components/list/index.cjs +1 -1
  99. package/dist/components/list/index.js +5 -5
  100. package/dist/components/nav/index.cjs +1 -1
  101. package/dist/components/nav/index.cjs.map +1 -1
  102. package/dist/components/nav/index.js +92 -24
  103. package/dist/components/nav/index.js.map +1 -1
  104. package/dist/components/toggle/index.cjs +2 -0
  105. package/dist/components/toggle/index.cjs.map +1 -0
  106. package/dist/components/toggle/index.js +30 -0
  107. package/dist/components/toggle/index.js.map +1 -0
  108. package/dist/index.cjs +1 -1
  109. package/dist/index.d.ts +95 -35
  110. package/dist/index.js +36 -24
  111. package/dist/index.js.map +1 -1
  112. package/package.json +1 -1
  113. package/dist/components/component/index.cjs +0 -2
  114. package/dist/components/component/index.cjs.map +0 -1
  115. package/dist/components/component/index.js +0 -30
  116. package/dist/components/component/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport type { AnimationName } from '../../styles/animations.ts';\nimport styles from './styles.module.css';\n\nconst variants = {\n default: '',\n tabs: styles.tabs,\n pills: styles.pills,\n};\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({ animation, children, horizontal = false, variant = 'default' }: NavProps) => {\n return (\n <nav\n className={cx(\n animation && animation,\n horizontal && styles.horizontal,\n styles.nav,\n variants[variant]\n )}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n </nav>\n );\n};\n"],"names":["variants","styles","Nav","animation","children","horizontal","variant","jsx","cx"],"mappings":"oRAKMA,EAAW,CACf,QAAS,GACT,KAAMC,EAAO,KACb,MAAOA,EAAO,KAChB,EASaC,EAAM,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,WAAAC,EAAa,GAAO,QAAAC,EAAU,aAErEC,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,EACTL,GAAaA,EACbE,GAAcJ,EAAO,WACrBA,EAAO,IACPD,EAASM,CAAO,CAAA,EAElB,mBAAkBD,EAAa,aAAe,WAE7C,SAAAD,CAAA,CAAA"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { useRef, useState } from 'react';\n\nimport { Button } from '@/components/button';\nimport { Icon } from '@/components/icon';\nimport { Input } from '@/components/input';\n\nimport type { AnimationName } from '../../styles/animations.ts';\nimport styles from './styles.module.css';\n\nconst variants = {\n default: '',\n pills: styles.pills,\n tabs: styles.tabs,\n};\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n isResultsPage?: boolean;\n isSearchable?: boolean;\n onSearchSubmit?: (value: string) => void;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({\n animation,\n children,\n horizontal = false,\n variant = 'default',\n ...props\n}: NavProps) => {\n const searchInputRef = useRef<HTMLInputElement>(null);\n const [searching, setSearching] = useState(props.isResultsPage ?? false);\n const isSearchable = props.isSearchable && variant === 'pills';\n\n return (\n <nav\n className={cx(\n animation && animation,\n horizontal && styles.horizontal,\n searching && styles.searching,\n styles.nav,\n variants[variant]\n )}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n\n {isSearchable && (\n <form\n onSubmit={(e) => {\n e.preventDefault();\n const value = searchInputRef.current?.value ?? '';\n props.onSearchSubmit?.(value);\n }}\n >\n <Input\n ref={searchInputRef}\n onKeyDown={(e) => {\n if (e.key === 'Escape') {\n setSearching(false);\n\n if (searchInputRef.current) searchInputRef.current.value = '';\n }\n }}\n />\n\n {searching && (\n <Button\n variant={'minimal'}\n onClick={() => setSearching(false)}\n >\n <Icon name={'x'} />\n </Button>\n )}\n\n <Button\n className={cx(styles.search)}\n onClick={(e) => {\n if (searching) {\n return;\n } else {\n e?.preventDefault();\n setSearching(true);\n searchInputRef.current?.focus();\n }\n }}\n type={'submit'}\n variant={'minimal'}\n >\n <Icon\n name={'search'}\n size={'medium'}\n variant={searching ? 'white' : 'default'}\n />\n </Button>\n </form>\n )}\n </nav>\n );\n};\n"],"names":["variants","styles","Nav","animation","children","horizontal","variant","props","searchInputRef","useRef","searching","setSearching","useState","isSearchable","jsxs","cx","value","_a","_b","jsx","Input","Button","Icon"],"mappings":"2cAUMA,EAAW,CACf,QAAS,GACT,MAAOC,EAAO,MACd,KAAMA,EAAO,IACf,EAYaC,EAAM,CAAC,CAClB,UAAAC,EACA,SAAAC,EACA,WAAAC,EAAa,GACb,QAAAC,EAAU,UACV,GAAGC,CACL,IAAgB,CACd,MAAMC,EAAiBC,EAAAA,OAAyB,IAAI,EAC9C,CAACC,EAAWC,CAAY,EAAIC,EAAAA,SAASL,EAAM,eAAiB,EAAK,EACjEM,EAAeN,EAAM,cAAgBD,IAAY,QAEvD,OACEQ,EAAAA,KAAC,MAAA,CACC,UAAWC,EAAAA,EACTZ,GAAaA,EACbE,GAAcJ,EAAO,WACrBS,GAAaT,EAAO,UACpBA,EAAO,IACPD,EAASM,CAAO,CAAA,EAElB,mBAAkBD,EAAa,aAAe,WAE7C,SAAA,CAAAD,EAEAS,GACCC,EAAAA,KAAC,OAAA,CACC,SAAW,GAAM,SACf,EAAE,eAAA,EACF,MAAME,IAAQC,EAAAT,EAAe,UAAf,YAAAS,EAAwB,QAAS,IAC/CC,EAAAX,EAAM,iBAAN,MAAAW,EAAA,KAAAX,EAAuBS,EACzB,EAEA,SAAA,CAAAG,EAAAA,IAACC,EAAAA,MAAA,CACC,IAAKZ,EACL,UAAY,GAAM,CACZ,EAAE,MAAQ,WACZG,EAAa,EAAK,EAEdH,EAAe,UAASA,EAAe,QAAQ,MAAQ,IAE/D,CAAA,CAAA,EAGDE,GACCS,EAAAA,IAACE,EAAAA,OAAA,CACC,QAAS,UACT,QAAS,IAAMV,EAAa,EAAK,EAEjC,SAAAQ,EAAAA,IAACG,EAAAA,KAAA,CAAK,KAAM,GAAA,CAAK,CAAA,CAAA,EAIrBH,EAAAA,IAACE,EAAAA,OAAA,CACC,UAAWN,EAAAA,EAAGd,EAAO,MAAM,EAC3B,QAAU,GAAM,OACVS,IAGF,WAAG,iBACHC,EAAa,EAAI,GACjBM,EAAAT,EAAe,UAAf,MAAAS,EAAwB,QAE5B,EACA,KAAM,SACN,QAAS,UAET,SAAAE,EAAAA,IAACG,EAAAA,KAAA,CACC,KAAM,SACN,KAAM,SACN,QAASZ,EAAY,QAAU,SAAA,CAAA,CACjC,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CAIR"}
@@ -1,28 +1,96 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { t as r } from "../../classix-DG18itHa.js";
3
- import '../../assets/index2.css';const i = "_nav_tvxly_1", v = "_horizontal_tvxly_11", _ = "_tabs_tvxly_18", c = "_pills_tvxly_38", t = {
4
- nav: i,
5
- horizontal: v,
6
- tabs: _,
7
- pills: c
8
- }, e = {
1
+ import { jsxs as f, jsx as s } from "react/jsx-runtime";
2
+ import { t as _ } from "../../classix-DG18itHa.js";
3
+ import { useRef as d, useState as p } from "react";
4
+ import { Button as v } from "../button/index.js";
5
+ import { Icon as g } from "../icon/index.js";
6
+ import { Input as S } from "../input/index.js";
7
+ import '../../assets/index3.css';const q = "_nav_agq5y_1", z = "_horizontal_agq5y_11", x = "_tabs_agq5y_18", k = "_pills_agq5y_39", D = "_searching_agq5y_122", I = "_search_agq5y_122", e = {
8
+ nav: q,
9
+ horizontal: z,
10
+ tabs: x,
11
+ pills: k,
12
+ searching: D,
13
+ search: I
14
+ }, N = {
9
15
  default: "",
10
- tabs: t.tabs,
11
- pills: t.pills
12
- }, b = ({ animation: a, children: s, horizontal: l = !1, variant: o = "default" }) => /* @__PURE__ */ n(
13
- "nav",
14
- {
15
- className: r(
16
- a && a,
17
- l && t.horizontal,
18
- t.nav,
19
- e[o]
20
- ),
21
- "data-orientation": l ? "horizontal" : "vertical",
22
- children: s
23
- }
24
- );
16
+ pills: e.pills,
17
+ tabs: e.tabs
18
+ }, K = ({
19
+ animation: c,
20
+ children: b,
21
+ horizontal: o = !1,
22
+ variant: u = "default",
23
+ ...t
24
+ }) => {
25
+ const n = d(null), [r, l] = p(t.isResultsPage ?? !1), y = t.isSearchable && u === "pills";
26
+ return /* @__PURE__ */ f(
27
+ "nav",
28
+ {
29
+ className: _(
30
+ c && c,
31
+ o && e.horizontal,
32
+ r && e.searching,
33
+ e.nav,
34
+ N[u]
35
+ ),
36
+ "data-orientation": o ? "horizontal" : "vertical",
37
+ children: [
38
+ b,
39
+ y && /* @__PURE__ */ f(
40
+ "form",
41
+ {
42
+ onSubmit: (a) => {
43
+ var m, h;
44
+ a.preventDefault();
45
+ const i = ((m = n.current) == null ? void 0 : m.value) ?? "";
46
+ (h = t.onSearchSubmit) == null || h.call(t, i);
47
+ },
48
+ children: [
49
+ /* @__PURE__ */ s(
50
+ S,
51
+ {
52
+ ref: n,
53
+ onKeyDown: (a) => {
54
+ a.key === "Escape" && (l(!1), n.current && (n.current.value = ""));
55
+ }
56
+ }
57
+ ),
58
+ r && /* @__PURE__ */ s(
59
+ v,
60
+ {
61
+ variant: "minimal",
62
+ onClick: () => l(!1),
63
+ children: /* @__PURE__ */ s(g, { name: "x" })
64
+ }
65
+ ),
66
+ /* @__PURE__ */ s(
67
+ v,
68
+ {
69
+ className: _(e.search),
70
+ onClick: (a) => {
71
+ var i;
72
+ r || (a == null || a.preventDefault(), l(!0), (i = n.current) == null || i.focus());
73
+ },
74
+ type: "submit",
75
+ variant: "minimal",
76
+ children: /* @__PURE__ */ s(
77
+ g,
78
+ {
79
+ name: "search",
80
+ size: "medium",
81
+ variant: r ? "white" : "default"
82
+ }
83
+ )
84
+ }
85
+ )
86
+ ]
87
+ }
88
+ )
89
+ ]
90
+ }
91
+ );
92
+ };
25
93
  export {
26
- b as Nav
94
+ K as Nav
27
95
  };
28
96
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport type { AnimationName } from '../../styles/animations.ts';\nimport styles from './styles.module.css';\n\nconst variants = {\n default: '',\n tabs: styles.tabs,\n pills: styles.pills,\n};\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({ animation, children, horizontal = false, variant = 'default' }: NavProps) => {\n return (\n <nav\n className={cx(\n animation && animation,\n horizontal && styles.horizontal,\n styles.nav,\n variants[variant]\n )}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n </nav>\n );\n};\n"],"names":["variants","styles","Nav","animation","children","horizontal","variant","jsx","cx"],"mappings":";;;;;;;GAKMA,IAAW;AAAA,EACf,SAAS;AAAA,EACT,MAAMC,EAAO;AAAA,EACb,OAAOA,EAAO;AAChB,GASaC,IAAM,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,YAAAC,IAAa,IAAO,SAAAC,IAAU,gBAErE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC;AAAAA,MACTL,KAAaA;AAAA,MACbE,KAAcJ,EAAO;AAAA,MACrBA,EAAO;AAAA,MACPD,EAASM,CAAO;AAAA,IAAA;AAAA,IAElB,oBAAkBD,IAAa,eAAe;AAAA,IAE7C,UAAAD;AAAA,EAAA;AAAA;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/nav/index.tsx"],"sourcesContent":["import cx from 'classix';\nimport { useRef, useState } from 'react';\n\nimport { Button } from '@/components/button';\nimport { Icon } from '@/components/icon';\nimport { Input } from '@/components/input';\n\nimport type { AnimationName } from '../../styles/animations.ts';\nimport styles from './styles.module.css';\n\nconst variants = {\n default: '',\n pills: styles.pills,\n tabs: styles.tabs,\n};\n\nexport type NavProps = {\n animation?: AnimationName;\n children?: React.ReactNode;\n horizontal?: boolean;\n isResultsPage?: boolean;\n isSearchable?: boolean;\n onSearchSubmit?: (value: string) => void;\n variant?: keyof typeof variants;\n};\n\nexport const Nav = ({\n animation,\n children,\n horizontal = false,\n variant = 'default',\n ...props\n}: NavProps) => {\n const searchInputRef = useRef<HTMLInputElement>(null);\n const [searching, setSearching] = useState(props.isResultsPage ?? false);\n const isSearchable = props.isSearchable && variant === 'pills';\n\n return (\n <nav\n className={cx(\n animation && animation,\n horizontal && styles.horizontal,\n searching && styles.searching,\n styles.nav,\n variants[variant]\n )}\n data-orientation={horizontal ? 'horizontal' : 'vertical'}\n >\n {children}\n\n {isSearchable && (\n <form\n onSubmit={(e) => {\n e.preventDefault();\n const value = searchInputRef.current?.value ?? '';\n props.onSearchSubmit?.(value);\n }}\n >\n <Input\n ref={searchInputRef}\n onKeyDown={(e) => {\n if (e.key === 'Escape') {\n setSearching(false);\n\n if (searchInputRef.current) searchInputRef.current.value = '';\n }\n }}\n />\n\n {searching && (\n <Button\n variant={'minimal'}\n onClick={() => setSearching(false)}\n >\n <Icon name={'x'} />\n </Button>\n )}\n\n <Button\n className={cx(styles.search)}\n onClick={(e) => {\n if (searching) {\n return;\n } else {\n e?.preventDefault();\n setSearching(true);\n searchInputRef.current?.focus();\n }\n }}\n type={'submit'}\n variant={'minimal'}\n >\n <Icon\n name={'search'}\n size={'medium'}\n variant={searching ? 'white' : 'default'}\n />\n </Button>\n </form>\n )}\n </nav>\n );\n};\n"],"names":["variants","styles","Nav","animation","children","horizontal","variant","props","searchInputRef","useRef","searching","setSearching","useState","isSearchable","jsxs","cx","e","value","_a","_b","jsx","Input","Button","Icon"],"mappings":";;;;;;;;;;;;;GAUMA,IAAW;AAAA,EACf,SAAS;AAAA,EACT,OAAOC,EAAO;AAAA,EACd,MAAMA,EAAO;AACf,GAYaC,IAAM,CAAC;AAAA,EAClB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,SAAAC,IAAU;AAAA,EACV,GAAGC;AACL,MAAgB;AACd,QAAMC,IAAiBC,EAAyB,IAAI,GAC9C,CAACC,GAAWC,CAAY,IAAIC,EAASL,EAAM,iBAAiB,EAAK,GACjEM,IAAeN,EAAM,gBAAgBD,MAAY;AAEvD,SACE,gBAAAQ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAAA,QACTZ,KAAaA;AAAA,QACbE,KAAcJ,EAAO;AAAA,QACrBS,KAAaT,EAAO;AAAA,QACpBA,EAAO;AAAA,QACPD,EAASM,CAAO;AAAA,MAAA;AAAA,MAElB,oBAAkBD,IAAa,eAAe;AAAA,MAE7C,UAAA;AAAA,QAAAD;AAAA,QAEAS,KACC,gBAAAC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,UAAU,CAACE,MAAM;;AACf,cAAAA,EAAE,eAAA;AACF,oBAAMC,MAAQC,IAAAV,EAAe,YAAf,gBAAAU,EAAwB,UAAS;AAC/C,eAAAC,IAAAZ,EAAM,mBAAN,QAAAY,EAAA,KAAAZ,GAAuBU;AAAA,YACzB;AAAA,YAEA,UAAA;AAAA,cAAA,gBAAAG;AAAA,gBAACC;AAAA,gBAAA;AAAA,kBACC,KAAKb;AAAA,kBACL,WAAW,CAACQ,MAAM;AAChB,oBAAIA,EAAE,QAAQ,aACZL,EAAa,EAAK,GAEdH,EAAe,YAASA,EAAe,QAAQ,QAAQ;AAAA,kBAE/D;AAAA,gBAAA;AAAA,cAAA;AAAA,cAGDE,KACC,gBAAAU;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,SAAS;AAAA,kBACT,SAAS,MAAMX,EAAa,EAAK;AAAA,kBAEjC,UAAA,gBAAAS,EAACG,GAAA,EAAK,MAAM,IAAA,CAAK;AAAA,gBAAA;AAAA,cAAA;AAAA,cAIrB,gBAAAH;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,WAAWP,EAAGd,EAAO,MAAM;AAAA,kBAC3B,SAAS,CAACe,MAAM;;AACd,oBAAIN,MAGFM,KAAA,QAAAA,EAAG,kBACHL,EAAa,EAAI,IACjBO,IAAAV,EAAe,YAAf,QAAAU,EAAwB;AAAA,kBAE5B;AAAA,kBACA,MAAM;AAAA,kBACN,SAAS;AAAA,kBAET,UAAA,gBAAAE;AAAA,oBAACG;AAAA,oBAAA;AAAA,sBACC,MAAM;AAAA,sBACN,MAAM;AAAA,sBACN,SAASb,IAAY,UAAU;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBACjC;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIR;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index2.css');const e=require("react/jsx-runtime"),n=require("../../classix-5H4IWnMA.cjs"),r="_toggle_1l1p3_1",g="_track_1l1p3_15",d="_dot_1l1p3_24",t={toggle:r,track:g,dot:d},i=({checked:l,disabled:c,isLoading:s,label:o,onChange:a})=>e.jsxs("label",{className:t.toggle,children:[e.jsx("input",{checked:l,disabled:c||s,onChange:a,type:"checkbox"}),e.jsx("span",{"aria-hidden":"true",className:t.track,children:e.jsx("span",{className:n.t(t.dot,s&&"loading")})}),e.jsx("span",{className:"toggle",children:o})]});exports.Toggle=i;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/toggle/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type ToggleProps = {\n checked?: boolean;\n disabled?: boolean;\n isLoading?: boolean;\n label?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n};\n\nexport const Toggle = ({ checked, disabled, isLoading, label, onChange }: ToggleProps) => {\n return (\n <label className={styles.toggle}>\n <input\n checked={checked}\n disabled={disabled || isLoading}\n onChange={onChange}\n type='checkbox'\n />\n <span\n aria-hidden='true'\n className={styles.track}\n >\n <span className={cx(styles.dot, isLoading && 'loading')}></span>\n </span>\n <span className='toggle'>{label}</span>\n </label>\n );\n};\n"],"names":["Toggle","checked","disabled","isLoading","label","onChange","jsxs","styles","jsx","cx"],"mappings":"kPAYaA,EAAS,CAAC,CAAE,QAAAC,EAAS,SAAAC,EAAU,UAAAC,EAAW,MAAAC,EAAO,SAAAC,KAE1DC,EAAAA,KAAC,QAAA,CAAM,UAAWC,EAAO,OACvB,SAAA,CAAAC,EAAAA,IAAC,QAAA,CACC,QAAAP,EACA,SAAUC,GAAYC,EACtB,SAAAE,EACA,KAAK,UAAA,CAAA,EAEPG,EAAAA,IAAC,OAAA,CACC,cAAY,OACZ,UAAWD,EAAO,MAElB,SAAAC,EAAAA,IAAC,QAAK,UAAWC,IAAGF,EAAO,IAAKJ,GAAa,SAAS,CAAA,CAAG,CAAA,CAAA,EAE3DK,EAAAA,IAAC,OAAA,CAAK,UAAU,SAAU,SAAAJ,CAAA,CAAM,CAAA,EAClC"}
@@ -0,0 +1,30 @@
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ import { t as n } from "../../classix-DG18itHa.js";
3
+ import '../../assets/index2.css';const g = "_toggle_1l1p3_1", d = "_track_1l1p3_15", p = "_dot_1l1p3_24", e = {
4
+ toggle: g,
5
+ track: d,
6
+ dot: p
7
+ }, m = ({ checked: o, disabled: s, isLoading: l, label: a, onChange: c }) => /* @__PURE__ */ r("label", { className: e.toggle, children: [
8
+ /* @__PURE__ */ t(
9
+ "input",
10
+ {
11
+ checked: o,
12
+ disabled: s || l,
13
+ onChange: c,
14
+ type: "checkbox"
15
+ }
16
+ ),
17
+ /* @__PURE__ */ t(
18
+ "span",
19
+ {
20
+ "aria-hidden": "true",
21
+ className: e.track,
22
+ children: /* @__PURE__ */ t("span", { className: n(e.dot, l && "loading") })
23
+ }
24
+ ),
25
+ /* @__PURE__ */ t("span", { className: "toggle", children: a })
26
+ ] });
27
+ export {
28
+ m as Toggle
29
+ };
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/toggle/index.tsx"],"sourcesContent":["import cx from 'classix';\n\nimport styles from './styles.module.css';\n\nexport type ToggleProps = {\n checked?: boolean;\n disabled?: boolean;\n isLoading?: boolean;\n label?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n};\n\nexport const Toggle = ({ checked, disabled, isLoading, label, onChange }: ToggleProps) => {\n return (\n <label className={styles.toggle}>\n <input\n checked={checked}\n disabled={disabled || isLoading}\n onChange={onChange}\n type='checkbox'\n />\n <span\n aria-hidden='true'\n className={styles.track}\n >\n <span className={cx(styles.dot, isLoading && 'loading')}></span>\n </span>\n <span className='toggle'>{label}</span>\n </label>\n );\n};\n"],"names":["Toggle","checked","disabled","isLoading","label","onChange","jsxs","styles","jsx","cx"],"mappings":";;;;;;GAYaA,IAAS,CAAC,EAAE,SAAAC,GAAS,UAAAC,GAAU,WAAAC,GAAW,OAAAC,GAAO,UAAAC,QAE1D,gBAAAC,EAAC,SAAA,EAAM,WAAWC,EAAO,QACvB,UAAA;AAAA,EAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,SAAAP;AAAA,MACA,UAAUC,KAAYC;AAAA,MACtB,UAAAE;AAAA,MACA,MAAK;AAAA,IAAA;AAAA,EAAA;AAAA,EAEP,gBAAAG;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAY;AAAA,MACZ,WAAWD,EAAO;AAAA,MAElB,UAAA,gBAAAC,EAAC,UAAK,WAAWC,EAAGF,EAAO,KAAKJ,KAAa,SAAS,EAAA,CAAG;AAAA,IAAA;AAAA,EAAA;AAAA,EAE3D,gBAAAK,EAAC,QAAA,EAAK,WAAU,UAAU,UAAAJ,EAAA,CAAM;AAAA,GAClC;"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const n=require("./components/accordion/index.cjs"),e=require("./components/aside/index.cjs"),o=require("./components/banner/index.cjs"),r=require("./components/branding/index.cjs"),i=require("./components/button/index.cjs"),t=require("./components/card/index.cjs"),c=require("./components/dialog/index.cjs"),d=require("./components/dropdown/index.cjs"),s=require("./components/editor/index.cjs"),_=require("./components/figure/index.cjs"),u=require("./components/form/index.cjs"),p=require("./components/header/index.cjs"),a=require("./components/icon/index.cjs"),m=require("./components/input/index.cjs"),q=require("./components/link/index.cjs"),x=require("./components/list/index.cjs"),g=require("./components/nav/index.cjs");exports.Accordion=n.Accordion;exports.AccordionGroup=n.AccordionGroup;exports.Aside=e.Aside;exports.Banner=o.Banner;exports.Branding=r.Branding;exports.Button=i.Button;exports.Card=t.Card;exports.Dialog=c.Dialog;exports.Dropdown=d.Dropdown;exports.Editor=s.Editor;exports.Figure=_.Figure;exports.Form=u.Form;exports.Header=p.Header;exports.Icon=a.Icon;exports.Input=m.Input;exports.Link=q.Link;exports.List=x.List;exports.Nav=g.Nav;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const e=require("./components/accordion/index.cjs"),n=require("./components/aside/index.cjs"),o=require("./components/banner/index.cjs"),r=require("./components/branding/index.cjs"),i=require("./components/button/index.cjs"),t=require("./components/card/index.cjs"),c=require("./components/checkbox/index.cjs"),s=require("./components/dialog/index.cjs"),d=require("./components/dropdown/index.cjs"),_=require("./components/dropzone/index.cjs"),u=require("./components/editor/index.cjs"),p=require("./components/figure/index.cjs"),m=require("./components/file/index.cjs"),x=require("./components/footer/index.cjs"),a=require("./components/form/index.cjs"),q=require("./components/header/index.cjs"),g=require("./components/icon/index.cjs"),l=require("./components/input/index.cjs"),b=require("./components/layout/index.cjs"),F=require("./components/link/index.cjs"),k=require("./components/list/index.cjs"),A=require("./components/nav/index.cjs"),B=require("./components/toggle/index.cjs");exports.Accordion=e.Accordion;exports.AccordionGroup=e.AccordionGroup;exports.Aside=n.Aside;exports.Banner=o.Banner;exports.Branding=r.Branding;exports.Button=i.Button;exports.Card=t.Card;exports.Checkbox=c.Checkbox;exports.Dialog=s.Dialog;exports.Dropdown=d.Dropdown;exports.Dropzone=_.Dropzone;exports.Editor=u.Editor;exports.Figure=p.Figure;exports.File=m.File;exports.Footer=x.Footer;exports.Form=a.Form;exports.Header=q.Header;exports.Icon=g.Icon;exports.Input=l.Input;exports.Layout=b.Layout;exports.Link=F.Link;exports.List=k.List;exports.Nav=A.Nav;exports.Toggle=B.Toggle;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -33,7 +33,7 @@ declare type AsideProps = {
33
33
  variant?: keyof typeof variants;
34
34
  };
35
35
 
36
- export declare const Banner: ({ button, message, onClick, onDismiss, visible, ...props }: BannerProps) => JSX.Element;
36
+ export declare const Banner: ({ button, message, onClick, onDismiss, visible }: BannerProps) => JSX.Element;
37
37
 
38
38
  declare type BannerProps = {
39
39
  button: string;
@@ -55,48 +55,62 @@ declare const brandingSVG: {
55
55
  logo: string;
56
56
  };
57
57
 
58
- export declare const Button: ({ children, className, disabled, label, title, icon, iconOnly, type, variant, ...props }: ButtonProps) => JSX.Element;
58
+ export declare const Button: ({ children, className, disabled, onClick, variant, ...props }: ButtonProps) => JSX.Element;
59
59
 
60
60
  declare type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
61
- children?: React.ReactNode;
61
+ children: React.ReactNode;
62
62
  className?: string;
63
63
  disabled?: boolean;
64
- label?: string;
65
- title?: string;
66
- iconOnly?: boolean;
67
- icon?: IconName;
64
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
68
65
  variant?: keyof typeof variants_3;
69
- type?: 'button' | 'submit' | 'reset';
70
66
  };
71
67
 
72
- export declare const Card: ({ ...props }: CardProps) => JSX.Element;
68
+ export declare const Card: ({ children, draft, image, onClick }: CardProps) => JSX.Element;
73
69
 
74
70
  declare type CardProps = {
75
- image?: React.ReactNode;
76
- headerText?: string;
77
- subHeaderText?: string;
78
- contentText?: string;
79
71
  children: React.ReactNode;
80
- onClick?: () => void;
72
+ draft?: boolean;
73
+ image?: React.ReactNode;
74
+ onClick?: React.MouseEventHandler<HTMLElement>;
75
+ };
76
+
77
+ export declare const Checkbox: ({ checked, disabled, isLoading, label, onChange, ...props }: CheckboxProps) => JSX.Element;
78
+
79
+ declare type CheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
80
+ checked?: boolean;
81
+ disabled?: boolean;
82
+ isLoading?: boolean;
83
+ label?: string;
84
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
81
85
  };
82
86
 
83
- export declare const Dialog: ({ button, children, message, title, ...props }: DialogProps) => JSX.Element;
87
+ export declare const Dialog: ({ children, ...props }: DialogProps) => JSX.Element;
84
88
 
85
89
  declare type DialogProps = React.DialogHTMLAttributes<HTMLDialogElement> & {
86
- button?: string;
87
- children?: React.ReactNode;
88
- message?: string;
89
- title?: string;
90
+ children: React.ReactNode;
90
91
  };
91
92
 
92
- export declare const Dropdown: ({ children, label, placeholder, ...props }: DropdownProps) => JSX.Element;
93
+ export declare const Dropdown: ({ children, inline, label, placeholder, ...props }: DropdownProps) => JSX.Element;
93
94
 
94
- declare type DropdownProps = {
95
+ declare type DropdownProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
95
96
  children?: React.ReactNode;
97
+ inline?: boolean;
96
98
  label?: string;
97
99
  placeholder?: string;
98
100
  };
99
101
 
102
+ export declare const Dropzone: (props: DropzoneProps) => JSX.Element;
103
+
104
+ declare type DropzoneProps = {
105
+ allowDirectoryUpload?: boolean;
106
+ inputId?: string;
107
+ isMultiple?: boolean;
108
+ label?: string;
109
+ maxFileSizeMB?: number;
110
+ mimeTypes?: string[];
111
+ onUpload: (uploadContent: File[] | FileList) => void;
112
+ };
113
+
100
114
  export declare const Editor: ({ autofocus, autolink, content, inline, onChange, }: EditorProps) => JSX.Element;
101
115
 
102
116
  declare type EditorProps = {
@@ -114,21 +128,36 @@ declare type FigureProps = {
114
128
  label?: string;
115
129
  };
116
130
 
131
+ declare const File_2: ({ name, url }: FileProps) => JSX.Element;
132
+ export { File_2 as File }
133
+
134
+ declare type FileProps = {
135
+ name: string;
136
+ url: string;
137
+ };
138
+
139
+ export declare const Footer: ({ children, ...props }: FooterProps) => JSX.Element;
140
+
141
+ declare type FooterProps = {
142
+ children?: React.ReactNode;
143
+ };
144
+
117
145
  export declare const Form: ({ animation, children, inline, ...props }: FormProps) => JSX.Element;
118
146
 
119
- declare type FormProps = {
147
+ declare type FormProps = React.FormHTMLAttributes<HTMLFormElement> & {
120
148
  animation?: AnimationName;
121
149
  children?: React.ReactNode;
122
150
  inline?: boolean;
123
151
  };
124
152
 
125
- export declare const Header: ({ children, size, label, subtitle }: HeaderProps) => JSX.Element;
153
+ export declare const Header: ({ children, size, label, ...props }: HeaderProps) => JSX.Element;
126
154
 
127
155
  declare type HeaderProps = {
128
156
  children?: React.ReactNode;
129
- label: string;
157
+ label?: string;
130
158
  size?: 1 | 2 | 3;
131
- subtitle?: string;
159
+ superHeader?: string;
160
+ subHeader?: string;
132
161
  };
133
162
 
134
163
  export declare const Icon: ({ name, size, variant }: IconProps) => JSX.Element;
@@ -137,28 +166,48 @@ declare type IconName = keyof typeof iconPaths;
137
166
 
138
167
  declare const iconPaths: {
139
168
  bold: string;
169
+ buildings: string;
170
+ card: string;
140
171
  chevron: string;
172
+ clipboard: string;
173
+ gear: string;
174
+ document: string;
141
175
  home: string;
142
176
  italic: string;
143
177
  link: string;
144
178
  list: string;
179
+ pencil: string;
180
+ people: string;
181
+ phone: string;
182
+ plus: string;
145
183
  search: string;
184
+ toDocument: string;
185
+ upload: string;
186
+ user: string;
146
187
  x: string;
147
188
  };
148
189
 
149
190
  declare type IconProps = {
150
- variant?: keyof typeof variants_4;
151
191
  name: IconName;
152
192
  size?: keyof typeof sizes;
193
+ variant?: keyof typeof variants_4;
194
+ loading?: boolean;
153
195
  };
154
196
 
155
197
  export declare const Input: ForwardRefExoticComponent<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
156
198
  disabled?: boolean;
157
199
  label?: string;
158
200
  placeholder?: string;
159
- type?: "email" | "number" | "password" | "search" | "tel" | "text";
201
+ type?: "datetime-local" | "email" | "number" | "password" | "radio" | "search" | "tel" | "text";
160
202
  } & RefAttributes<HTMLInputElement>>;
161
203
 
204
+ export declare const Layout: ({ children, feature, ...props }: LayoutProps) => JSX.Element;
205
+
206
+ declare type LayoutProps = {
207
+ children: React.ReactNode;
208
+ feature: 'home';
209
+ };
210
+
162
211
  export declare const Link: ({ children, className, to, label, ...props }: LinkProps) => JSX.Element;
163
212
 
164
213
  declare type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & {
@@ -175,24 +224,38 @@ declare type ListProps = {
175
224
  className?: string;
176
225
  };
177
226
 
178
- export declare const Nav: ({ animation, children, horizontal, variant }: NavProps) => JSX.Element;
227
+ export declare const Nav: ({ animation, children, horizontal, variant, ...props }: NavProps) => JSX.Element;
179
228
 
180
229
  declare type NavProps = {
181
230
  animation?: AnimationName;
182
231
  children?: React.ReactNode;
183
232
  horizontal?: boolean;
233
+ isResultsPage?: boolean;
234
+ isSearchable?: boolean;
235
+ onSearchSubmit?: (value: string) => void;
184
236
  variant?: keyof typeof variants_5;
185
237
  };
186
238
 
187
239
  declare const sizes: {
188
- medium: string;
189
240
  large: string;
241
+ medium: string;
190
242
  small: string;
191
243
  };
192
244
 
245
+ export declare const Toggle: ({ checked, disabled, isLoading, label, onChange }: ToggleProps) => JSX.Element;
246
+
247
+ declare type ToggleProps = {
248
+ checked?: boolean;
249
+ disabled?: boolean;
250
+ isLoading?: boolean;
251
+ label?: string;
252
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
253
+ };
254
+
193
255
  declare const variants: {
194
256
  default: string;
195
- 'site-wide': string;
257
+ nav: string;
258
+ meta: string;
196
259
  };
197
260
 
198
261
  declare const variants_2: {
@@ -203,23 +266,20 @@ declare const variants_2: {
203
266
 
204
267
  declare const variants_3: {
205
268
  default: string;
206
- destructive: string;
207
269
  minimal: string;
208
270
  primary: string;
209
- secondary: string;
210
- white: string;
211
271
  };
212
272
 
213
273
  declare const variants_4: {
214
274
  default: string;
215
- dialog: string;
275
+ primary: string;
216
276
  white: string;
217
277
  };
218
278
 
219
279
  declare const variants_5: {
220
280
  default: string;
221
- tabs: string;
222
281
  pills: string;
282
+ tabs: string;
223
283
  };
224
284
 
225
285
  export { }
package/dist/index.js CHANGED
@@ -1,38 +1,50 @@
1
1
  import { Accordion as e, AccordionGroup as t } from "./components/accordion/index.js";
2
2
  import { Aside as m } from "./components/aside/index.js";
3
- import { Banner as x } from "./components/banner/index.js";
3
+ import { Banner as f } from "./components/banner/index.js";
4
4
  import { Branding as i } from "./components/branding/index.js";
5
5
  import { Button as a } from "./components/button/index.js";
6
- import { Card as u } from "./components/card/index.js";
6
+ import { Card as g } from "./components/card/index.js";
7
+ import { Checkbox as F } from "./components/checkbox/index.js";
7
8
  import { Dialog as A } from "./components/dialog/index.js";
8
- import { Dropdown as s } from "./components/dropdown/index.js";
9
- import { Editor as F } from "./components/editor/index.js";
10
- import { Figure as L } from "./components/figure/index.js";
11
- import { Form as l } from "./components/form/index.js";
12
- import { Header as w } from "./components/header/index.js";
13
- import { Icon as E } from "./components/icon/index.js";
14
- import { Input as H } from "./components/input/index.js";
15
- import { Link as b } from "./components/link/index.js";
16
- import { List as j } from "./components/list/index.js";
17
- import { Nav as y } from "./components/nav/index.js";
9
+ import { Dropdown as D } from "./components/dropdown/index.js";
10
+ import { Dropzone as k } from "./components/dropzone/index.js";
11
+ import { Editor as C } from "./components/editor/index.js";
12
+ import { Figure as b } from "./components/figure/index.js";
13
+ import { File as v } from "./components/file/index.js";
14
+ import { Footer as y } from "./components/footer/index.js";
15
+ import { Form as E } from "./components/form/index.js";
16
+ import { Header as H } from "./components/header/index.js";
17
+ import { Icon as T } from "./components/icon/index.js";
18
+ import { Input as q } from "./components/input/index.js";
19
+ import { Layout as K } from "./components/layout/index.js";
20
+ import { Link as O } from "./components/link/index.js";
21
+ import { List as Q } from "./components/list/index.js";
22
+ import { Nav as S } from "./components/nav/index.js";
23
+ import { Toggle as V } from "./components/toggle/index.js";
18
24
  import './assets/index.css';export {
19
25
  e as Accordion,
20
26
  t as AccordionGroup,
21
27
  m as Aside,
22
- x as Banner,
28
+ f as Banner,
23
29
  i as Branding,
24
30
  a as Button,
25
- u as Card,
31
+ g as Card,
32
+ F as Checkbox,
26
33
  A as Dialog,
27
- s as Dropdown,
28
- F as Editor,
29
- L as Figure,
30
- l as Form,
31
- w as Header,
32
- E as Icon,
33
- H as Input,
34
- b as Link,
35
- j as List,
36
- y as Nav
34
+ D as Dropdown,
35
+ k as Dropzone,
36
+ C as Editor,
37
+ b as Figure,
38
+ v as File,
39
+ y as Footer,
40
+ E as Form,
41
+ H as Header,
42
+ T as Icon,
43
+ q as Input,
44
+ K as Layout,
45
+ O as Link,
46
+ Q as List,
47
+ S as Nav,
48
+ V as Toggle
37
49
  };
38
50
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solibo/solibo-ui",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite build --watch",
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index11.css');const e=require("react/jsx-runtime"),n=require("../icon/index.cjs"),i="_component_1nxex_1",t={component:i},s=({...o})=>e.jsx("div",{className:t.component,...o,children:e.jsxs("article",{children:[e.jsx("h1",{children:"Hello world"}),e.jsxs("p",{children:["Lorem ipsum dolor sit amet consectetur adipisicing elit. Ad doloribus odio, aperiam enim provident voluptates, eos illum, error nihil amet iste necessitatibus ab unde accusantium in. ",e.jsx("b",{children:"Explicabo quod eius numquam?"})]}),e.jsx("a",{href:"/?path=/docs/introduction--docs",children:e.jsx(n.Icon,{name:"home",variant:"dialog"})}),e.jsx("p",{children:"Feel free to copy this folder to have a bare minimum component."})]})});exports.Component=s;
2
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/components/component/index.tsx"],"sourcesContent":["import { Icon } from '../icon';\nimport styles from './styles.module.css';\n\nexport const Component = ({ ...props }) => {\n return (\n <div\n className={styles.component}\n {...props}\n >\n <article>\n <h1>Hello world</h1>\n\n <p>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Ad doloribus odio, aperiam enim\n provident voluptates, eos illum, error nihil amet iste necessitatibus ab unde accusantium\n in. <b>Explicabo quod eius numquam?</b>\n </p>\n\n <a href='/?path=/docs/introduction--docs'>\n <Icon\n name='home'\n variant='dialog'\n />\n </a>\n\n <p>Feel free to copy this folder to have a bare minimum component.</p>\n </article>\n </div>\n );\n};\n"],"names":["Component","props","jsx","styles","Icon"],"mappings":"2LAGaA,EAAY,CAAC,CAAE,GAAGC,KAE3BC,EAAAA,IAAC,MAAA,CACC,UAAWC,EAAO,UACjB,GAAGF,EAEJ,gBAAC,UAAA,CACC,SAAA,CAAAC,EAAAA,IAAC,MAAG,SAAA,aAAA,CAAW,SAEd,IAAA,CAAE,SAAA,CAAA,0LAGGA,EAAAA,IAAC,KAAE,SAAA,8BAAA,CAA4B,CAAA,EACrC,EAEAA,EAAAA,IAAC,IAAA,CAAE,KAAK,kCACN,SAAAA,EAAAA,IAACE,EAAAA,KAAA,CACC,KAAK,OACL,QAAQ,QAAA,CAAA,EAEZ,EAEAF,EAAAA,IAAC,KAAE,SAAA,iEAAA,CAA+D,CAAA,CAAA,CACpE,CAAA,CAAA"}
@@ -1,30 +0,0 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import { Icon as n } from "../icon/index.js";
3
- import '../../assets/index11.css';const t = "_component_1nxex_1", r = {
4
- component: t
5
- }, s = ({ ...i }) => /* @__PURE__ */ e(
6
- "div",
7
- {
8
- className: r.component,
9
- ...i,
10
- children: /* @__PURE__ */ o("article", { children: [
11
- /* @__PURE__ */ e("h1", { children: "Hello world" }),
12
- /* @__PURE__ */ o("p", { children: [
13
- "Lorem ipsum dolor sit amet consectetur adipisicing elit. Ad doloribus odio, aperiam enim provident voluptates, eos illum, error nihil amet iste necessitatibus ab unde accusantium in. ",
14
- /* @__PURE__ */ e("b", { children: "Explicabo quod eius numquam?" })
15
- ] }),
16
- /* @__PURE__ */ e("a", { href: "/?path=/docs/introduction--docs", children: /* @__PURE__ */ e(
17
- n,
18
- {
19
- name: "home",
20
- variant: "dialog"
21
- }
22
- ) }),
23
- /* @__PURE__ */ e("p", { children: "Feel free to copy this folder to have a bare minimum component." })
24
- ] })
25
- }
26
- );
27
- export {
28
- s as Component
29
- };
30
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/component/index.tsx"],"sourcesContent":["import { Icon } from '../icon';\nimport styles from './styles.module.css';\n\nexport const Component = ({ ...props }) => {\n return (\n <div\n className={styles.component}\n {...props}\n >\n <article>\n <h1>Hello world</h1>\n\n <p>\n Lorem ipsum dolor sit amet consectetur adipisicing elit. Ad doloribus odio, aperiam enim\n provident voluptates, eos illum, error nihil amet iste necessitatibus ab unde accusantium\n in. <b>Explicabo quod eius numquam?</b>\n </p>\n\n <a href='/?path=/docs/introduction--docs'>\n <Icon\n name='home'\n variant='dialog'\n />\n </a>\n\n <p>Feel free to copy this folder to have a bare minimum component.</p>\n </article>\n </div>\n );\n};\n"],"names":["Component","props","jsx","styles","Icon"],"mappings":";;;;GAGaA,IAAY,CAAC,EAAE,GAAGC,QAE3B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAO;AAAA,IACjB,GAAGF;AAAA,IAEJ,4BAAC,WAAA,EACC,UAAA;AAAA,MAAA,gBAAAC,EAAC,QAAG,UAAA,cAAA,CAAW;AAAA,wBAEd,KAAA,EAAE,UAAA;AAAA,QAAA;AAAA,QAGG,gBAAAA,EAAC,OAAE,UAAA,+BAAA,CAA4B;AAAA,MAAA,GACrC;AAAA,MAEA,gBAAAA,EAAC,KAAA,EAAE,MAAK,mCACN,UAAA,gBAAAA;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAQ;AAAA,QAAA;AAAA,MAAA,GAEZ;AAAA,MAEA,gBAAAF,EAAC,OAAE,UAAA,kEAAA,CAA+D;AAAA,IAAA,EAAA,CACpE;AAAA,EAAA;AAAA;"}