@sikka/hawa 0.0.216 → 0.0.217

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.216",
3
+ "version": "0.0.217",
4
4
  "description": "SaaS Oriented UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -23,7 +23,7 @@ const Control: React.FunctionComponent<ControlTypes> = ({
23
23
  }) => {
24
24
  let sizeStyles = {
25
25
  small: "h-7 text-xs",
26
- normal: "h-10 text-sm",
26
+ normal: "h-[2.33rem] text-sm",
27
27
  large: "",
28
28
  }
29
29
  return (
@@ -109,6 +109,7 @@ type SelectTypes = {
109
109
  value?: any
110
110
  children?: any
111
111
  getOptionLabel?: any
112
+ disabled?: boolean
112
113
  }
113
114
  export const HawaSelect: React.FunctionComponent<SelectTypes> = (props) => {
114
115
  return (
@@ -120,6 +121,7 @@ export const HawaSelect: React.FunctionComponent<SelectTypes> = (props) => {
120
121
  )}
121
122
  {!props.isCreatable && (
122
123
  <Select
124
+ isDisabled={props.disabled}
123
125
  options={props.options}
124
126
  isClearable={props.isClearable}
125
127
  isMulti={props.isMulti}
@@ -8,6 +8,7 @@ import { HawaRadio } from "./HawaRadio"
8
8
  type SettingsRowTypes = {
9
9
  settingsLabel: string
10
10
  settingsType: "text" | "radio" | "boolean" | "color" | "range"
11
+ settingsDescription?: string
11
12
  radioProps: {
12
13
  defaultValue: any
13
14
  onChangeTab: any
@@ -26,6 +27,7 @@ type SettingsRowTypes = {
26
27
  export const HawaSettingsRow: React.FunctionComponent<SettingsRowTypes> = ({
27
28
  settingsLabel,
28
29
  settingsType,
30
+ settingsDescription,
29
31
  colorProps,
30
32
  rangeProps,
31
33
  radioProps,
@@ -34,7 +36,9 @@ export const HawaSettingsRow: React.FunctionComponent<SettingsRowTypes> = ({
34
36
  <div className="my-0.5 flex h-20 max-h-fit flex-row items-center justify-between rounded bg-white p-6 align-middle">
35
37
  <div>
36
38
  <div>{settingsLabel}</div>
37
- <div className="text-sm">Text here like a description</div>
39
+ {settingsDescription && (
40
+ <div className="text-sm">{settingsDescription}</div>
41
+ )}{" "}
38
42
  </div>
39
43
  {settingsType === "text" && <HawaTextField margin="none" width="small" />}
40
44
  {settingsType === "boolean" && <HawaSwitch size="large" />}
package/src/styles.css CHANGED
@@ -872,6 +872,9 @@ video {
872
872
  .h-\[1px\] {
873
873
  height: 1px;
874
874
  }
875
+ .h-\[2\.33rem\] {
876
+ height: 2.33rem;
877
+ }
875
878
  .h-\[calc\(100\%-3\.5rem\)\] {
876
879
  height: calc(100% - 3.5rem);
877
880
  }
@@ -1079,6 +1082,9 @@ video {
1079
1082
  .grid-cols-2 {
1080
1083
  grid-template-columns: repeat(2, minmax(0, 1fr));
1081
1084
  }
1085
+ .grid-cols-3 {
1086
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1087
+ }
1082
1088
  .grid-cols-4 {
1083
1089
  grid-template-columns: repeat(4, minmax(0, 1fr));
1084
1090
  }